var map;
var LLat;
var LLong;
var localSearch = new GlocalSearch();
var myOptions;
function initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(53.482249, -2.235517), 5);
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
point0 = new GLatLng(53.482249,-2.235517);
store0 = new GMarker(point0);
GEvent.addListener(store0, "click", function() {
store0.openInfoWindowHtml("Travelling man Manchester
Manchester
M1 1JW
");
});
map.addOverlay(store0);
point1 = new GLatLng(53.961217,-1.08008);
store1 = new GMarker(point1);
GEvent.addListener(store1, "click", function() {
store1.openInfoWindowHtml("Travelling man York
York
YO1 7LF
");
});
map.addOverlay(store1);
point2 = new GLatLng(53.800174,-1.551366);
store2 = new GMarker(point2);
GEvent.addListener(store2, "click", function() {
store2.openInfoWindowHtml("Travelling man Leeds
Leeds
LS1 8DE
");
});
map.addOverlay(store2);
point3 = new GLatLng(54.970867,-1.615835);
store3 = new GMarker(point3);
GEvent.addListener(store3, "click", function() {
store3.openInfoWindowHtml("Travelling man Newcastle
Newcastle
NE1 5JE
");
});
map.addOverlay(store3);
point4 = new GLatLng(53.483059,-2.235236);
store4 = new GMarker(point4);
GEvent.addListener(store4, "click", function() {
store4.openInfoWindowHtml("Forbidden Planet Manchester
Piccadilly Manchester
M1 1JR
");
});
map.addOverlay(store4);
point5 = new GLatLng(53.482518,-2.236197);
store5 = new GMarker(point5);
GEvent.addListener(store5, "click", function() {
store5.openInfoWindowHtml("Tokyo15 Unit SA3b
52 Church St Manchester
M4 1PW
");
});
map.addOverlay(store5);
point6 = new GLatLng(51.515224,-0.127288);
store6 = new GMarker(point6);
GEvent.addListener(store6, "click", function() {
store6.openInfoWindowHtml("Forbidden Planet London
London
WC2H 8JR
");
});
map.addOverlay(store6);
point7 = new GLatLng(52.482063,-1.893437);
store7 = new GMarker(point7);
GEvent.addListener(store7, "click", function() {
store7.openInfoWindowHtml("Forbidden Planet Birmingham
Birmingham
B4 7LA
");
});
map.addOverlay(store7);
point8 = new GLatLng(51.456504,-2.60838);
store8 = new GMarker(point8);
GEvent.addListener(store8, "click", function() {
store8.openInfoWindowHtml("Forbidden Planet Bristol
Triangle West Bristol
BS8 1EJ
");
});
map.addOverlay(store8);
point9 = new GLatLng(52.205718,0.133025);
store9 = new GMarker(point9);
GEvent.addListener(store9, "click", function() {
store9.openInfoWindowHtml("Forbidden Planet Cambridge
Cambridge
CB1 1DJ
");
});
map.addOverlay(store9);
point10 = new GLatLng(52.40927,-1.510765);
store10 = new GMarker(point10);
GEvent.addListener(store10, "click", function() {
store10.openInfoWindowHtml("Forbidden Planet Coventry
Coventry
CV1 1HF
");
});
map.addOverlay(store10);
point11 = new GLatLng(51.377956,-0.102993);
store11 = new GMarker(point11);
GEvent.addListener(store11, "click", function() {
store11.openInfoWindowHtml("Forbidden Planet Croydon
Croydon London
CR0 1TP
");
});
map.addOverlay(store11);
point12 = new GLatLng(53.402464,-2.977449);
store12 = new GMarker(point12);
GEvent.addListener(store12, "click", function() {
store12.openInfoWindowHtml("Forbidden Planet Liverpool
Liverpool
L1 4HY
");
});
map.addOverlay(store12);
point13 = new GLatLng(54.970867,-1.615835);
store13 = new GMarker(point13);
GEvent.addListener(store13, "click", function() {
store13.openInfoWindowHtml("Forbidden Planet Newcastle
Newcastle
NE1 5JE
");
});
map.addOverlay(store13);
point14 = new GLatLng(50.90279,-1.403131);
store14 = new GMarker(point14);
GEvent.addListener(store14, "click", function() {
store14.openInfoWindowHtml("Forbidden Planet Southampton
Southampton
SO14 1JU
");
});
map.addOverlay(store14);
point15 = new GLatLng(51.539601,-0.144198);
store15 = new GMarker(point15);
GEvent.addListener(store15, "click", function() {
store15.openInfoWindowHtml("Megacity Comics
Camden Town London
NW1 7HJ
");
});
map.addOverlay(store15);
point16 = new GLatLng(51.620319,-0.281349);
store16 = new GMarker(point16);
GEvent.addListener(store16, "click", function() {
store16.openInfoWindowHtml("Epic Heroes
Edgware Middlsex London
HA8 8HF
");
});
map.addOverlay(store16);
point17 = new GLatLng(53.797282,-3.049601);
store17 = new GMarker(point17);
GEvent.addListener(store17, "click", function() {
store17.openInfoWindowHtml("Thunderbooks
Blackpool Lancashire
FY4 1DW
");
});
map.addOverlay(store17);
point18 = new GLatLng(54.890932,-2.931655);
store18 = new GMarker(point18);
GEvent.addListener(store18, "click", function() {
store18.openInfoWindowHtml("Imagination Station
Carlisle Cumbria
CA1 1QS
");
});
map.addOverlay(store18);
point19 = new GLatLng(53.098549,-2.440556);
store19 = new GMarker(point19);
GEvent.addListener(store19, "click", function() {
store19.openInfoWindowHtml("Time Tunnel
Crewe Cheshire
CW1 2BS
");
});
map.addOverlay(store19);
point20 = new GLatLng(53.565996,-0.081809);
store20 = new GMarker(point20);
GEvent.addListener(store20, "click", function() {
store20.openInfoWindowHtml("Star Rider
Grimsby East Riding
DN31 1NT
");
});
map.addOverlay(store20);
point21 = new GLatLng(54.537944,-1.049663);
store21 = new GMarker(point21);
GEvent.addListener(store21, "click", function() {
store21.openInfoWindowHtml("Resurrection Comics & Games
Guisborough North Yorkshire
TS14 6DB
");
});
map.addOverlay(store21);
point22 = new GLatLng(53.477961,-2.240586);
store22 = new GMarker(point22);
GEvent.addListener(store22, "click", function() {
store22.openInfoWindowHtml("New East
Manchester
M1 4HT
");
});
map.addOverlay(store22);
point23 = new GLatLng(53.480975,-2.234486);
store23 = new GMarker(point23);
GEvent.addListener(store23, "click", function() {
store23.openInfoWindowHtml("Empire Exchange
Manchester
M1 1HW
");
});
map.addOverlay(store23);
point24 = new GLatLng(42.976427,-87.988279);
store24 = new GMarker(point24);
GEvent.addListener(store24, "click", function() {
store24.openInfoWindowHtml("Earths Mightiest Comics
Milwaukee
WI 53220
");
});
map.addOverlay(store24);
}
}
function goto(lat,long){
map.setCenter(new GLatLng(lat,long), 15);
}
var icon = new GIcon();
icon.image = "http://www.google.com/mapfiles/marker.png";
icon.shadow = "http://www.google.com/mapfiles/shadow50.png";
icon.iconSize = new GSize(20, 34);
icon.shadowSize = new GSize(37, 34);
icon.iconAnchor = new GPoint(10, 34);
function TestDataCheck(){
if(document.getElementById('postcode').value =='' || document.getElementById('postcode').value =='UK Postcode'){
return false;}else{
usePointFromPostcode(document.getElementById('postcode').value,
function (point){
document.getElementById('lat').value = point.lat();
document.getElementById('lng').value = point.lng();
})
return false;
}
}
function placeMarkerAtPoint(point)
{
var marker = new GMarker(point,icon);
map.addOverlay(marker);
}
function setCenterToPoint(point)
{
map.setCenter(point, 17);
}
function showPointLatLng(point)
{
alert("Latitude: " + point.lat() + "\nLongitude: " + point.lng());
}
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
oldonload();
func();
}
}
}
function addUnLoadEvent(func) {
var oldonunload = window.onunload;
if (typeof window.onunload != 'function') {
window.onunload = func;
} else {
window.onunload = function() {
oldonunload();
func();
}
}
}
//addLoadEvent(mapLoad);
//addUnLoadEvent(GUnload);