KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a written a simple code which would display the location on the google map. But for some reasons its not showing up. Any idea whats happening? <html> <head> <title>Google Maps </title> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> (function() { window.onload = function(){ var latlng = new google.maps.LatLng(57.8, 14.0); var options = { zoom: 6, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById('map'), options); } })(); </script> </head> <body> <div id="map"></div> </body> </html>
Tags (comma-separated)
Save Edits
Cancel