<?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>Subesh Pokhrel&#039;s Blog - Magento Development Tips &#187; Map View Options</title>
	<atom:link href="http://subesh.com.np/tag/map-view-options/feed/" rel="self" type="application/rss+xml" />
	<link>http://subesh.com.np</link>
	<description>PHP &#38; Magento Tips and Tutorials</description>
	<lastBuildDate>Wed, 01 Feb 2012 04:09:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Google Map With Zoom and Map Type</title>
		<link>http://subesh.com.np/2008/05/google-map-with-zoom-and-map-type/</link>
		<comments>http://subesh.com.np/2008/05/google-map-with-zoom-and-map-type/#comments</comments>
		<pubDate>Sat, 17 May 2008 10:54:03 +0000</pubDate>
		<dc:creator>Subesh Pokhrel</dc:creator>
				<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[Map Type]]></category>
		<category><![CDATA[Map View Options]]></category>
		<category><![CDATA[zoom]]></category>

		<guid isPermaLink="false">http://subesh.com.np/?p=18</guid>
		<description><![CDATA[To get a simple Google Map for you website its, pretty easy actually. Just go to http://maps.google.com/maps/api_signup and input the necessary details then you will get a sample code for a simple google map. The Sample code is just like this. This creates a simple Google Map instance and plots it over the element div [...]]]></description>
			<content:encoded><![CDATA[<p>To get a simple Google Map for you website its, pretty easy actually. Just go to <a href="http://maps.google.com/maps/api_signup">http://maps.google.com/maps/api_signup</a> and input the necessary details then you will get a sample code for a simple google map. The Sample code is just like this.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
  &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;head&gt;
    &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;/&gt;
    &lt;title&gt;Google Maps JavaScript API Example&lt;/title&gt;
    &lt;script src=&quot;http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=ABQIAAAAPHLcOOGHX2-uLk3K8q1nMRTkUAbhgKwL1jWWfpv-KGJeCrct7hTsLLnZdnZjzehmRIkaePagQvKNbw&quot;
      type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;

    //&lt;![CDATA[

    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById(&quot;map&quot;));
        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
      }
    }

    //]]&gt;
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload=&quot;load()&quot; onunload=&quot;GUnload()&quot;&gt;
    &lt;div id=&quot;map&quot; style=&quot;width: 500px; height: 300px&quot;&gt;&lt;/div&gt;
  &lt;/body&gt;
&lt;/html&gt;
</pre>
<p>This creates a simple Google Map instance and plots it over the element <strong>div</strong> with id=&#8217;map&#8217; (#24). The instance of Google Map for your page is created on #15, with the map center defined of #16 by constructor function <strong>GLatLng</strong>, whose parameter are the Geological Latitude and Longitude of the Place. The &#8217;13&#8242; you see is the zoom level of the map when it loads.</p>
<p>Now for the option of Zoom and various map view option that the Google provides us, just copy the code below and paste them after #16. Remember these are the properties of the Google Map&#8217;s instance you created.</p>
<pre class="brush: jscript; title: ; notranslate">
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
</pre>
<p>By adding these you can change the map views i.e Map,Satellite and Hybrid with small map navigation options on the left.</p>
]]></content:encoded>
			<wfw:commentRss>http://subesh.com.np/2008/05/google-map-with-zoom-and-map-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

