<?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>VinylFox &#187; Google Maps</title>
	<atom:link href="http://www.vinylfox.com/category/google-maps/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vinylfox.com</link>
	<description>The Playground of VinylFox (Shea Frederick)</description>
	<lastBuildDate>Thu, 29 Jul 2010 16:37:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>GMapPanel Updated With Locale Support and More Examples</title>
		<link>http://www.vinylfox.com/gmappanel-updated-with-locale-support-and-more-examples/</link>
		<comments>http://www.vinylfox.com/gmappanel-updated-with-locale-support-and-more-examples/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 02:54:11 +0000</pubDate>
		<dc:creator>Shea Frederick</dc:creator>
				<category><![CDATA[ExtJS]]></category>
		<category><![CDATA[ExtJS News]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[GMap]]></category>

		<guid isPermaLink="false">http://www.vinylfox.com/?p=233</guid>
		<description><![CDATA[So I set aside a few hours over the past week to update my GMapPanel code with some new features and examples that I think would help everyone. Two new examples, and an update to one to add a form used for entering lat/lng or address to center the map on. Added locale support for [...]]]></description>
			<content:encoded><![CDATA[<p>So I set aside a few hours over the past week to update my GMapPanel code with some new features and examples that I think would help everyone. Two new examples, and an update to one to add a form used for entering lat/lng or address to center the map on. Added locale support for the error messages that the map presents to the user &#8211; map locale support is still handled on Google&#8217;s end of things.</p>
<p><img src="http://www.vinylfox.com/wp-content/uploads/2009/04/dataview-150x150.jpg" alt="dataview" title="dataview" width="150" height="150" class="alignleft size-thumbnail wp-image-235" align="left" style="margin: 10px;" />The first new sample demonstrates two things that allot of people seem to strugle with. First off, using a map within a border layout, which when you get down too it is dead simple, but causes much frustration and confusion if you happen to do it incorrectly. The second thing is using a <em>DataView</em> (could be a grid, tree, etc) to interact with the map by giving a list of points to recenter the map on. Recentering is accomplished by clicking on an item in the <em>DataView</em> list, this triggers a click event in the <em>DataView</em> which then pulls the lat/lng from the <em>DataStore</em> and tells the map to center on it.</p>
<p><img src="http://www.vinylfox.com/wp-content/uploads/2009/04/recenter-150x150.jpg" alt="recenter" title="recenter" width="150" height="150" class="alignright size-thumbnail wp-image-236" align="right" style="margin: 10px;" />The next example is also a new one, demonstrating how to use a form to interact with the map. A basic dialog has been created with a form in it, this dialog is opened from the tool section of the window in the <em>recenter-map</em> example. From this form you can enter in either a lat/lng or a street address, and the data entered is used to manipulate the map. Its a handy and fun little example.</p>
<p><img src="http://www.vinylfox.com/wp-content/uploads/2009/04/locale-150x150.jpg" alt="locale" title="locale" width="150" height="150" class="alignleft size-thumbnail wp-image-237" align="left" style="margin: 10px;" />This last one was something I did on a whim, because I noticed these map windows being used all around the world I thought it would be a good idea to follow the standards used by ExtJS and localize the text contained within the code. When I set in to do this, I assumed I could pull localized text messages from Google for the error numbers Google provided &#8211; go figure, their API actually provides no text at all for the error codes they return. I ended up copying the error text from the Google API reference/docs into my code, which was annoying, but I didn&#8217;t see any other options.</p>
<p>Thats it for now, enjoy the map panel updates!</p>
<p><a href="http://code.google.com/p/ext-ux-gmappanel/source/detail?r=17">http://code.google.com/p/ext-ux-gmappanel/source/detail?r=17</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vinylfox.com/gmappanel-updated-with-locale-support-and-more-examples/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>GMapPanel on Google Code</title>
		<link>http://www.vinylfox.com/gmappanel-on-google-code/</link>
		<comments>http://www.vinylfox.com/gmappanel-on-google-code/#comments</comments>
		<pubDate>Thu, 18 Sep 2008 13:28:16 +0000</pubDate>
		<dc:creator>Shea Frederick</dc:creator>
				<category><![CDATA[ExtJS News]]></category>
		<category><![CDATA[Google Maps]]></category>

		<guid isPermaLink="false">http://ww2.vinylfox.com/?p=16</guid>
		<description><![CDATA[It was too much trouble to keep track of the changes in this UX on my own, so I decided to put it up in Googles SVN. I will be monitoring the Google Code page so please post issues there from now on. http://code.google.com/p/ext-ux-gmappanel/]]></description>
			<content:encoded><![CDATA[<p><span style="background-color: #FFFFFF;"><img src="http://ww2.vinylfox.com/wp-content/uploads/2008/09/code_sm.png" alt="" title="code_sm" width="153" height="55" align="left" class="size-medium wp-image-17" /></span> It was too much trouble to keep track of the changes in this UX on my own, so I decided to put it up in Googles SVN. I will be monitoring the Google Code page so please post issues there from now on.</p>
<p><a href="http://code.google.com/p/ext-ux-gmappanel/">http://code.google.com/p/ext-ux-gmappanel/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vinylfox.com/gmappanel-on-google-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GMapPanel Example Included in ExtJS 2.2 SDK</title>
		<link>http://www.vinylfox.com/gmappanel-example-included-in-extjs-22-sdk/</link>
		<comments>http://www.vinylfox.com/gmappanel-example-included-in-extjs-22-sdk/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 00:05:53 +0000</pubDate>
		<dc:creator>Shea Frederick</dc:creator>
				<category><![CDATA[ExtJS News]]></category>
		<category><![CDATA[Google Maps]]></category>

		<guid isPermaLink="false">http://ww2.vinylfox.com/?p=9</guid>
		<description><![CDATA[It was nice to see the announcement that my extension for Google maps integration with ExtJS panels had been included in the official download package.]]></description>
			<content:encoded><![CDATA[<p class="p">It was nice to see the <a href="http://extjs.com/blog/2008/08/04/ext-22-released/">announcement</a> that my extension for Google maps integration with ExtJS panels has been included in the official download package. Here is the announcement on the ExtJS blog about the addition.</p>
<p class="quote">&#8220;This extension was originally written up as a demo for one of our previous blog posts. However, it proved to be such a hit with the community that we transformed it into an official extension. This is another useful example of extending a standard Ext component, in this case to interface with an external API. Check out the live example.&#8221;</p>
<p class="p">I initially built this to use in a client project, and it struck me that maybe someone else would have this same need. This code also functions as an example for programmers looking to extend ExtJS components to their liking, its simple enough to be broken down and understood. The client had no problem with me releasing the code, so into the wild it went.</p>
<p class="p">Upgrades will continue on this extension based on community feedback.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vinylfox.com/gmappanel-example-included-in-extjs-22-sdk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding a Google Map to a Tab or Window</title>
		<link>http://www.vinylfox.com/window-tab-google-map/</link>
		<comments>http://www.vinylfox.com/window-tab-google-map/#comments</comments>
		<pubDate>Mon, 26 Nov 2007 00:03:22 +0000</pubDate>
		<dc:creator>Shea Frederick</dc:creator>
				<category><![CDATA[ExtJS Tutorials]]></category>
		<category><![CDATA[Google Maps]]></category>

		<guid isPermaLink="false">http://ww2.vinylfox.com/?p=5</guid>
		<description><![CDATA[Short tutorial on how to have a google map appear within a window, or a tab.]]></description>
			<content:encoded><![CDATA[<p class="p">
		The code used for this example is available <a href="http://www.vinylfox.com/extjs/examples/window-tab-google-map.zip">here</a>. Working examples can be found <a href="http://www.vinylfox.com/extjs/examples/window-tab-google-map/">here</a>.
	</p>
<h3>Getting Started</h3>
<p class="p">
		 If you havent yet used the Google Maps API, then I would suggest going through some of their examples prior to this. I will assume that you already have knowledge of how the Google Maps API works.
	</p>
<p class="p">
		 Sadly, its quite easy if you already know what the Google Maps API needs, and what Ext provides. Getting to this point took me a few evenings of goofing with it. A Google Map initialization expects to be passed a DOM object, like what you would get from <i>getElementById(&#8216;bla&#8217;)</i>, and Ext provides this with <i>Ext.get(&#8216;bla&#8217;).dom</i>. This changes slightly when your using a tab or window, because you want your map to render in the body area of the tab/window, Ext provides <i>body.dom</i> for these situations.
	</p>
<p class="p">
		The window and Tab need to be rendered before you can gain access to the <i>body.dom</i> element, for this I just tag a <i>show()</i> in the end when they are being created.
	</p>
<h3>Tabs</h3>
<p><textarea name="code" class="js" rows="15" cols="100"><br />
var tabs = new Ext.TabPanel({<br />
	renderTo: &#8216;tabs&#8217;,<br />
	width:450,<br />
	height: 300,<br />
	frame:true<br />
});<br />
var tab1 = tabs.add({id: &#8216;gmap&#8217;,title: &#8216;Map Tab&#8217;,html: &#8216;map&#8217;,tbar: [<br />
	'Address',<br />
	addr_field = new Ext.form.TextField({<br />
		width:200,<br />
		qtip:'Example: 123 Fake Street, Baltimore, MD, 21211, US'<br />
	})<br />
]}).show();<br />
var tab2 = tabs.add({title: &#8216;Some Other Tab&#8217;});<br />
map = new GMap2(tab1.body.dom);<br />
</textarea></p>
<h3>Windows</h3>
<p><textarea name="code" class="js" rows="15" cols="100"><br />
dialog = new Ext.Window({<br />
	title: &#8216;Google Map in a Window&#8217;,<br />
	width:535,<br />
	height:500,<br />
	shadow:true,<br />
	closeAction: &#8216;hide&#8217;,<br />
	buttons: [<br />
		{<br />
			text:'Map Address',<br />
			handler: function(){ Map.addressPrompt(); }<br />
		},<br />
		{<br />
			text:'Close',<br />
			handler: function(){ dialog.hide(); }<br />
		}<br />
	]<br />
}).show();<br />
map = new GMap2(dialog.body.dom);<br />
</textarea></p>
<p class="p">
	The last line of each of these sniplets is the important part, it gives the Google Maps API access to the proper DOM element. Its just that simple, and when I figured it out, I was kicking myself.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vinylfox.com/window-tab-google-map/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
