I've been trying to create a simple marker but everything has failed. Here is my code:
<html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <script type="text/javascript" src="http://maps.google.com/maps/api/js? sensor=false"></script> <script type="text/javascript"> function initialize() { var latlng = new google.maps.LatLng(42.98845, -81.26595); var myOptions = { zoom: 13, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById ("map_canvas"), myOptions); map.addOverlay(new GMarker(new GLatLng(42.98845, -81.26595))); } </script> </head> <body onload="initialize()"> <div id="map_canvas" style="width:75%; height:75%"></div> </body> </html> I followed the tutorials but it seems like the marker is never going to be added. thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-API?hl=en -~----------~----~----~----~------~----~------~--~---
