function load(){ if(GBrowserIsCompatible()){ var map = new GMap2(document.getElementById("mappa")); var mapTypeControl = new GSmallMapControl(); var topRight = new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(10,10)); var bottomRight = new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(10,20)); map.addControl(mapTypeControl, bottomRight); GEvent.addListener(map, "dblclick", function() { map.removeControl(mapTypeControl); map.addControl(new GSmallMapControl(), bottomRight); }); map.addControl(new GMapTypeControl(1)); map.setCenter(new GLatLng( 42.966425,10.646675), 9); map.setMapType(G_PHYSICAL_MAP); map.enableContinuousZoom(); map.enableDoubleClickZoom(); icon = new GIcon(); icon.image = "/immagini/rosso.png"; icon.iconSize = new GSize(44, 39); icon.iconAnchor = new GPoint(18, 40); icon.infoWindowAnchor = new GPoint(5, 1); iconb = new GIcon(); iconb.image = "/immagini/verde.png"; iconb.iconSize = new GSize(63, 56); iconb.iconAnchor = new GPoint(18, 50); iconb.infoWindowAnchor = new GPoint(5, 1); iconc = new GIcon(); iconc.image = "/immagini/giallo2.png"; iconc.iconSize = new GSize(64, 64); iconc.iconAnchor = new GPoint(18, 60); iconc.infoWindowAnchor = new GPoint(15, 1); function createMarker(point, icon, notes){ var marker = new GMarker(point, icon); GEvent.addListener(marker, "click", function(){ marker.openInfoWindowHtml(notes); }); return marker; } GEvent.addListener(map, "moveend", function() { var center = map.getCenter(); }); GEvent.addListener(map, "zoomend", function() { var zoom = map.getZoom(); }); GEvent.addListener(map, "maptypechanged", function() { var mode = map.getCurrentMapType().getName(); }); var bounds = map.getBounds(); var southWest = bounds.getSouthWest(); var northEast = bounds.getNorthEast(); var lngSpan = northEast.lng() - southWest.lng(); var latSpan = northEast.lat() - southWest.lat(); var point=new GLatLng(42.966425,10.646675); map.addOverlay(createMarker(point, iconb, '
Villaggio Turistico Airone
')); var point=new GLatLng(42.996110107947956,10.517005920410156); map.addOverlay(createMarker(point, iconc, '
Baratti
Baratti
'));var point=new GLatLng(42.96797977096856,10.681800842285156); map.addOverlay(createMarker(point, icon, '
Vignale - Piombino - Populonia - Baratti
Vignale - Piombino - Populonia - Baratti
')); var geoXml29; geoXml29 = new GGeoXml("http://villaggioturisticoairone.com/kml/vignale_-_piombino_-_populonia_-_baratti.kml"); //GEvent.addListener(geoXml29, 'click', function() { // When clicked, open an Info Window // geoXml29.openInfoWindowHtml('Some text'); // }); map.addOverlay(geoXml29); var point=new GLatLng(43.078297,10.679241); map.addOverlay(createMarker(point, icon, '
Suvereto - Sassetta - Monteverdi Marittimo
Suvereto - Sassetta - Monteverdi Marittimo
')); var geoXml30; geoXml30 = new GGeoXml("http://villaggioturisticoairone.com/kml/suvereto_-_sassetta_-_monteverdi_m.mo.kml"); //GEvent.addListener(geoXml30, 'click', function() { // When clicked, open an Info Window // geoXml30.openInfoWindowHtml('Some text'); // }); map.addOverlay(geoXml30); var point=new GLatLng(42.909019,10.850567); map.addOverlay(createMarker(point, icon, '
Scarlino - Cala Violina
Scarlino - Cala Violina
')); var geoXml31; geoXml31 = new GGeoXml("http://villaggioturisticoairone.com/kml/scarlino_-_cala_violina.kml"); //GEvent.addListener(geoXml31, 'click', function() { // When clicked, open an Info Window // geoXml31.openInfoWindowHtml('Some text'); // }); map.addOverlay(geoXml31); var point=new GLatLng(43.15460431581844,10.819129943847656); map.addOverlay(createMarker(point, icon, '
Colline Metallifere - Lago Boracifero - Sasso Pisano
Colline Metallifere - Lago Boracifero - Sasso Pisano
')); var geoXml32; geoXml32 = new GGeoXml("http://villaggioturisticoairone.com/kml/colline_metallifere_-_lago_boracifero_-_sasso_pisano.kml"); //GEvent.addListener(geoXml32, 'click', function() { // When clicked, open an Info Window // geoXml32.openInfoWindowHtml('Some text'); // }); map.addOverlay(geoXml32); var point=new GLatLng(43.060322,10.614468); map.addOverlay(createMarker(point, icon, '
Costa degli Etruschi e Val di Cornia
Costa degli Etruschi e Val di Cornia
')); var geoXml33; geoXml33 = new GGeoXml("http://villaggioturisticoairone.com/kml/costa_degli_etruschi_-_val_di_cornia.kml"); //GEvent.addListener(geoXml33, 'click', function() { // When clicked, open an Info Window // geoXml33.openInfoWindowHtml('Some text'); // }); map.addOverlay(geoXml33); var point=new GLatLng(43.078297,10.679241); map.addOverlay(createMarker(point, icon, '
Suvereto - Massa Marittima - Monterotondo M.mo
Suvereto - Massa Marittima - Monterotondo M.mo
')); var geoXml34; geoXml34 = new GGeoXml("http://villaggioturisticoairone.com/kml/massa_marittima_-monterotondo_m.mo_-__suvereto.kml"); //GEvent.addListener(geoXml34, 'click', function() { // When clicked, open an Info Window // geoXml34.openInfoWindowHtml('Some text'); // }); map.addOverlay(geoXml34); }}//]]>