var mapa = function (id) { this.ukazAdresu = function (bod) { var znackaMoznosti = {draggable : false}; this.znacka = new GMarker (bod, znackaMoznosti); this.mapa.addOverlay (this.znacka); this.mapa.setCenter (bod, this.priblizeni); } this.nastavMapu = function (bod) { this.mapa.setCenter (bod, this.priblizeni); } this.nastavTypMapy = function (typ) { this.mapa.setMapType (typ); } if (GBrowserIsCompatible ()) { //nacteni prvotnich souradnic var pocatecniPozice = new GLatLng (49.866316729538674, 15.457763671875); this.priblizeni = 6; this.mapa = new GMap2 (document.getElementById (id)); this.mapa.setCenter (pocatecniPozice, this.priblizeni); this.mapa.addControl (new GSmallMapControl ()); this.mapa.addMapType (G_PHYSICAL_MAP); this.mapa.addControl (new GHierarchicalMapTypeControl ()); } };