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://www.wandsworth.gov.uk/site/images/info.png", null, "http://www.wandsworth.gov.uk/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(51.457196,-0.190228), 15, G_NORMAL_MAP); // town hall with location.php details var point = new GLatLng(51.457196,-0.190228); var marker = createMarker(point,'
Town Hall
Main building.
Town Hall extension
90 Putney Bridge Road
For Adult Social Services
Wellbeck House
For Children's Services Department
17-27 Garratt Lane
Housing office