function initialize() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng(46.678189,11.17228), 14); var blueIcon = new GIcon(G_DEFAULT_ICON); blueIcon.image = "immagini_raggiungerci/logo.png"; // Set up our GMarkerOptions object markerOptions = { icon:blueIcon }; map.addOverlay(new GMarker( new GLatLng(46.678189,11.17228), markerOptions)); var mapTypeControl = new GMapTypeControl(); var topRight = new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(10,15)); var bottomRight = new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(10,15)); map.addControl(mapTypeControl, topRight); GEvent.addListener(map, "dblclick", function() { map.removeControl(mapTypeControl); map.addControl(new GMapTypeControl(), bottomRight); }); map.addControl(new GSmallMapControl()); } }