Re: Google Maps API Key on localhost or intranet
Yes sure I did:
Thank you for signing up for a Google Maps API key. Your key is:
ABQIAAAAknl3uIKLn_R1xBc2TTU3ixTSGx_FirJiLbSPhBqCw23ZnHnC3BTh9xMcmXOqz0UObb-KOjvzVOzmuQ
This key is good for all URLs in this directory:
http://lmn10996:8080/maps/
And I am using the sample they are providing on the key gen page. It
fails :(
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script
src="http://maps.google.com/maps?file=api&v=1&key=ABQIAAAAknl3uIKLn_R1xBc2TTU3ixTSGx_FirJiLbSPhBqCw23ZnHnC3BTh9xMcmXOqz0UObb-KOjvzVOzmuQ"
type="text/javascript"></script>
</head>
<body>
<div id="map" style="width: 500px; height: 400px"></div>
<script type="text/javascript">
//<![CDATA[
var map = new GMap(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.centerAndZoom(new GPoint(-122.1419, 37.4419), 4);
//]]>
</script>
</body>
</html>
0 Comments:
Yorum Gönder
<< Home