var geodecoder=null; var map=null; function UstawSrodek(address) { geocoder.getLatLng( address, function(point){ if (!point) { alert(address + " nie zostal odnaleziony"); } else { map.setCenter(point, 12); } });} function showAddress(address,txt,qiconns) { geocoder.getLatLng( address, function(point) { var marker = new GMarker(point,qiconns); marker.txt=txt; map.addOverlay(marker); GEvent.addListener(marker,"click",function() { marker.openInfoWindowHtml(marker.txt); UstawSrodek(address); }); marker.refresh(); });} function load() { /* if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById("mamamapa")); geocoder=new GClientGeocoder(); map.addControl(new GLargeMapControl()); map.addControl(new GOverviewMapControl()); UstawSrodek("Polska,GrudziÄ…dz"); } */ }