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.572432,10.975342), 8); 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.060589,11.488983); map.addOverlay(createMarker(point, iconb, '
Montalcino Brunello wine tour
Montalcino Brunello wine tour
'));var point=new GLatLng(43.768730,11.256901); map.addOverlay(createMarker(point, iconb, '
City tour of Florence
City tour of Florence
'));var point=new GLatLng(43.321431202638394,11.32965087890625); map.addOverlay(createMarker(point, iconb, '
City tour of San Gimignano and Siena
City tour of San Gimignano and Siena
'));var point=new GLatLng(43.65396273281939,11.301155090332031); map.addOverlay(createMarker(point, iconb, '
Chianti tour
Chianti tour
'));var point=new GLatLng(43.092926,11.782389); map.addOverlay(createMarker(point, iconb, '
Pienza and Montepulciano
Pienza and Montepulciano
'));var point=new GLatLng(43.77753930104478,10.465164184570312); map.addOverlay(createMarker(point, iconb, '
City tour of Lucca and Pisa
City tour of Lucca and Pisa
'));var point=new GLatLng(43.698906587501355,11.4697265625); map.addOverlay(createMarker(point, iconb, '
The Outlet Shopping Tour
The Outlet Shopping Tour
'));var point=new GLatLng(44.10730980734024,9.824180603027344); map.addOverlay(createMarker(point, iconb, '
The Exclusive tour to Cinque Terre
The Exclusive tour to Cinque Terre
'));}}//]]>