﻿// Google Maps

// IIS only serves known MIME types and it may be necessary to add this MIME type
// See http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/eb5556e2-f6e1-4871-b9ca-b8cf6f9c8134.mspx?mfr=true
// Basically just right click on the server in IIS,click Properties, and add the new type
// Values should be extension = kml and type = application/vnd.google-earth.kml OR if that does not work try text/xml
// Do not prefix kml with a dot (it will be added)
// Although it should be easier to add this globally to IIS as described above, it seems more reliable if you add it to the individual website (headers tab)


var geoXml = new GGeoXml("http://www.frankpmatthews.com/mapdata/wheretobuy2.kml");

function load()
	{
	if (GBrowserIsCompatible())
		{
		var map = new GMap2(document.getElementById("map"));
	        map.addControl(new GSmallMapControl());
        	map.setCenter(new GLatLng(53.0, -2.425561), 9);
		map.addOverlay(geoXml);
		}
}



