When I run my gmap in my browser I am getting the error below in
firebug after sometime in my browser. I don't understand what type of
error is this.
error:
a is null [Break on this error]
function Vm(a){var b;for(;b=a.firstChild;){Um(b);a.removeChild(b)}} in
main.js
This is the code :
"var x and var y in the GLatLng(x,y) is fetched from the database"
var centerpoint=new GLatLng(x,y);
//var centerpoint=new GLatLng(44.8126182556, 20.4348201752);
function load() {
if (GBrowserIsCompatible()) {
map=new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.addControl(new GOverviewMapControl());
map.setCenter(centerpoint,4);
GEvent.addListener(map, "mousemove", function(mark, point){
document.getElementById("message").innerHTML =
mark.toString();
});
// ajax();
}
else {
alert("Sorry, the Google Maps API is not compatible with
this browser");
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---