Hi;
I am facing a problem in initializing my maps;what i have done is the
I created a function which I call it by a button submit
here is my code :
function MapSetCenter(y, x, speed, deviceid, direction, carnumber,
AutoScaleBool) {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(y, x), 15);
map.setUIToDefault();
...
....
...
..var marker = new GMarker(latlng, markerOptions);
GEvent.addListener(marker, "click", function() {
var myHtml = "<b>CAR NO: " + carnumber + "</b><br/><b>Speed: "
+ speed + "<br/>";
map.openInfoWindowHtml(latlng, myHtml);});
map.addOverlay(marker);}}
and a function to intialize the map
function intimap(x, y) {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(y, x), 13);
map.setUIToDefault();
}
}
so once the page is loaded there is no map and after I submit the
button the map appears..
but sry I canot post my link here becouse of some there is some
usernames and password to access thet page :(
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---