Does anybody know a way to center a map appropiately with the API? It
does not work with my example: http://www.bamotex.de/neu (click on the
small ' i ' in the blue box)
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(48.158013,11.45732), 15);
map.addOverlay(new GMarker(48.158013,11.45732), 15);
map.setUIToDefault();
}
}
--
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.