Hi;
I am facing a problem in initializing my maps;what i have done is the
I created a functions SETMAP(x,y) inside that function I added
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(y, x), 15);
map.setUIToDefault();
var marker = new GMarker(latlng);
map.addOverlay(marker);
and I created other function init(){
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(25.2154, 51.3265), 15);
map.setUIToDefault();
}
and on my page load="init()"
and on button submit I call the SETMAP() function
but it is not working the map is not initializing
but once I click on the button the map is showen normaly...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---