<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gMap &#8211; My Web Development</title>
	<atom:link href="https://mywebdevelopment.org/tag/gmap/feed/" rel="self" type="application/rss+xml" />
	<link>https://mywebdevelopment.org</link>
	<description>Always learning something new..</description>
	<lastBuildDate>Thu, 29 Aug 2013 18:49:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Google Map v3 API Prestashop Module</title>
		<link>https://mywebdevelopment.org/google-map-v3-api-prestashop-module/</link>
				<pubDate>Tue, 06 Nov 2012 16:15:42 +0000</pubDate>
		<dc:creator><![CDATA[Elias]]></dc:creator>
				<category><![CDATA[PrestaShop]]></category>
		<category><![CDATA[gMap]]></category>
		<category><![CDATA[Google Map]]></category>

		<guid isPermaLink="false">http://mywebdevelopment.org/?p=12</guid>
				<description><![CDATA[<p>Step 1.) Edit file: header.tpl Define your style sheet &#60;link href=&#8221;{$modules_dir}contactform_map/css/contactform_css.php&#8221; rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; media=&#8221;all&#8221; /&#62; &#60;link href=&#8221;{$modules_dir}contactform_map/css/contact.css&#8221; rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; media=&#8221;all&#8221; /&#62; Next, add the JavaScript&#8230; Step 2.) Edit file: contactform_map.tpl You need to modify the portion of the provided code with your Google API and set your Sensor’s parameter to either true or false. Sensor… <span class="read-more"><a href="https://mywebdevelopment.org/google-map-v3-api-prestashop-module/">Read More &#187;</a></span></p>
<p>The post <a rel="nofollow" href="https://mywebdevelopment.org/google-map-v3-api-prestashop-module/">Google Map v3 API Prestashop Module</a> appeared first on <a rel="nofollow" href="https://mywebdevelopment.org">My Web Development</a>.</p>
]]></description>
								<content:encoded><![CDATA[<p><strong>Step 1.)</strong> Edit file: header.tpl</p>
<p>Define your style sheet</p>
<p>&lt;link href=&#8221;{$modules_dir}contactform_map/css/contactform_css.php&#8221; rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; media=&#8221;all&#8221; /&gt;<br />
&lt;link href=&#8221;{$modules_dir}contactform_map/css/contact.css&#8221; rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; media=&#8221;all&#8221; /&gt;</p>
<p>Next, add the JavaScript&#8230;</p>
<p><strong>Step 2.)</strong> Edit file: contactform_map.tpl</p>
<p>You need to modify the portion of the provided code with your Google API and set your Sensor’s parameter to either true or false. Sensor is a parameter to indicate whether the application uses GPS to determine the user’s location.</p>
<p>key= Enter your API key here<br />
&amp;sensor= Set parameter to either true or false (e.g. &amp;sensor=false)</p>
<p><span style="color: #993300;"><strong>&lt;!&#8211; Google Maps code start &#8211;&gt;</strong></span></p>
<p><span style="color: #993300;">{literal}</span></p>
<p><span style="color: #993300;">&lt;script src=&#8221;https://maps.googleapis.com/maps/api/js?key=YOUR-API-KEY&amp;sensor=true-OR-false&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;</span></p>
<p><span style="color: #993300;">&lt;noscript&gt;&lt;b&gt;JavaScript must be enabled in order for you to use Google Maps.&lt;/b&gt;</span><br />
<span style="color: #993300;"> However, it seems JavaScript is either disabled or not supported by your browser.</span><br />
<span style="color: #993300;"> To view Google Maps, enable JavaScript by changing your browser options, and then</span><br />
<span style="color: #993300;"> try again.</span><br />
<span style="color: #993300;"> &lt;/noscript&gt;</span></p>
<p><span style="color: #993300;">&lt;script type=&#8221;text/javascript&#8221;&gt;</span><br />
<span style="color: #993300;"> //&lt;![CDATA[</span></p>
<p><span style="color: #993300;">function display_map()</span><br />
<span style="color: #993300;"> {</span></p>
<p><span style="color: #993300;">if (GBrowserIsCompatible()) {</span></p>
<p><span style="color: #993300;">// A function to create the marker and set up the event window</span><br />
<span style="color: #993300;"> // Dont try to unroll this function. It has to be here for the function closure</span><br />
<span style="color: #993300;"> // Each instance of the function preserves the contends of a different instance</span><br />
<span style="color: #993300;"> // of the &#8220;marker&#8221; and &#8220;html&#8221; variables which will be needed later when the event triggers.</span></p>
<p><span style="color: #993300;">html =&#8221;&lt;div style=\&#8221;width:250px; text-align: left;\&#8221;&gt;&lt;b&gt;Industrial &amp; Electric Supply&lt;/b&gt;&lt;br /&gt;209 Paredes Line Road&lt;br /&gt;Brownsville, Texas 78523&lt;/div&gt;&#8221;;</span></p>
<p><span style="color: #993300;">function createMarker(point,html) {</span><br />
<span style="color: #993300;"> var marker = new GMarker(point);</span><br />
<span style="color: #993300;"> GEvent.addListener(marker, &#8220;click&#8221;, function() {</span><br />
<span style="color: #993300;"> marker.openInfoWindowHtml(html);</span><br />
<span style="color: #993300;"> });</span><br />
<span style="color: #993300;"> return marker;</span><br />
<span style="color: #993300;"> }</span></p>
<p><span style="color: #993300;">// Display the map, with some controls and set the initial location</span><br />
<span style="color: #993300;"> var map = new GMap2(document.getElementById(&#8220;map&#8221;));</span><br />
<span style="color: #993300;"> map.addControl(new GSmallMapControl());</span><br />
<span style="color: #993300;"> map.addControl(new GMapTypeControl());</span><br />
<span style="color: #993300;"> map.setCenter(new GLatLng(25.924503,-97.489405),14);</span></p>
<p><span style="color: #993300;">// Set up the marker and info</span></p>
<p><span style="color: #993300;">var point = new GLatLng(25.924503,-97.489405);</span><br />
<span style="color: #993300;"> var marker = createMarker(point, html)</span><br />
<span style="color: #993300;"> map.addOverlay(marker);</span><br />
<span style="color: #993300;"> marker.openInfoWindowHtml(html);</span><br />
<span style="color: #993300;"> }</span></p>
<p><span style="color: #993300;">// display a warning if the browser was not compatible</span><br />
<span style="color: #993300;"> else {</span><br />
<span style="color: #993300;"> alert(&#8220;Sorry, the Google Maps API is not compatible with this browser&#8221;);</span><br />
<span style="color: #993300;"> }</span></p>
<p><span style="color: #993300;">// This Javascript is based on code provided by the</span><br />
<span style="color: #993300;"> // Community Church Javascript Team</span><br />
<span style="color: #993300;"> // http://www.bisphamchurch.org.uk/</span><br />
<span style="color: #993300;"> // http://econym.org.uk/gmap/</span></p>
<p><span style="color: #993300;">//]]&gt;</span></p>
<p><span style="color: #993300;">}</span></p>
<p><span style="color: #993300;">&lt;/script&gt;</span></p>
<p><span style="color: #993300;">{/literal}</span></p>
<p><span style="color: #993300;">{literal}</span></p>
<p><span style="color: #993300;">&lt;script type=&#8221;text/javascript&#8221;&gt;</span><br />
<span style="color: #993300;"> window.onload= function(){</span><br />
<span style="color: #993300;"> display_map();</span><br />
<span style="color: #993300;"> };</span></p>
<p><span style="color: #993300;">window.onunload= function(){</span><br />
<span style="color: #993300;"> GUnload();</span><br />
<span style="color: #993300;"> };</span><br />
<span style="color: #993300;"> &lt;/script&gt;</span></p>
<p><span style="color: #993300;">{/literal}</span></p>
<p><span style="color: #993300;"><strong>&lt;!&#8211; Google Maps code end &#8211;&gt;</strong></span></p>
<hr />
<p><strong>References</strong></p>
<p>gMap:<br />
<a title="gMap Documentation" href="http://code.google.com/apis/maps/documentation/javascript/tutorial.html">http://code.google.com/apis/maps/documentation/javascript/tutorial.html</a><br />
<a title="gMap" href="http://gmap3.net/">http://gmap3.net/</a></p>
<p>Google Map Sensor Parameter<br />
<a title="Google Map Sensor Parameter Documentation" href="http://code.google.com/apis/maps/documentation/javascript/basics.html">http://code.google.com/apis/maps/documentation/javascript/basics.html</a><br />
<a title="How to use Google Maps API" href="http://stackoverflow.com/questions/1993978/how-do-i-use-the-google-maps-api-gps-sensor">http://stackoverflow.com/questions/1993978/how-do-i-use-the-google-maps-api-gps-sensor</a></p>
<p>Maofree (maofree_contactform):<br />
<a title="MaoFree Form" href="http://www.maofree-developer.com">http://www.maofree-developer.com</a></p>
<p>NethercottConstructions (creating a basic module):<br />
<a title="NethercottConstructions" href="http://www.nethercottconstructions.com/en/content/category/11-creating-a-basic-module">http://www.nethercottconstructions.com/en/content/category/11-creating-a-basic-module</a></p>
 <script type="text/javascript"><!--
google_ad_client = "ca-pub-9218567626174444";
/* My Web Dev Resources */
google_ad_slot = "3283801538";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<p>The post <a rel="nofollow" href="https://mywebdevelopment.org/google-map-v3-api-prestashop-module/">Google Map v3 API Prestashop Module</a> appeared first on <a rel="nofollow" href="https://mywebdevelopment.org">My Web Development</a>.</p>
]]></content:encoded>
										</item>
	</channel>
</rss>
