11. 6. 2009

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://files.me.com/jirka/qee98e?‘ + Math.random(), function() {
if (geoxml.loadedCorrectly()) {
geoxml.gotoDefaultViewport(map);
map.zoomOut();
map.savePosition();
}
});
map.addOverlay(geoxml);
}

document.write(div_map_canvas);