Hi,
I recently started with google maps API. I got a key generated for the
domain "localhost". My service provider does not give away static ip
addresses to non-commercial connections.
Of course, google expects a static IP from the network which
registered the key.
But, I registered for the key 2 days back and since then, my IP didnot
change. My page uses a simple code to just render the map.
<html>
<head>
<script type="text/javascript" src="http://maps.google.com/
maps/api/js?
sensor=false&key=ABQIAAAAWBPr9nPLAlfFlaaLpfnz6RT2yXp_ZAY8_ufC3CFXhHIE1NvwkxShNKH4EKuy3gDAF6FcmCVNvvD55g"></
script>
<script type="text/javascript">
initialize();
function initialize() {
var myLatlng = new google.maps.LatLng(-34.397,
150.644);
var myOptions = {
zoom: 8,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new
google.maps.Map(document.getElementById("map_canvas"), myOptions);
}
</script>
</head>
<body>
<div id="map_canvas"></div>
</body>
</html>
When I hit the page, I get a script error: 'null' is null or not an
object. at http://...staticmaps...../main.js.
Now, is the error because my key is invalid as I have a dynamic ip?
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.