hi all..
I am having a problem placing a basic marker on gmaps API
heres the code i am using....
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(18.945824, 72.834088), 16);
function createMarker(point) {
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml("<b>HELLO</b>");
});
return marker;
}
var point = new GLatLng(18.945824, 72.834088);
var marker = createMarker(point);
map.addOverlay(marker);
}}
it refuses to even load the gmaps API..
You can see the output at http://nestwelltech.com/Gmaps/shawn_test.html
Cheers
Abhijit...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---