﻿// JavaScript Document
var servingWFS;
var servingWMS;
var involved;
var involved_and_serving;
var servingBoth;

function createWFSLayer(map) {

	servingWFS = new Overlay(map, 'servingWFSBtn');

	servingWFS.loadOverlays = function() {
	
	this.addGGeoXML('http://www.onegeology.org/participants/kml/1G_countries_serving_WFS.kmz');
	
	};
	
}

function createWMSLayer(map) {
	
	servingWMS = new Overlay(map, 'servingWMSBtn');

	servingWMS.loadOverlays = function() {
	
	this.addGGeoXML('http://www.onegeology.org/participants/kml/1G_countries_serving_WMS.kmz');
	
	};
	
}

function createServicesLayer(map) {
	
	servingBoth = new Overlay(map, 'servingBtn');

	servingBoth.loadOverlays = function() {
	
	
	this.addGGeoXML('http://www.onegeology.org/participants/kml/1G_countries_serving_WFS_and_WMS.kmz');
	
	};
	
}

function createInvolvedLayer(map) {
	
	
	involved = new Overlay(map, 'involvedBtn');

	involved.loadOverlays = function() {
	
	this.addGGeoXML('http://www.onegeology.org/participants/kml/1G_countries_involved.kmz');
	};
	
	involved_and_serving = new Overlay(map, 'involvedBtn');

	involved_and_serving.loadOverlays = function() {
	
	this.addGGeoXML('http://www.onegeology.org/participants/kml/1G_countries_involved_and_serving.kmz');
	};
	
}

function createLocalAreaGeologyMarkers(map) {
	
	
	localArea = new Overlay(map, 'localAreaBtn');

	localArea.loadOverlays = function() {
	
	//latitude, longitude, theTitle, theHTML, theID, specificIcon
	//this.addMarker(52.83,-1.41,'Loughborough','Loughborough: GBR Loughborough BGS 1:50K, various layers','',redIcon);
	
	//this.addMarker(55.67,-4.37,'Kilmarnock','Kilmarnock: GBR Kilmarnock BGS 1:50K, various layers','',redIcon);
	
	this.addMarker(54.95,-97.97,'Manitoba','Manitoba: CAN MGS 1:1M and 1:250K, various layers','',redIcon);
	
	this.addMarker(48.99,-55.81,'Newfoundland and Labrador','Newfoundland and Labrador: CAN GSNL 1:1M, various layers','',redIcon);
	
	this.addMarker(49.30,-96.52,'Red River Valley','Red River Valley: CAN MGS 1:250K, various layers','',redIcon);
	
	this.addMarker(51.51,-102.35,'Williston Basin','Williston Basin: CAN MGS 1:1M, various layers','',redIcon);
	
	this.addMarker(34.51,-111.92,'Arizona','Arizona: US AZGS 1:1M, various layers','',redIcon);
	
	this.addMarker(40.18,-89.28,'Illinois','Illinois: ISGS, various layers','',redIcon);
	
	this.addMarker(37.57,-85.51,'Kentucky','Kentucky: US-KY KGS 1:500K and 1:24K, various layers','',redIcon);
	
	this.addMarker(-36.95,143.53,'Victoria','Victoria: AUS (VIC) GSV 1:250K, various layers','',redIcon);
	
	
	};

	
}


