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( 43.082555,10.540253), 10); 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/giallo.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(43.082555,10.540253); map.addOverlay(createMarker(point, iconb, '
Il Cardellino
')); var point=new GLatLng(43.093925,10.541889); map.addOverlay(createMarker(point, icon, '
Bike Tour z San Vincenzo-Campiglia-Rimigliano
Bike Tour z San Vincenzo-Campiglia-Rimigliano
')); var geoXml23; geoXml23 = new GGeoXml("http://residencecardellino.com/kml/san_vincenzo_-_campiglia_m.ma_-_rimigliano.kml"); //GEvent.addListener(geoXml23, 'click', function() { // When clicked, open an Info Window // geoXml23.openInfoWindowHtml('Some text'); // }); map.addOverlay(geoXml23); var point=new GLatLng(43.310402,10.517785); map.addOverlay(createMarker(point, icon, '
Cecina Rajd Rowerowy - Suvereto - Venturina
Cecina Rajd Rowerowy - Suvereto - Venturina
')); var geoXml27; geoXml27 = new GGeoXml("http://residencecardellino.com/kml/cecina_-_suvereto_-_venturina.kml"); //GEvent.addListener(geoXml27, 'click', function() { // When clicked, open an Info Window // geoXml27.openInfoWindowHtml('Some text'); // }); map.addOverlay(geoXml27); var point=new GLatLng(43.093925,10.541889); map.addOverlay(createMarker(point, icon, '
Bike Tour z San Vincenzo-Campiglia Marittima
Bike Tour z San Vincenzo-Campiglia Marittima
')); var geoXml24; geoXml24 = new GGeoXml("http://residencecardellino.com/kml/escursione_anello_san_vincenzo_-_campiglia_m.ma.kml"); //GEvent.addListener(geoXml24, 'click', function() { // When clicked, open an Info Window // geoXml24.openInfoWindowHtml('Some text'); // }); map.addOverlay(geoXml24); var point=new GLatLng(43.08042388708439,10.540008544921875); map.addOverlay(createMarker(point, icon, '
Bike Tour San Vincenzo Casale-M.mo-Castagneto Carducci
Bike Tour San Vincenzo Casale-M.mo-Castagneto Carducci
')); var geoXml25; geoXml25 = new GGeoXml("http://residencecardellino.com/kml/escursione_anello_san_vincenzo_-_castagneto_carducci_-_casale_m.mo.kml"); //GEvent.addListener(geoXml25, 'click', function() { // When clicked, open an Info Window // geoXml25.openInfoWindowHtml('Some text'); // }); map.addOverlay(geoXml25); var point=new GLatLng(43.08493742707592,10.540351867675781); map.addOverlay(createMarker(point, icon, '
Bike Tour Wybrzeze Etruskow - Val di Cornia
Bike Tour Wybrzeze Etruskow - Val di Cornia
')); var geoXml26; geoXml26 = new GGeoXml("http://residencecardellino.com/kml/costa_etrusca_-_val_di_cornia.kml"); //GEvent.addListener(geoXml26, 'click', function() { // When clicked, open an Info Window // geoXml26.openInfoWindowHtml('Some text'); // }); map.addOverlay(geoXml26); var point=new GLatLng(43.078297,10.679241); map.addOverlay(createMarker(point, icon, '
Bike Tour Suvereto - Sassetta - Monteverdi Marittimo
Bike Tour Suvereto - Sassetta - Monteverdi Marittimo
')); var geoXml28; geoXml28 = new GGeoXml("http://residencecardellino.com/kml/suvereto_-_sassetta_-_monteverdi_m.mo.kml"); //GEvent.addListener(geoXml28, 'click', function() { // When clicked, open an Info Window // geoXml28.openInfoWindowHtml('Some text'); // }); map.addOverlay(geoXml28); var point=new GLatLng(43.093925,10.541889); map.addOverlay(createMarker(point, iconc, '
San Vincenzo
San Vincenzo
'));var point=new GLatLng(43.17889387830362,10.546531677246094); map.addOverlay(createMarker(point, iconc, '
Marina di Castagneto Carducci
Marina di Castagneto Carducci
'));var point=new GLatLng(43.159725,10.610966); map.addOverlay(createMarker(point, iconc, '
Castagneto Carducci
Castagneto Carducci
'));var point=new GLatLng(43.233897785044604,10.61553955078125); map.addOverlay(createMarker(point, iconc, '
Bolgheri
Bolgheri
'));var point=new GLatLng(43.129147,10.643240); map.addOverlay(createMarker(point, iconc, '
Sassetta
Sassetta
'));var point=new GLatLng(43.078297,10.679241); map.addOverlay(createMarker(point, iconc, '
Suvereto
Suvereto
'));var point=new GLatLng(42.99937440265897,10.521125793457031); map.addOverlay(createMarker(point, iconc, '
Baratti
Baratti
'));var point=new GLatLng(42.99133890374433,10.492286682128906); map.addOverlay(createMarker(point, iconc, '
Populonia
Populonia
'));var point=new GLatLng(43.060322,10.614468); map.addOverlay(createMarker(point, iconc, '
Campiglia Marittima
Campiglia Marittima
'));var point=new GLatLng(43.05157953305728,10.544986724853516); map.addOverlay(createMarker(point, iconc, '
Parco Costiero di Rimigliano
Parco Costiero di Rimigliano
'));var point=new GLatLng(42.925850,10.525432); map.addOverlay(createMarker(point, iconc, '
Piombino
Piombino
'));}}//]]>