if(GBrowserIsCompatible()){ function createMarker(point,name,html){ var marker=new GMarker(point); to_htmls=html+'
Route berechnen: Nach hier<\/b> - Von hier<\/a>'+ '
Start:
'+ '
'+ ''+ ''; from_htmls=html+'
Route berechnen:
Nach hier<\/a> - Von hier<\/b>'+ '
Ziel:'+ '
'+ ''+ ''; html=html+'
Route berechnen:
Nach hier<\/a> - Von hier<\/a>'; GEvent.addListener(marker,"click",function(){ marker.openInfoWindowHtml(html); }); return marker; } function tohere(){marker.openInfoWindowHtml(to_htmls);} function fromhere(){marker.openInfoWindowHtml(from_htmls);} function zi(i){var nz=map.getZoom();map.setZoom(nz+1);} function zo(i){var nz=map.getZoom();map.setZoom(nz-1);} var map = new GMap2(document.getElementById("mapice")); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(50.008194,14.555093),15); var point=new GLatLng(50.008194,14.555093); var address="Club Hotel Praha - Průhonice
Průhonice 400
Zoom In Zoom Out
"; var marker=createMarker(point,'Club Hotel Praha',address) map.addOverlay(marker); address2=address+"
Route berechnen: Nach hier - Von hier"; marker.openInfoWindowHtml(address2); } else{alert("Sorry, the Google Maps API is not compatible with this browser");} // This Javascript is based on code provided by the Community Church Javascript Team http://www.bisphamchurch.org.uk/ http://econym.org.uk/gmap/ /* //old version var map=new GMap(document.getElementById("mapice")); map.centerAndZoom(new GPoint(14.555093,50.008194),4); map.addControl(new GLargeMapControl()); map.enableContinuousZoom(); map.addControl(new GMapTypeControl()); function zi(i){var nz=map.getZoom();map.setZoom(nz+1);} function zo(i){var nz=map.getZoom();map.setZoom(nz-1);} function createInfoMarker(point,address){ var marker=new GMarker(point); GEvent.addListener(marker,"click",function(){marker.openInfoWindowHtml(address);} );return marker;} var point=new GPoint(14.555093,50.008194); address="Club Hotel Praha - Průhonice
Průhonice 400
Zoom In Zoom Out"; var marker=createInfoMarker(point,address); map.addOverlay(marker); marker.openInfoWindowHtml(address); */