Please can someone help me?

I have the following simple script which has no javascript errors, but
does not appear to be showing the pinpoint marker on the map:

<script type="text/javascript">
    //<![CDATA[
    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(51.518994, -0.133457), 17);
                map.addControl(new GLargeMapControl());
                map.addControl(new GScaleControl());
                map.addControl(new GMapTypeControl());

                var point = new 
GPoint(parseFloat(51.518994),parseFloat(-0.133457));
                var marker = new GMarker(point);
                map.addOverlay(marker);
      }
    }
    //]]>
    </script>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to Google-Maps-API@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to