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, 13);
}
});}
function UstawSrodek2(address) {
geocoder.getLatLng(
address, function(point){
if (!point) {
alert(address + " nie zostal odnaleziony");
} else {
map3.setCenter(point, 13);
}
});}
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);
});
marker.refresh();
});}
function showAddress3(address,txt,qiconns) {
geocoder.getLatLng(
address, function(point) {
var marker = new GMarker(point,qiconns);
marker.txt=txt;
map3.addOverlay(marker);
GEvent.addListener(marker,"click",function() {
marker.openInfoWindowHtml(marker.txt);
});
marker.refresh();
});}
function showAddress2(address){
geocoder.getLatLng(
address,
function(point){
map2.setCenter(point,13);
}
);
}
function showAddress4(address){
geocoder.getLatLng(
address,
function(point){
map4.setCenter(point,13);
}
);
}
function load() {
/*
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("mamamapa"));
geocoder=new GClientGeocoder();
map.addControl(new GLargeMapControl());
map.addControl(new GOverviewMapControl());
UstawSrodek("Polska, Legionowo")
}
*/
}