// 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=' NG24 1XG, UK';
var locname='Able Electrics
Cover 30 Miles From: NG24 1XG
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);
}
}
)
}
}
}