if (GBrowserIsCompatible()) { var baseIcon = new GIcon(); baseIcon.iconSize=new GSize(28,28); baseIcon.shadowSize=new GSize(40,28); baseIcon.iconAnchor=new GPoint(16,32); baseIcon.infoWindowAnchor=new GPoint(16,0); var council = new GIcon(baseIcon, "http:///site/images/info.png", null, "http:///site/images/sign_shadow.png"); var parking = new GIcon(baseIcon, "http:///site/images/parking.png", null, "http:///site/images/sign_shadow.png"); function createMarker(point,html,icon) { var marker = new GMarker(point,icon); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); return marker; } // ------- var map = new GMap2(document.getElementById("map")); map.addControl(new GLargeMapControl()); map.setCenter(new GLatLng(52.680721,-1.827582), 15, G_NORMAL_MAP); // Lichfield District Council var point = new GLatLng(52.680721,-1.827582); var marker = createMarker(point,'

Lichfield District Council

', ''); map.addOverlay(marker); } else { alert("Sorry, the Google Maps API is not compatible with this browser"); }