30. 9. 2010
Prahy 13 – co chceme změnit
var map;
function map_initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById(„map_canvas“));
map.setCenter(new GLatLng(50, 14), 5);
map.setUIToDefault();
map.disableScrollWheelZoom();
}
}
window.onload = function() {
div_content = document.getElementById(‚map_canvas‘);
div_content.style.width = „620px“;
div_content.style.height = „620px“;
div_content.style.border = „1px solid #808080“;
map_initialize();
var geoxml = new GGeoXml(‚http://strana.zeleni.cz/247/10159/file/‘ + Math.random(), function() {
if (geoxml.loadedCorrectly()) {
geoxml.gotoDefaultViewport(map);
map.zoomOut();
map.savePosition();
}
});
map.addOverlay(geoxml);
}
document.write(div_map_canvas);