// JavaScript Document
window.onload = function()
{
initialize(); initShowHideDivs()
}
var map = null;
var geocoder = null;
function initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(0, 0), 12);
map.addControl (new GSmallMapControl ());
geocoder = new GClientGeocoder();
var address=' WR1 1NT, UK';
var locname='Able Pest Control
Cover 30 Miles From: WR1 1NT
This is not our office address';
if (geocoder) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
alert(address + " not found");
} else {
map.setCenter(point, 12);
var marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml("24 Hour " +
locname);
var circle = new google.maps.Circle({ radius: 50, strokeColor: "#FF0000", strokeOpacity: 0.8, strokeWeight: 2, fillColor: "#FF0000", fillOpacity: 0.35, });
marker.circle = circle;
circle.bindTo('map', marker);
circle.bindTo('center', marker, 'position');
Array.push(marker);
map.addOverlay(circle);
}
}
)
}
}
}