Kamis, 01 Maret 2012

Solve Problem of Google Maps API key not working



Solve Problem of Google Maps API key not working - It is solving the problem of Google Maps API key not working from my previous post. Click here to post about Problem Google Maps API key not working.

This is Solve Problem of Google Maps API key not working:

I came across this question as I was just now beating my head against this same issue. I finally noticed that the code Google provided for linking to the API was different from what I'd been using. I replaced this

<script type="text/javascript" src="http://www.google.com/jsapi?key=___">
</script>
<script type="text/javascript">
google.load("maps", "2.x", { "language": "en" });
</script>

with this

<script type="text/javascript" src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=___"><br /></script>

and the error went away.

Tidak ada komentar:

Posting Komentar