<?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>BlinkTag Inc &#187; ac transit</title>
	<atom:link href="http://blinktag.com/tag/ac-transit/feed/" rel="self" type="application/rss+xml" />
	<link>http://blinktag.com</link>
	<description></description>
	<lastBuildDate>Thu, 08 Jul 2010 04:50:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>you&#8217;d think this would be easy &#8211; Google Maps panes API</title>
		<link>http://blinktag.com/youd-think-this-would-be-easy-google-maps-panes-api/</link>
		<comments>http://blinktag.com/youd-think-this-would-be-easy-google-maps-panes-api/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 17:35:02 +0000</pubDate>
		<dc:creator>jed</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ac transit]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[einsert]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[map panes]]></category>
		<category><![CDATA[maps]]></category>

		<guid isPermaLink="false">http://blnktag.com/?p=460</guid>
		<description><![CDATA[You&#8217;d think it would be easy to change the stacking order of things you overlay in Google Maps, right? Like, no one wants that stupid AC Transit logo to go underneath the polygon they drew . . . . . you&#8217;d think . . . . Anyways, after like five or six hours of poking [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://511contracosta.org/contra-costa-transit-map"><img src="http://blinktag.com/images/e1445611deebee36b041ed8ffe038e5e.png"></a></p>
<p>You&#8217;d think it would be easy to change the stacking order of things you overlay in Google Maps, right?  Like, no one wants that stupid <a href="http://actransit.org">AC Transit</a> logo to go <em>underneath</em> the polygon they drew . . . . . you&#8217;d think . . . .</p>
<p>Anyways, after like five or six hours of poking around on forums I found a solution.</p>
<p>First, it turns out that overlays on Google Maps have both a ZIndex and a &#8220;GPane&#8221; associated with them.  If you change the ZIndex, you change the order in which objects on the same pane are displayed.  Turns out that polygons and ground overlays (like the AC Transit image) are automatically added to the same pane, so no help there.</p>
<p>Here&#8217;s the magic.  <a href="http://code.google.com/apis/maps/documentation/overlays.html#Custom_Overlays">Google lets you create custom overlay classes</a>, where you can specify GPanes for individual images or whatever.  But it looks really hard, and I&#8217;m lazy.</p>
<p>So I stole <a href="http://econym.org.uk/gmap/einsertg.htm">this js class</a> that does basically what I want.  Just replace the following snippit of code</p>
<p>map.getPane(1).appendChild(div);</p>
<p>with this one</p>
<p>map.getPane(<em>Some higher number, like 7</em>).appendChild(div);</p>
<p>and you&#8217;re good to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://blinktag.com/youd-think-this-would-be-easy-google-maps-panes-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
