//Aberdeen
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Aberdeenshire',57.37, -2.5,1,1,
'Aberdeenshire
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Aberfeldy',56.62, -3.87,1,1,
'Aberfeldy
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Aberfeldy & Loch Tay',56.62, -3.87,1,1,
'Aberfeldy & Loch Tay
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Achnasheen',57.58, -5.08,1,1,
'Achnasheen
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Alness',57.69, -4.26,1,1,
'Alness
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Angus Glens',56.71, -2.88,1,1,
'Angus Glens
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Applecross',57.43, -5.82,1,1,
'Applecross
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Arbroath',56.56, -2.58,1,1,
'Arbroath
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Aviemore',57.19, -3.83,1,1,
'Aviemore
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Ayr',55.46, -4.63,1,1,
'Ayr
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Ayrshire',55.61, -4.5,1,1,
'Ayrshire
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Ballachulish',56.69, -5.18,1,2,
'Ballachulish
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Ballycastle',55.2, -6.24,1,1,
'Ballycastle
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Braemar',57.01, -3.39,1,1,
'Braemar
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Brechin',56.73, -2.66,1,1,
'Brechin
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Buckie',57.68, -2.96,1,1,
'Buckie
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Burghead',57.7, -3.49,1,1,
'Burghead
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Caithness',58.44, -3.89,1,1,
'Caithness
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Campbeltown',55.43, -5.61,1,1,
'Campbeltown
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Cannich',57.35, -4.76,1,1,
'Cannich
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Cromarty',57.68, -4.03,1,1,
'Cromarty
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Dalwhinnie',56.93, -4.24,1,1,
'Dalwhinnie
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Dingwall',57.6, -4.44,1,1,
'Dingwall
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Dumfries',55.07, -3.61,1,1,
'Dumfries
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Dundee',56.46, -2.97,1,1,
'Dundee
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Dunfermline',56.07, -3.45,1,1,
'Dunfermline
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Edinburgh',55.95, -3.27,1,1,
'Edinburgh
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Fife',56.34, -3.29,1,1,
'Fife
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Fort Augustus & Loch Ness',57.2, -4.56,1,1,
'Fort Augustus & Loch Ness
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Fort William',56.82, -5.11,1,1,
'Fort William
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Fort William & Glen Nevis',56.82, -5.11,1,1,
'Fort William & Glen Nevis
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Fraserburgh',57.69, -2.01,1,1,
'Fraserburgh
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Gairloch',57.72, -5.69,1,1,
'Gairloch
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Galashiels',55.62, -2.81,1,1,
'Galashiels
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Glasgow',55.87, -4.26,1,1,
'Glasgow
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Glasgow International',55.87, -4.44,1,1,
'Glasgow International
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Glencoe',56.68, -5.1,1,2,
'Glencoe
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Glenfinnan',56.87, -5.44,1,1,
'Glenfinnan
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Hunterston',55.72, -4.9,1,1,
'Hunterston
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Inveraray',56.24, -5.07,1,1,
'Inveraray
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Invergarry',57.06, -4.79,1,1,
'Invergarry
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Invergordon',57.69, -4.17,1,1,
'Invergordon
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Invermoriston',57.22, -4.62,1,1,
'Invermoriston
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Inverness',57.48, -4.22,1,1,
'Inverness
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Inverurie',57.29, -2.38,1,1,
'Inverurie
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Isle of Mull - Lochaline',56.54, -5.78,1,1,
'Isle of Mull - Lochaline
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Isle of Skye',57.41, -6.19,1,1,
'Isle of Skye
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Kenmore',56.58, -4,1,1,
'Kenmore
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Kilmarnock',55.61, -4.5,1,1,
'Kilmarnock
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Kinloss',57.64, -3.57,1,1,
'Kinloss
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Kirkcaldy',56.12, -3.16,1,1,
'Kirkcaldy
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Kirkwall',58.98, -2.96,1,1,
'Kirkwall
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Kyle of Lochalsh',57.28, -5.71,1,1,
'Kyle of Lochalsh
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Lairg',58.02, -4.4,1,1,
'Lairg
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Leith',55.98, -3.17,1,1,
'Leith
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Livingston',55.9, -3.51,1,1,
'Livingston
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Loch Lomond',56.07, -4.61,1,1,
'Loch Lomond
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Lochaline',56.54, -5.78,1,1,
'Lochaline
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Lochcarron',57.4, -5.5,1,1,
'Lochcarron
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Lochearnhead',56.39, -4.29,1,1,
'Lochearnhead
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Lossiemouth',57.72, -3.29,1,1,
'Lossiemouth
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Macduff',57.67, -2.49,1,1,
'Macduff
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Mallaig',57.01, -5.83,1,1,
'Mallaig
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Montrose',56.71, -2.47,1,1,
'Montrose
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Motherwell',55.78, -3.98,1,1,
'Motherwell
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['North Uist',57.59, -7.27,1,1,
'North Uist
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Oban',56.41, -5.47,1,1,
'Oban
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Old Kilpatrick',55.93, -4.46,1,1,
'Old Kilpatrick
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Orkney',58.98, -2.96,1,1,
'Orkney
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Paisley',55.85, -4.44,1,1,
'Paisley
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Perth',56.4, -3.43,1,1,
'Perth
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Peterhead',57.51, -1.79,1,1,
'Peterhead
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Plockton',57.34, -5.65,1,1,
'Plockton
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Poolewe',57.77, -5.6,1,1,
'Poolewe
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Portree',57.41, -6.19,1,1,
'Portree
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Rosyth',56.04, -3.42,1,1,
'Rosyth
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Rothesay',55.84, -5.05,1,1,
'Rothesay
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Royal Deeside',57.01, -3.39,1,1,
'Royal Deeside
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Scalloway',60.14, -1.28,1,1,
'Scalloway
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Scottish Borders',55.62, -2.81,1,1,
'Scottish Borders
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Shetland',60.16, -1.15,1,1,
'Shetland
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Shieldaig',57.52, -5.65,1,1,
'Shieldaig
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['South Uist',57.25, -7.31,1,1,
'South Uist
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Spean Bridge',56.89, -4.92,1,1,
'Spean Bridge
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['St Andrews',56.34, -2.8,1,1,
'St Andrews
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Stanraer',54.9, -5.02,1,1,
'Stanraer
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Stornoway',58.22, -6.4,1,1,
'Stornoway
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Tain',57.81, -4.06,1,1,
'Tain
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Thurso',58.59, -3.52,1,1,
'Thurso
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Tiree',56.5, -6.87,1,1,
'Tiree
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Torridon',57.54, -5.51,1,1,
'Torridon
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Ullapool',57.9, -5.15,1,1,
'Ullapool
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['West Lothian',55.9, -3.51,1,1,
'West Lothian
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Western Isles',58.22, -6.39,1,1,
'Western Isles
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Wick',58.44, -3.09,1,1,
'Wick
Five Day Forecast
Sun
\n
Mon
\n
Tue
\n
Wed
\n
Thu\n '
],
['Thurso',-58.59045, -3.52386,1,3,'...']
];
var popouts = [
new google.maps.InfoWindow({
content: 'Aberdeen'
}),
new google.maps.InfoWindow({
content: 'Aberdeenshire'
}),
new google.maps.InfoWindow({
content: 'Aberfeldy'
}),
new google.maps.InfoWindow({
content: 'Aberfeldy & Loch Tay'
}),
new google.maps.InfoWindow({
content: 'Achnasheen'
}),
new google.maps.InfoWindow({
content: 'Alness'
}),
new google.maps.InfoWindow({
content: 'Angus Glens'
}),
new google.maps.InfoWindow({
content: 'Applecross'
}),
new google.maps.InfoWindow({
content: 'Arbroath'
}),
new google.maps.InfoWindow({
content: 'Aviemore'
}),
new google.maps.InfoWindow({
content: 'Ayr'
}),
new google.maps.InfoWindow({
content: 'Ayrshire'
}),
new google.maps.InfoWindow({
content: 'Ballachulish'
}),
new google.maps.InfoWindow({
content: 'Ballycastle'
}),
new google.maps.InfoWindow({
content: 'Braemar'
}),
new google.maps.InfoWindow({
content: 'Brechin'
}),
new google.maps.InfoWindow({
content: 'Buckie'
}),
new google.maps.InfoWindow({
content: 'Burghead'
}),
new google.maps.InfoWindow({
content: 'Caithness'
}),
new google.maps.InfoWindow({
content: 'Campbeltown'
}),
new google.maps.InfoWindow({
content: 'Cannich'
}),
new google.maps.InfoWindow({
content: 'Cromarty'
}),
new google.maps.InfoWindow({
content: 'Dalwhinnie'
}),
new google.maps.InfoWindow({
content: 'Dingwall'
}),
new google.maps.InfoWindow({
content: 'Dumfries'
}),
new google.maps.InfoWindow({
content: 'Dundee'
}),
new google.maps.InfoWindow({
content: 'Dunfermline'
}),
new google.maps.InfoWindow({
content: 'Edinburgh'
}),
new google.maps.InfoWindow({
content: 'Fife'
}),
new google.maps.InfoWindow({
content: 'Fort Augustus & Loch Ness'
}),
new google.maps.InfoWindow({
content: 'Fort William'
}),
new google.maps.InfoWindow({
content: 'Fort William & Glen Nevis'
}),
new google.maps.InfoWindow({
content: 'Fraserburgh'
}),
new google.maps.InfoWindow({
content: 'Gairloch'
}),
new google.maps.InfoWindow({
content: 'Galashiels'
}),
new google.maps.InfoWindow({
content: 'Glasgow'
}),
new google.maps.InfoWindow({
content: 'Glasgow International'
}),
new google.maps.InfoWindow({
content: 'Glencoe'
}),
new google.maps.InfoWindow({
content: 'Glenfinnan'
}),
new google.maps.InfoWindow({
content: 'Hunterston'
}),
new google.maps.InfoWindow({
content: 'Inveraray'
}),
new google.maps.InfoWindow({
content: 'Invergarry'
}),
new google.maps.InfoWindow({
content: 'Invergordon'
}),
new google.maps.InfoWindow({
content: 'Invermoriston'
}),
new google.maps.InfoWindow({
content: 'Inverness'
}),
new google.maps.InfoWindow({
content: 'Inverurie'
}),
new google.maps.InfoWindow({
content: 'Isle of Mull - Lochaline'
}),
new google.maps.InfoWindow({
content: 'Isle of Skye'
}),
new google.maps.InfoWindow({
content: 'Kenmore'
}),
new google.maps.InfoWindow({
content: 'Kilmarnock'
}),
new google.maps.InfoWindow({
content: 'Kinloss'
}),
new google.maps.InfoWindow({
content: 'Kirkcaldy'
}),
new google.maps.InfoWindow({
content: 'Kirkwall'
}),
new google.maps.InfoWindow({
content: 'Kyle of Lochalsh'
}),
new google.maps.InfoWindow({
content: 'Lairg'
}),
new google.maps.InfoWindow({
content: 'Leith'
}),
new google.maps.InfoWindow({
content: 'Livingston'
}),
new google.maps.InfoWindow({
content: 'Loch Lomond'
}),
new google.maps.InfoWindow({
content: 'Lochaline'
}),
new google.maps.InfoWindow({
content: 'Lochcarron'
}),
new google.maps.InfoWindow({
content: 'Lochearnhead'
}),
new google.maps.InfoWindow({
content: 'Lossiemouth'
}),
new google.maps.InfoWindow({
content: 'Macduff'
}),
new google.maps.InfoWindow({
content: 'Mallaig'
}),
new google.maps.InfoWindow({
content: 'Montrose'
}),
new google.maps.InfoWindow({
content: 'Motherwell'
}),
new google.maps.InfoWindow({
content: 'North Uist'
}),
new google.maps.InfoWindow({
content: 'Oban'
}),
new google.maps.InfoWindow({
content: 'Old Kilpatrick'
}),
new google.maps.InfoWindow({
content: 'Orkney'
}),
new google.maps.InfoWindow({
content: 'Paisley'
}),
new google.maps.InfoWindow({
content: 'Perth'
}),
new google.maps.InfoWindow({
content: 'Peterhead'
}),
new google.maps.InfoWindow({
content: 'Plockton'
}),
new google.maps.InfoWindow({
content: 'Poolewe'
}),
new google.maps.InfoWindow({
content: 'Portree'
}),
new google.maps.InfoWindow({
content: 'Rosyth'
}),
new google.maps.InfoWindow({
content: 'Rothesay'
}),
new google.maps.InfoWindow({
content: 'Royal Deeside'
}),
new google.maps.InfoWindow({
content: 'Scalloway'
}),
new google.maps.InfoWindow({
content: 'Scottish Borders'
}),
new google.maps.InfoWindow({
content: 'Shetland'
}),
new google.maps.InfoWindow({
content: 'Shieldaig'
}),
new google.maps.InfoWindow({
content: 'South Uist'
}),
new google.maps.InfoWindow({
content: 'Spean Bridge'
}),
new google.maps.InfoWindow({
content: 'St Andrews'
}),
new google.maps.InfoWindow({
content: 'Stanraer'
}),
new google.maps.InfoWindow({
content: 'Stornoway'
}),
new google.maps.InfoWindow({
content: 'Tain'
}),
new google.maps.InfoWindow({
content: 'Thurso'
}),
new google.maps.InfoWindow({
content: 'Tiree'
}),
new google.maps.InfoWindow({
content: 'Torridon'
}),
new google.maps.InfoWindow({
content: 'Ullapool'
}),
new google.maps.InfoWindow({
content: 'West Lothian'
}),
new google.maps.InfoWindow({
content: 'Western Isles'
}),
new google.maps.InfoWindow({
content: 'Wick'
}),
new google.maps.InfoWindow({
content: 'blah blah'
})
];
var markers = [];
function setMarkers(map, locations) {
for (var i = 0; i < locations.length; i++) {
setMarker(map, locations[i])
}
}
function setMarker(map, location){
var image = [
{
url: 'https://data.midgeforecast.co.uk/assets/img/maps2016/1.png',
// This marker is 40 pixels wide by 32 pixels tall.
size: new google.maps.Size(40, 32),
// The origin for this image is 0,0.
origin: new google.maps.Point(0,0),
anchor: new google.maps.Point(0, 32)
},
{
url: 'https://data.midgeforecast.co.uk/assets/img/maps2016/1.png',
// This marker is 40 pixels wide by 32 pixels tall.
size: new google.maps.Size(40, 32),
origin: new google.maps.Point(0,0),
anchor: new google.maps.Point(0, 32)
},
{
url: 'https://data.midgeforecast.co.uk/assets/img/maps2016/2.png',
size: new google.maps.Size(40, 32),
origin: new google.maps.Point(0,0),
anchor: new google.maps.Point(0, 32)
},
{
url: 'https://data.midgeforecast.co.uk/assets/img/maps2016/3.png',
size: new google.maps.Size(40, 32),
origin: new google.maps.Point(0,0),
anchor: new google.maps.Point(0, 32)
},
{
url: 'https://data.midgeforecast.co.uk/assets/img/maps2016/4.png',
size: new google.maps.Size(40, 32),
origin: new google.maps.Point(0,0),
anchor: new google.maps.Point(0, 32)
},
{
url: 'https://data.midgeforecast.co.uk/assets/img/maps2016/5.png',
size: new google.maps.Size(40, 32),
origin: new google.maps.Point(0,0),
anchor: new google.maps.Point(0, 32)
}
];
var shadow = {
url: 'https://data.midgeforecast.co.uk/assets/img/maps/levelx_shadow.png',
size: new google.maps.Size(60, 32),
origin: new google.maps.Point(0,0),
anchor: new google.maps.Point(0, 32)
};
var shape = {
coord: [1, 1, 1, 30, 40, 30, 40 , 1],
type: 'poly'
};
var beach = location;
var myLatLng = new google.maps.LatLng(beach[1], beach[2]);
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
shadow: shadow,
icon: image[beach[4]],
shape: shape,
title: beach[0],
zIndex: beach[3]
});
google.maps.event.addListener(marker, 'click', function () {
infowindow.setContent(beach[5]);
infowindow.open(map, this);
});
}
google.maps.event.addDomListener(window, 'load', initialize);
//]]>