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 rail = new GIcon(baseIcon, "http:///site/images/rail.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.395925,-0.726256), 15, G_NORMAL_MAP); // council office var point = new GLatLng(52.395925,-0.726256); var marker = createMarker(point,'

METADATA_GENERIC_COUNCIL_NAME

Telephone:

', council); map.addOverlay(marker); // Rail station var point = new GLatLng(52.393529,-0.731599); var marker = createMarker(point,'

Kettering Rail Station

Station Road, Kettering. NN15 7HS

nationalrail.co.uk

', rail); map.addOverlay(marker); // car park //var point = new GLatLng(52.577132,-1.547914); //var marker = createMarker(point,'

Short stay car park

', parking); //map.addOverlay(marker); // car park //var point = new GLatLng(52.576643,-1.549276); //var marker = createMarker(point,'

Long stay car park

', parking); //map.addOverlay(marker); // car park //var point = new GLatLng(52.578612,-1.54772); //var marker = createMarker(point,'

Long stay car park

', parking); //map.addOverlay(marker); // car park //var point = new GLatLng(52.579095,-1.550006); //var marker = createMarker(point,'

Long stay car park

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