Why is this simple Google Maps code not working?

divinifer

New Member
I am using version 3.8 without a key. I have used this exact code before (with no key) from my desktop and it worked just fine, but now it is not working for some reason.

I can't find any typos, has the import declaration without a key changed from what I am using?

Here is my stripped-down code:
\[code\]<!DOCTYPE html><html> <head> <title>asdfasdf</title> </head> <body onload = "initialize();"> <!-- map here --> <div id = "map"></div> <!-- Google Maps API --> <script type = "text/javascript" src = "http://maps.googleapis.com/maps/api/js?&sensor=true&v=3.8"></script> <script type = "text/javascript"> function initialize() { // object literal for map options var myOptions = { center: new google.maps.LatLng(37.09024, -95.712891), // coordinates for center of map 30, 3 zoom: 4, // smaller number --> zoom out mapTypeId: google.maps.MapTypeId.HYBRID // ROADMAP, SATELLITE, TERRAIN, or HYBRID }; // note: if the id has a dash in its' name, map instantiation doesn't work! var map = new google.maps.Map(document.getElementById("map"), myOptions); } // end of initialize </script> </body></html>\[/code\]
 
Back
Top