<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Handling Google Maps API Keys with ASP.NET MasterPages and Web.config</title>
	<atom:link href="http://shepherdweb.com/2006/12/08/handling-google-maps-api-keys-with-aspnet-masterpages-and-webconfig/feed/" rel="self" type="application/rss+xml" />
	<link>http://shepherdweb.com/2006/12/08/handling-google-maps-api-keys-with-aspnet-masterpages-and-webconfig/</link>
	<description>Shane Shepherd: web design and development; music</description>
	<pubDate>Fri, 21 Nov 2008 10:42:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Manohar</title>
		<link>http://shepherdweb.com/2006/12/08/handling-google-maps-api-keys-with-aspnet-masterpages-and-webconfig/#comment-18804</link>
		<dc:creator>Manohar</dc:creator>
		<pubDate>Sun, 18 Nov 2007 18:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.shepherdweb.com/2006/12/08/handling-google-maps-api-keys-with-aspnet-masterpages-and-webconfig/#comment-18804</guid>
		<description>Hi... I faced similar problem becos my website could be reached in several ways and Google would generate false bad-key message.

So, I did the following:
I created a separate map.html file that loaded the google map and additional stuff. Then I kept map.html in a given web location. On all the pages where I have to show the map I loaded the map.html within that html.

Way to load that mapfile within another html:


Since this location fixed, key is also fixed.

Thanks!!</description>
		<content:encoded><![CDATA[<p>Hi&#8230; I faced similar problem becos my website could be reached in several ways and Google would generate false bad-key message.</p>
<p>So, I did the following:<br />
I created a separate map.html file that loaded the google map and additional stuff. Then I kept map.html in a given web location. On all the pages where I have to show the map I loaded the map.html within that html.</p>
<p>Way to load that mapfile within another html:</p>
<p>Since this location fixed, key is also fixed.</p>
<p>Thanks!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://shepherdweb.com/2006/12/08/handling-google-maps-api-keys-with-aspnet-masterpages-and-webconfig/#comment-17539</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sun, 30 Sep 2007 02:05:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.shepherdweb.com/2006/12/08/handling-google-maps-api-keys-with-aspnet-masterpages-and-webconfig/#comment-17539</guid>
		<description>Good solution came very handy to solve my issue I had at work. 
If someone have issue with placing javascript it seems to work just fine with
Response.Write("your java script")</description>
		<content:encoded><![CDATA[<p>Good solution came very handy to solve my issue I had at work.<br />
If someone have issue with placing javascript it seems to work just fine with<br />
Response.Write(&#8221;your java script&#8221;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane</title>
		<link>http://shepherdweb.com/2006/12/08/handling-google-maps-api-keys-with-aspnet-masterpages-and-webconfig/#comment-16170</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Thu, 14 Jun 2007 20:16:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.shepherdweb.com/2006/12/08/handling-google-maps-api-keys-with-aspnet-masterpages-and-webconfig/#comment-16170</guid>
		<description>@Mike - 

I tried to locate the orginal code where I developed this solution, but I have been unable to find it.  After I developed this, we ended up abandoning the map because it didn't serve the greater purpose of the application we were developing.</description>
		<content:encoded><![CDATA[<p>@Mike - </p>
<p>I tried to locate the orginal code where I developed this solution, but I have been unable to find it.  After I developed this, we ended up abandoning the map because it didn&#8217;t serve the greater purpose of the application we were developing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://shepherdweb.com/2006/12/08/handling-google-maps-api-keys-with-aspnet-masterpages-and-webconfig/#comment-16165</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Thu, 14 Jun 2007 18:33:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.shepherdweb.com/2006/12/08/handling-google-maps-api-keys-with-aspnet-masterpages-and-webconfig/#comment-16165</guid>
		<description>Shane,

Thanks for the offer. I won’t distract you with my code. I’m hoping these posts on your page are useful to others who are also searching of a good way to include their Google map api keys in their web.config file. 

As far as I can tell; the approach you have described loads the key at the end of the page (I assume you’ve looked at your page source in your browser and agree). The convention is to load the api key at the head of a page (or at least before the map script). For a simple map with a default Google icon this does not matter, but when you start adding other stuff like your own icons etc loading the key at the end of the page confounds a lot of code. 

The solution for me will be a method that loads the key at the start of the page or near to it. In other words the key has to load before the script that loads the map is run and not after it, as in this example. If I take the current javascript that loads my api key and move it to a point after the map script I get the same result as using this approach. 

Thanks again for presenting this, I’ve not seen this anywhere else on the web. And if I had a better understanding of .net code I expect I’d figure out the answer, however at this point every trick I’ve tried (with the key in my web.config file) loads the api key after my map. The only solution I have right now is to load the key using javascript before the map script runs (and I keep all my keys in the page and comment out the ones that are not being used).  

Thanks again,

Any suggestions you have are most welcome. 

Mike.</description>
		<content:encoded><![CDATA[<p>Shane,</p>
<p>Thanks for the offer. I won’t distract you with my code. I’m hoping these posts on your page are useful to others who are also searching of a good way to include their Google map api keys in their web.config file. </p>
<p>As far as I can tell; the approach you have described loads the key at the end of the page (I assume you’ve looked at your page source in your browser and agree). The convention is to load the api key at the head of a page (or at least before the map script). For a simple map with a default Google icon this does not matter, but when you start adding other stuff like your own icons etc loading the key at the end of the page confounds a lot of code. </p>
<p>The solution for me will be a method that loads the key at the start of the page or near to it. In other words the key has to load before the script that loads the map is run and not after it, as in this example. If I take the current javascript that loads my api key and move it to a point after the map script I get the same result as using this approach. </p>
<p>Thanks again for presenting this, I’ve not seen this anywhere else on the web. And if I had a better understanding of .net code I expect I’d figure out the answer, however at this point every trick I’ve tried (with the key in my web.config file) loads the api key after my map. The only solution I have right now is to load the key using javascript before the map script runs (and I keep all my keys in the page and comment out the ones that are not being used).  </p>
<p>Thanks again,</p>
<p>Any suggestions you have are most welcome. </p>
<p>Mike.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane</title>
		<link>http://shepherdweb.com/2006/12/08/handling-google-maps-api-keys-with-aspnet-masterpages-and-webconfig/#comment-16155</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Thu, 14 Jun 2007 03:03:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.shepherdweb.com/2006/12/08/handling-google-maps-api-keys-with-aspnet-masterpages-and-webconfig/#comment-16155</guid>
		<description>@Mike - Hmmm, I'm not sure why it's not working for you.  If you'd like to provide a code sample or a link I'd be happy to take a look at it for you (no promises though).

By the way, I removed the link to the Vacation Rental site you submitted as your URL.  It looked suspiciously like a tricky attempt to sneak links to your online business onto my site.  A word of advice, don't do that...it pollutes your credibility.</description>
		<content:encoded><![CDATA[<p>@Mike - Hmmm, I&#8217;m not sure why it&#8217;s not working for you.  If you&#8217;d like to provide a code sample or a link I&#8217;d be happy to take a look at it for you (no promises though).</p>
<p>By the way, I removed the link to the Vacation Rental site you submitted as your URL.  It looked suspiciously like a tricky attempt to sneak links to your online business onto my site.  A word of advice, don&#8217;t do that&#8230;it pollutes your credibility.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://shepherdweb.com/2006/12/08/handling-google-maps-api-keys-with-aspnet-masterpages-and-webconfig/#comment-16154</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Thu, 14 Jun 2007 02:44:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.shepherdweb.com/2006/12/08/handling-google-maps-api-keys-with-aspnet-masterpages-and-webconfig/#comment-16154</guid>
		<description>This is a great idea. 

But.............

with my code this loads the API key at the end of the page. Too late to do everything it needs to do. If I load the key through the Javascript at the head of the page, it loads early enough to do its job. I can get a map with this approach but I can't do all the trick stuff I normally accomplish as the key loads at the end of the page.</description>
		<content:encoded><![CDATA[<p>This is a great idea. </p>
<p>But&#8230;&#8230;&#8230;&#8230;.</p>
<p>with my code this loads the API key at the end of the page. Too late to do everything it needs to do. If I load the key through the Javascript at the head of the page, it loads early enough to do its job. I can get a map with this approach but I can&#8217;t do all the trick stuff I normally accomplish as the key loads at the end of the page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DotNetKicks.com</title>
		<link>http://shepherdweb.com/2006/12/08/handling-google-maps-api-keys-with-aspnet-masterpages-and-webconfig/#comment-1797</link>
		<dc:creator>DotNetKicks.com</dc:creator>
		<pubDate>Fri, 08 Dec 2006 21:03:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.shepherdweb.com/2006/12/08/handling-google-maps-api-keys-with-aspnet-masterpages-and-webconfig/#comment-1797</guid>
		<description>&lt;strong&gt;Handling Google Maps API Keys with ASP.NET MasterPages and Web.config...&lt;/strong&gt;

You've been kicked (a good thing) - Trackback from DotNetKicks.com...</description>
		<content:encoded><![CDATA[<p><strong>Handling Google Maps API Keys with ASP.NET MasterPages and Web.config&#8230;</strong></p>
<p>You&#8217;ve been kicked (a good thing) - Trackback from DotNetKicks.com&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
