WME Counties Delaware Census 2014

Creates polygons for MapRaid groups in a WME "Delaware Groups" layer

// ==UserScript==
// @name                WME Counties Delaware Census 2014
// @namespace           https://greasyfork.org/en/users/5920-rickzabel
// @description         Creates polygons for MapRaid groups in a WME "Delaware Groups" layer
// @include             https://www.waze.com/editor/*
// @include             https://www.waze.com/*/editor/*
// @include             https://editor-beta.waze.com/*
// @version             2.4
// @grant               none
// @copyright           2015 rickzabel based off work by 2014 davielde
// ==/UserScript==


//---------------------------------------------------------------------------------------


//generated by rickzabel's overlay generator
//special thanks to t0cableguy for helping with the census data


//RZ RaidName will be replaced by the name of the layer in your KML file
//RZ RaidNameNoSpaces will be replaced by the name of the layer in your KML file
//RZ AreaPoints will be replaced by the names, colors, and area points from your KML file


setTimeout(InitMapRaidOverlay, 1000);

function AddRaidPolygon(raidLayer,groupPoints,groupColor,groupNumber){
    
    var mro_Map = Waze.map;
    var mro_OL = OpenLayers;
    var raidGroupLabel = groupNumber;
    var groupName = groupNumber;
    
    var style = {
        strokeColor: "Pink",
        strokeOpacity: .8,
        strokeWidth: 3,
        fillColor: groupColor,
        fillOpacity: 0.00,
        label: raidGroupLabel,
        labelOutlineColor: "Black",
        labelOutlineWidth: 3,
        fontSize: 14,
        fontColor: "Pink",
        fontOpacity: .85,
        fontWeight: "bold"  
    };
	
    var attributes = {
        name: groupName,
        number: groupNumber,
		holes: "false"
	};
    
    var pnt= [];
    for(i=0;i<groupPoints.length;i++){
        convPoint = new OpenLayers.Geometry.Point(groupPoints[i].lon,groupPoints[i].lat).transform(new OpenLayers.Projection("EPSG:4326"), mro_Map.getProjectionObject());
        //console.log('MapRaid: ' + JSON.stringify(groupPoints[i]) + ', ' + groupPoints[i].lon + ', ' + groupPoints[i].lat);
        pnt.push(convPoint);
    }
		       
    var ring = new mro_OL.Geometry.LinearRing(pnt);
    var polygon = new mro_OL.Geometry.Polygon([ring]);
    
    var feature = new mro_OL.Feature.Vector(polygon,attributes,style);
    raidLayer.addFeatures([feature]);

}

function generateholes(mro_Map, raid_mapLayer, UntitledPolygon){
	var mro_mapLayers = mro_Map.getLayersBy("uniqueName","__Delaware");
	var raid_mapLayerLength = raid_mapLayer.features.length;	
	
	var style = raid_mapLayer.features[raid_mapLayerLength-2].style;
	var attributes = raid_mapLayer.features[raid_mapLayerLength-2].attributes;
	
	//console.dir(style);	
	//console.dir(attributes);	
	
	var newFeature = Subtract(raid_mapLayer.features[raid_mapLayerLength-2], raid_mapLayer.features[1]);
    
	//console.dir(raid_mapLayer);	
	
	raid_mapLayer.addFeatures([newFeature]);

    raid_mapLayer.features[raid_mapLayerLength-1].destroy();
	raid_mapLayer.features[raid_mapLayerLength-2].destroy();
		
	//console.dir(mro_mapLayers);	
	var mro_mapLayersFeaturesLength = mro_mapLayers[0].features.length;
    mro_mapLayers[0].features[mro_mapLayersFeaturesLength-1].style =  style;
	mro_mapLayers[0].features[mro_mapLayersFeaturesLength-1].attributes = attributes;
    mro_mapLayers[0].features[mro_mapLayersFeaturesLength-1].attributes.holes = "true";
	//raid_mapLayer.features[1].style = {label: "Updated label"};
    mro_mapLayers[0].redraw(); 
	
	//console.dir(raid_mapLayer);	
}

function Subtract(bigFeature, smallFeature) {

    var newPolygon = new OpenLayers.Geometry.Polygon(bigFeature.geometry.components);
    var newFeature = new OpenLayers.Feature.Vector(newPolygon);

    newPolygon.addComponent(smallFeature.geometry.components[0]);

    return newFeature;
}

function CurrentRaidLocation(raid_mapLayer){
    var mro_Map = Waze.map;

    for(i=0;i<raid_mapLayer.features.length;i++){
        var raidMapCenter = mro_Map.getCenter();
        var raidCenterPoint = new OpenLayers.Geometry.Point(raidMapCenter.lon,raidMapCenter.lat);
        var raidCenterCheck = raid_mapLayer.features[i].geometry.components[0].containsPoint(raidCenterPoint);
		var holes = raid_mapLayer.features[i].attributes.holes
		
        
        if(raidCenterCheck === true){

			//var str = $('#topbar-container > div > div.location-info-region > div').text();
			var str = $('#topbar-container > div > div.topbar > div.location-info-region > div.location-info').text();
			
			var n2 = str.indexOf(" - ");
			
			if(n2 > 0){
				var n = str.length;
				var res = str.substring(n2+2, n);
				var rescount = res.indexOf(" - ");
				if(rescount>0){
					var n3 = res.length;
					var res2 = res.substring(rescount+2, n3);
				}
				var raidLocationLabel = 'County - ' + raid_mapLayer.features[i].attributes.number + ' - ' + res2;

			} else {
				//var raidLocationLabel = 'County - ' + raid_mapLayer.features[i].attributes.number + ' - ' + $('#topbar-container > div > div.location-info-region > div').text();
				var raidLocationLabel = 'County - ' + raid_mapLayer.features[i].attributes.number + ' - ' + $('#topbar-container > div > div.topbar > div.location-info-region > div.location-info').text();
						
			}	
			//setTimeout(function(){$('#topbar-container > div > div.location-info-region > div').text(raidLocationLabel);},200);
			setTimeout(function(){$('#topbar-container > div > div.topbar > div.location-info-region > div.location-info').text(raidLocationLabel);},200);
			 if (holes === "false") { break; }
		}
    }
}


function InitMapRaidOverlay(){

    var mro_Map = Waze.map;
    var mro_OL = OpenLayers;

    //if (!mro_Map) return;
    //if (!mro_OL) return;

    var mro_mapLayers = mro_Map.getLayersBy("uniqueName","__Delaware");
        
    var raid_mapLayer = new mro_OL.Layer.Vector("Delaware Counties", {
        displayInLayerSwitcher: true,
        uniqueName: "__Delaware"
    });
        
    I18n.translations.en.layers.name["__Delaware"] = "Delaware Counties";
    mro_Map.addLayer(raid_mapLayer);
    raid_mapLayer.setVisibility(true);
    

var VNewCastle0 = [{lon:'-75.565546',lat:'39.51485'},{lon:'-75.567447',lat:'39.508616'},{lon:'-75.562456',lat:'39.51265'},{lon:'-75.560317',lat:'39.51595'},{lon:'-75.561743',lat:'39.520534'},{lon:'-75.565546',lat:'39.51485'}];
AddRaidPolygon(raid_mapLayer, VNewCastle0,"#"," NewCastle");

var VNewCastle1 = [{lon:'-75.571299098592306',lat:'39.6251077524268'},{lon:'-75.571759',lat:'39.623584'},{lon:'-75.571246312286704',lat:'39.622342955203102'},{lon:'-75.567694',lat:'39.613744'},{lon:'-75.561934',lat:'39.605216'},{lon:'-75.55587',lat:'39.605824'},{lon:'-75.556734',lat:'39.606688'},{lon:'-75.557502',lat:'39.609184'},{lon:'-75.556878',lat:'39.612144'},{lon:'-75.558446',lat:'39.617296'},{lon:'-75.559614',lat:'39.624208'},{lon:'-75.559102',lat:'39.629056'},{lon:'-75.559446',lat:'39.629812'},{lon:'-75.563328',lat:'39.629901'},{lon:'-75.570798',lat:'39.626768'},{lon:'-75.571299098592306',lat:'39.6251077524268'}];
AddRaidPolygon(raid_mapLayer, VNewCastle1,"#"," NewCastle");

var VNewCastle2 = [{lon:'-75.580363',lat:'39.599455'},{lon:'-75.579291',lat:'39.597292'},{lon:'-75.57916',lat:'39.594705'},{lon:'-75.578007',lat:'39.591878'},{lon:'-75.575426',lat:'39.58812'},{lon:'-75.572118',lat:'39.58586'},{lon:'-75.568646',lat:'39.585156'},{lon:'-75.567689',lat:'39.58573'},{lon:'-75.566625',lat:'39.587123'},{lon:'-75.564604',lat:'39.589337'},{lon:'-75.565823',lat:'39.590608'},{lon:'-75.570774',lat:'39.594091'},{lon:'-75.57287',lat:'39.594454'},{lon:'-75.573682',lat:'39.595718'},{lon:'-75.575760872574193',lat:'39.596880811975701'},{lon:'-75.577721260058993',lat:'39.597977349624401'},{lon:'-75.580363',lat:'39.599455'}];
AddRaidPolygon(raid_mapLayer, VNewCastle2,"#"," NewCastle");

var VNewCastle3 = [{lon:'-75.788655907550705',lat:'39.659333499406003'},{lon:'-75.788658',lat:'39.658211'},{lon:'-75.788431434671395',lat:'39.654318127515502'},{lon:'-75.788430900679202',lat:'39.654308952398303'},{lon:'-75.788129563741904',lat:'39.6491313452212'},{lon:'-75.788095585484697',lat:'39.648547526754399'},{lon:'-75.787787176812003',lat:'39.643248412176902'},{lon:'-75.787541702471202',lat:'39.639030642792399'},{lon:'-75.787541002665904',lat:'39.6390186186539'},{lon:'-75.78745',lat:'39.637455'},{lon:'-75.787207555540604',lat:'39.634476396642'},{lon:'-75.787180707320303',lat:'39.634146547078601'},{lon:'-75.78689',lat:'39.630575'},{lon:'-75.786216419653996',lat:'39.621712408530698'},{lon:'-75.785466698807696',lat:'39.611848003168603'},{lon:'-75.785054363196096',lat:'39.606422723028501'},{lon:'-75.785053894501701',lat:'39.606416556210903'},{lon:'-75.784271058450898',lat:'39.596116439607698'},{lon:'-75.783842450239504',lat:'39.590477053748899'},{lon:'-75.783842208850501',lat:'39.5904738776889'},{lon:'-75.782823521373103',lat:'39.577070560622097'},{lon:'-75.782460041178993',lat:'39.572288092595798'},{lon:'-75.782457507453401',lat:'39.572254755259898'},{lon:'-75.780786',lat:'39.550262'},{lon:'-75.779663438886402',lat:'39.5365036098544'},{lon:'-75.779585164876096',lat:'39.5355442639815'},{lon:'-75.779584610450797',lat:'39.535537468806197'},{lon:'-75.779518199245302',lat:'39.534723516438902'},{lon:'-75.776222683481095',lat:'39.494332849895002'},{lon:'-75.775129622280403',lat:'39.480936018070501'},{lon:'-75.773855691183201',lat:'39.465322399496003'},{lon:'-75.772234542076703',lat:'39.445453190042599'},{lon:'-75.769830558762607',lat:'39.415989368484901'},{lon:'-75.766693190718101',lat:'39.377537'},{lon:'-75.766667',lat:'39.377216'},{lon:'-75.765847374247997',lat:'39.367174704782201'},{lon:'-75.764388236041498',lat:'39.349298695569402'},{lon:'-75.760469169416794',lat:'39.301285922840499'},{lon:'-75.760131613550101',lat:'39.297150501153602'},{lon:'-75.760104352372906',lat:'39.296816522472298'},{lon:'-75.75',lat:'39.297474'},{lon:'-75.746048',lat:'39.297531'},{lon:'-75.714901',lat:'39.299366'},{lon:'-75.685188',lat:'39.297089'},{lon:'-75.683117',lat:'39.294578'},{lon:'-75.681385',lat:'39.293205'},{lon:'-75.680261',lat:'39.292496'},{lon:'-75.678042',lat:'39.292477'},{lon:'-75.6752',lat:'39.290498'},{lon:'-75.673327',lat:'39.291027'},{lon:'-75.670302',lat:'39.290891'},{lon:'-75.669276',lat:'39.291397'},{lon:'-75.667269',lat:'39.290417'},{lon:'-75.665811',lat:'39.290567'},{lon:'-75.660476',lat:'39.291672'},{lon:'-75.654461',lat:'39.291184'},{lon:'-75.652947',lat:'39.291949'},{lon:'-75.65135',lat:'39.291589'},{lon:'-75.649179',lat:'39.293151'},{lon:'-75.647686',lat:'39.29588'},{lon:'-75.646293',lat:'39.29687'},{lon:'-75.6427',lat:'39.299107'},{lon:'-75.641928',lat:'39.300891'},{lon:'-75.640875',lat:'39.301224'},{lon:'-75.633937',lat:'39.301593'},{lon:'-75.63225',lat:'39.301327'},{lon:'-75.627531',lat:'39.304438'},{lon:'-75.626132',lat:'39.30413'},{lon:'-75.624047',lat:'39.306376'},{lon:'-75.623264',lat:'39.308029'},{lon:'-75.621379',lat:'39.308755'},{lon:'-75.619631',lat:'39.310058'},{lon:'-75.61606',lat:'39.309735'},{lon:'-75.614256',lat:'39.308307'},{lon:'-75.612008',lat:'39.308954'},{lon:'-75.610863',lat:'39.309276'},{lon:'-75.609385',lat:'39.308801'},{lon:'-75.606598',lat:'39.30809'},{lon:'-75.603836',lat:'39.311182'},{lon:'-75.603446',lat:'39.309094'},{lon:'-75.602031',lat:'39.30811'},{lon:'-75.599571',lat:'39.308442'},{lon:'-75.599218',lat:'39.309737'},{lon:'-75.597106',lat:'39.309554'},{lon:'-75.596609',lat:'39.309647'},{lon:'-75.594841',lat:'39.309904'},{lon:'-75.593889',lat:'39.308417'},{lon:'-75.591335',lat:'39.311638'},{lon:'-75.589511',lat:'39.311679'},{lon:'-75.587495',lat:'39.311009'},{lon:'-75.587325',lat:'39.309699'},{lon:'-75.584341',lat:'39.308718'},{lon:'-75.581145',lat:'39.311131'},{lon:'-75.57462',lat:'39.313434'},{lon:'-75.570958',lat:'39.318845'},{lon:'-75.568716',lat:'39.323523'},{lon:'-75.56982',lat:'39.326577'},{lon:'-75.569007',lat:'39.328744'},{lon:'-75.564806',lat:'39.331936'},{lon:'-75.562734',lat:'39.332104'},{lon:'-75.558843',lat:'39.333334'},{lon:'-75.556205',lat:'39.335325'},{lon:'-75.555681',lat:'39.33653'},{lon:'-75.556318',lat:'39.337879'},{lon:'-75.558334',lat:'39.33923'},{lon:'-75.557358',lat:'39.341501'},{lon:'-75.557846',lat:'39.342764'},{lon:'-75.559982',lat:'39.343466'},{lon:'-75.560519',lat:'39.345067'},{lon:'-75.5588',lat:'39.346549'},{lon:'-75.557166',lat:'39.349098'},{lon:'-75.55619',lat:'39.348287'},{lon:'-75.555886',lat:'39.346743'},{lon:'-75.554223',lat:'39.345404'},{lon:'-75.551599',lat:'39.345105'},{lon:'-75.55104',lat:'39.345568'},{lon:'-75.551096',lat:'39.349483'},{lon:'-75.552242',lat:'39.350157'},{lon:'-75.553841',lat:'39.349938'},{lon:'-75.554683',lat:'39.351506'},{lon:'-75.553369',lat:'39.35301'},{lon:'-75.551626',lat:'39.35394'},{lon:'-75.549645',lat:'39.353855'},{lon:'-75.548131',lat:'39.352921'},{lon:'-75.54811',lat:'39.351713'},{lon:'-75.545216',lat:'39.350763'},{lon:'-75.544056',lat:'39.351363'},{lon:'-75.543263',lat:'39.353236'},{lon:'-75.541586',lat:'39.354366'},{lon:'-75.539867',lat:'39.353887'},{lon:'-75.53899',lat:'39.351954'},{lon:'-75.535849',lat:'39.350617'},{lon:'-75.534484',lat:'39.351389'},{lon:'-75.534278',lat:'39.353332'},{lon:'-75.531914',lat:'39.354595'},{lon:'-75.528696',lat:'39.35343'},{lon:'-75.527259',lat:'39.354675'},{lon:'-75.528673',lat:'39.356782'},{lon:'-75.528453',lat:'39.358305'},{lon:'-75.525877',lat:'39.359642'},{lon:'-75.523254',lat:'39.359712'},{lon:'-75.52142',lat:'39.358607'},{lon:'-75.519628',lat:'39.360066'},{lon:'-75.516897',lat:'39.360988'},{lon:'-75.515975',lat:'39.364363'},{lon:'-75.512372082394805',lat:'39.3656561384634'},{lon:'-75.512996',lat:'39.366153'},{lon:'-75.515797',lat:'39.378347'},{lon:'-75.521263',lat:'39.381654'},{lon:'-75.521682',lat:'39.387871'},{lon:'-75.523583',lat:'39.391583'},{lon:'-75.535977',lat:'39.409384'},{lon:'-75.538512',lat:'39.416502'},{lon:'-75.55589',lat:'39.430351'},{lon:'-75.57183',lat:'39.438897'},{lon:'-75.571455044817299',lat:'39.440489561125098'},{lon:'-75.570985',lat:'39.442486'},{lon:'-75.573077',lat:'39.445373'},{lon:'-75.578914',lat:'39.44788'},{lon:'-75.579593068675507',lat:'39.449432614926202'},{lon:'-75.580185',lat:'39.450786'},{lon:'-75.589439',lat:'39.460812'},{lon:'-75.589901',lat:'39.462022'},{lon:'-75.592329',lat:'39.467578'},{lon:'-75.593068',lat:'39.477996'},{lon:'-75.593068',lat:'39.479186'},{lon:'-75.587814',lat:'39.490327'},{lon:'-75.587729',lat:'39.495369'},{lon:'-75.587729',lat:'39.495740745019901'},{lon:'-75.587729',lat:'39.496353'},{lon:'-75.586554401533704',lat:'39.497688711812998'},{lon:'-75.581140859129306',lat:'39.503844800678401'},{lon:'-75.576436',lat:'39.509195'},{lon:'-75.574503',lat:'39.512517'},{lon:'-75.572861783811504',lat:'39.5160342206675'},{lon:'-75.572364',lat:'39.517101'},{lon:'-75.570362',lat:'39.527223'},{lon:'-75.569418',lat:'39.539124'},{lon:'-75.569359',lat:'39.540589'},{lon:'-75.565636',lat:'39.558509'},{lon:'-75.564649',lat:'39.559922'},{lon:'-75.564118288088494',lat:'39.560683727684797'},{lon:'-75.563034',lat:'39.56224'},{lon:'-75.570783',lat:'39.56728'},{lon:'-75.571599',lat:'39.567728'},{lon:'-75.586016',lat:'39.578448'},{lon:'-75.586608',lat:'39.57888'},{lon:'-75.587027384909504',lat:'39.579854786546399'},{lon:'-75.5872',lat:'39.580256'},{lon:'-75.587744',lat:'39.580672'},{lon:'-75.591984',lat:'39.583248'},{lon:'-75.592224',lat:'39.583568'},{lon:'-75.597173322751004',lat:'39.587782094520797'},{lon:'-75.598747',lat:'39.589122'},{lon:'-75.600785536192006',lat:'39.5890537256847'},{lon:'-75.603584',lat:'39.58896'},{lon:'-75.60464',lat:'39.58992'},{lon:'-75.611873',lat:'39.597408'},{lon:'-75.611905',lat:'39.597568'},{lon:'-75.613793',lat:'39.606192'},{lon:'-75.613473',lat:'39.606832'},{lon:'-75.613477',lat:'39.606861'},{lon:'-75.613473687322795',lat:'39.606868426370603'},{lon:'-75.613233',lat:'39.607408'},{lon:'-75.611344',lat:'39.610183'},{lon:'-75.613665',lat:'39.61256'},{lon:'-75.613345',lat:'39.613056'},{lon:'-75.614273',lat:'39.61464'},{lon:'-75.614929',lat:'39.615952'},{lon:'-75.614065',lat:'39.61832'},{lon:'-75.613377',lat:'39.620288'},{lon:'-75.613153',lat:'39.62096'},{lon:'-75.611969',lat:'39.621968'},{lon:'-75.600494948864295',lat:'39.635393684521198'},{lon:'-75.5917467759147',lat:'39.645629843378202'},{lon:'-75.587147',lat:'39.651012'},{lon:'-75.583012471726903',lat:'39.6522635452232'},{lon:'-75.569037',lat:'39.656494'},{lon:'-75.562246',lat:'39.656712'},{lon:'-75.561293686325996',lat:'39.657763904904698'},{lon:'-75.556599858120805',lat:'39.662948605119901'},{lon:'-75.552625270349495',lat:'39.667338848045702'},{lon:'-75.551954328411',lat:'39.668079955871001'},{lon:'-75.550460021066399',lat:'39.669730535157697'},{lon:'-75.550315302310693',lat:'39.6698903883374'},{lon:'-75.550293434759197',lat:'39.669914542757702'},{lon:'-75.550265804466704',lat:'39.669945062575898'},{lon:'-75.539627840659307',lat:'39.681695525275103'},{lon:'-75.533447500443998',lat:'39.688522194220603'},{lon:'-75.530041831312502',lat:'39.692284022030897'},{lon:'-75.529744',lat:'39.692613'},{lon:'-75.525110504760306',lat:'39.691107264620598'},{lon:'-75.509742',lat:'39.686113'},{lon:'-75.509698568696706',lat:'39.686634175639199'},{lon:'-75.509042',lat:'39.694513'},{lon:'-75.507162',lat:'39.696961'},{lon:'-75.5044386307558',lat:'39.698141126672397'},{lon:'-75.504042',lat:'39.698313'},{lon:'-75.496241',lat:'39.701413'},{lon:'-75.492401503984993',lat:'39.7090136349685'},{lon:'-75.491341',lat:'39.711113'},{lon:'-75.488553',lat:'39.714833'},{lon:'-75.485241',lat:'39.715813'},{lon:'-75.483141',lat:'39.715513'},{lon:'-75.481741',lat:'39.714546'},{lon:'-75.47894',lat:'39.713813'},{lon:'-75.47764',lat:'39.715013'},{lon:'-75.476888',lat:'39.718337'},{lon:'-75.477432',lat:'39.720561'},{lon:'-75.477423816223805',lat:'39.720737974160599'},{lon:'-75.47724',lat:'39.724713'},{lon:'-75.47544',lat:'39.728713'},{lon:'-75.475384',lat:'39.731057'},{lon:'-75.474785658476904',lat:'39.733229924478501'},{lon:'-75.474168',lat:'39.735473'},{lon:'-75.471868388856393',lat:'39.739270694199497'},{lon:'-75.4703369081722',lat:'39.741799858892001'},{lon:'-75.469239',lat:'39.743613'},{lon:'-75.469238237243104',lat:'39.743614825900501'},{lon:'-75.466263',lat:'39.750737'},{lon:'-75.466249',lat:'39.750769'},{lon:'-75.466237328283299',lat:'39.750796006250802'},{lon:'-75.46355',lat:'39.757014'},{lon:'-75.463921',lat:'39.760763'},{lon:'-75.459439',lat:'39.765813'},{lon:'-75.452339',lat:'39.769013'},{lon:'-75.449295',lat:'39.774436'},{lon:'-75.450212',lat:'39.774761'},{lon:'-75.450688',lat:'39.775064'},{lon:'-75.450355850619104',lat:'39.775314372208499'},{lon:'-75.442172492798093',lat:'39.781482938186201'},{lon:'-75.4383',lat:'39.784402'},{lon:'-75.436288021003307',lat:'39.785135797849698'},{lon:'-75.405414',lat:'39.796396'},{lon:'-75.415062',lat:'39.801919'},{lon:'-75.420093435632495',lat:'39.804746856047103'},{lon:'-75.428038',lat:'39.809212'},{lon:'-75.433908519013798',lat:'39.8117473186932'},{lon:'-75.437068354901101',lat:'39.813111966516303'},{lon:'-75.437307916589802',lat:'39.8132154267429'},{lon:'-75.449874383721607',lat:'39.8186425446778'},{lon:'-75.45374',lat:'39.820312'},{lon:'-75.4549971840311',lat:'39.820770300604998'},{lon:'-75.459817544683105',lat:'39.822527540713601'},{lon:'-75.459926448380202',lat:'39.822567241050997'},{lon:'-75.463341',lat:'39.823812'},{lon:'-75.463456872955206',lat:'39.823846306835499'},{lon:'-75.472547501842001',lat:'39.826537795193701'},{lon:'-75.472677629082398',lat:'39.826576322336003'},{lon:'-75.475489047175301',lat:'39.8274087068895'},{lon:'-75.481242',lat:'39.829112'},{lon:'-75.481244921815701',lat:'39.829112697211897'},{lon:'-75.493077220564302',lat:'39.831936153534997'},{lon:'-75.498843',lat:'39.833312'},{lon:'-75.498986133173801',lat:'39.833333899718802'},{lon:'-75.518444',lat:'39.836311'},{lon:'-75.518817615088295',lat:'39.836344961758101'},{lon:'-75.539346',lat:'39.838211'},{lon:'-75.540058275462201',lat:'39.838229220042003'},{lon:'-75.540886412062505',lat:'39.838250403817803'},{lon:'-75.551321578591896',lat:'39.838517335900697'},{lon:'-75.570464',lat:'39.839007'},{lon:'-75.579393994741096',lat:'39.838549319928603'},{lon:'-75.579849',lat:'39.838526'},{lon:'-75.5798996512343',lat:'39.838522073860297'},{lon:'-75.593081736886703',lat:'39.837500288108401'},{lon:'-75.593666',lat:'39.837455'},{lon:'-75.594845838142504',lat:'39.837286209758602'},{lon:'-75.595756',lat:'39.837156'},{lon:'-75.617251',lat:'39.833999'},{lon:'-75.634706',lat:'39.830164'},{lon:'-75.634812797602507',lat:'39.830135764168801'},{lon:'-75.641518',lat:'39.828363'},{lon:'-75.662822',lat:'39.82115'},{lon:'-75.667142678085995',lat:'39.819267244336999'},{lon:'-75.680794056787803',lat:'39.813318592285803'},{lon:'-75.681556895087297',lat:'39.8129861819327'},{lon:'-75.685991',lat:'39.811054'},{lon:'-75.701208',lat:'39.802606'},{lon:'-75.705787295543004',lat:'39.799523888007101'},{lon:'-75.716969',lat:'39.791998'},{lon:'-75.719334567355901',lat:'39.790150604541097'},{lon:'-75.723399123818396',lat:'39.786976379494199'},{lon:'-75.724866264384801',lat:'39.785830612575602'},{lon:'-75.727049',lat:'39.784126'},{lon:'-75.736489',lat:'39.775759'},{lon:'-75.739323559097897',lat:'39.772924799480002'},{lon:'-75.739376686211699',lat:'39.772871679086997'},{lon:'-75.744394',lat:'39.767855'},{lon:'-75.751436564661006',lat:'39.759552050150603'},{lon:'-75.753066',lat:'39.757631'},{lon:'-75.754465906040295',lat:'39.755631134228203'},{lon:'-75.759213751756704',lat:'39.7488484974904'},{lon:'-75.760101611338101',lat:'39.747580126659898'},{lon:'-75.760346',lat:'39.747231'},{lon:'-75.765879181413396',lat:'39.7381059004001'},{lon:'-75.766058',lat:'39.737811'},{lon:'-75.773786',lat:'39.7222'},{lon:'-75.788596',lat:'39.722199'},{lon:'-75.788573218129997',lat:'39.719715436147602'},{lon:'-75.788395',lat:'39.700287'},{lon:'-75.788395',lat:'39.700031'},{lon:'-75.788466537961099',lat:'39.695102224881801'},{lon:'-75.788479176698303',lat:'39.694231449529298'},{lon:'-75.788658',lat:'39.681911'},{lon:'-75.788646937654406',lat:'39.681603098048299'},{lon:'-75.788616',lat:'39.680742'},{lon:'-75.788633391921607',lat:'39.6714120622458'},{lon:'-75.788655907550705',lat:'39.659333499406003'}];
AddRaidPolygon(raid_mapLayer, VNewCastle3,"#"," NewCastle");

var VKent0 = [{lon:'  -75.760104352372906',lat:'39.296816522472298'},{lon:'-75.756941778457104',lat:'39.258071597416098'},{lon:'-75.755962094757095',lat:'39.246069420536401'},{lon:'-75.755953',lat:'39.245958'},{lon:'-75.752593183003',lat:'39.199434938086'},{lon:'-75.752591951784396',lat:'39.199417889520198'},{lon:'-75.751450556598897',lat:'39.183613100471398'},{lon:'-75.751028',lat:'39.177762'},{lon:'-75.750958994113304',lat:'39.177227658364302'},{lon:'-75.750426375562',lat:'39.173103368661501'},{lon:'-75.749356',lat:'39.164815'},{lon:'-75.747671065221795',lat:'39.143345057971302'},{lon:'-75.747668',lat:'39.143306'},{lon:'-75.746121',lat:'39.120318'},{lon:'-75.745804906636806',lat:'39.115130406786598'},{lon:'-75.745793',lat:'39.114935'},{lon:'-75.745378254413794',lat:'39.110695262198199'},{lon:'-75.7442989120932',lat:'39.099661682603603'},{lon:'-75.743811',lat:'39.094674'},{lon:'-75.742626276108496',lat:'39.079825223377497'},{lon:'-75.742201675583203',lat:'39.074503478455803'},{lon:'-75.741913979442302',lat:'39.070897629225897'},{lon:'-75.741913752360603',lat:'39.070894783090999'},{lon:'-75.739737995958706',lat:'39.043624867265997'},{lon:'-75.739545482423495',lat:'39.041211992417402'},{lon:'-75.738627647560094',lat:'39.029708278378301'},{lon:'-75.7328559079955',lat:'38.957367986998399'},{lon:'-75.732815091980498',lat:'38.956856418106497'},{lon:'-75.7309192614903',lat:'38.933094963083697'},{lon:'-75.727917769336599',lat:'38.895475660524802'},{lon:'-75.725829',lat:'38.869296'},{lon:'-75.725565',lat:'38.868152'},{lon:'-75.724627500330399',lat:'38.855453990845'},{lon:'-75.724061',lat:'38.847781'},{lon:'-75.724004070351896',lat:'38.8467205646906'},{lon:'-75.724002',lat:'38.846682'},{lon:'-75.722882',lat:'38.833156'},{lon:'-75.72261',lat:'38.830008'},{lon:'-75.722599091852899',lat:'38.829859371810699'},{lon:'-75.689586',lat:'38.831085'},{lon:'-75.686476',lat:'38.831294'},{lon:'-75.683174',lat:'38.831316'},{lon:'-75.582418',lat:'38.834638'},{lon:'-75.555013',lat:'38.835649'},{lon:'-75.553173',lat:'38.837402'},{lon:'-75.551016',lat:'38.838719'},{lon:'-75.548726',lat:'38.841077'},{lon:'-75.544026',lat:'38.84337'},{lon:'-75.541336',lat:'38.842864'},{lon:'-75.53958',lat:'38.843634'},{lon:'-75.535968',lat:'38.847616'},{lon:'-75.536234',lat:'38.84989'},{lon:'-75.53518',lat:'38.850368'},{lon:'-75.520439',lat:'38.855742'},{lon:'-75.517764',lat:'38.861012'},{lon:'-75.516306',lat:'38.864002'},{lon:'-75.509745',lat:'38.874997'},{lon:'-75.508168',lat:'38.878951'},{lon:'-75.505749',lat:'38.880732'},{lon:'-75.503337',lat:'38.881617'},{lon:'-75.501771',lat:'38.88088'},{lon:'-75.499438',lat:'38.881918'},{lon:'-75.49778',lat:'38.882127'},{lon:'-75.496888',lat:'38.883001'},{lon:'-75.495885',lat:'38.885821'},{lon:'-75.494383',lat:'38.887882'},{lon:'-75.491565',lat:'38.888525'},{lon:'-75.490453',lat:'38.889664'},{lon:'-75.488026',lat:'38.892784'},{lon:'-75.487732',lat:'38.895493'},{lon:'-75.488156',lat:'38.898983'},{lon:'-75.485657',lat:'38.903617'},{lon:'-75.484819',lat:'38.903753'},{lon:'-75.484125',lat:'38.904448'},{lon:'-75.48132',lat:'38.90436'},{lon:'-75.479626',lat:'38.905593'},{lon:'-75.477222',lat:'38.905841'},{lon:'-75.470643',lat:'38.908684'},{lon:'-75.465343',lat:'38.911265'},{lon:'-75.460503',lat:'38.909395'},{lon:'-75.456842',lat:'38.909712'},{lon:'-75.452504',lat:'38.910914'},{lon:'-75.449628',lat:'38.912065'},{lon:'-75.446064',lat:'38.912768'},{lon:'-75.443988',lat:'38.913074'},{lon:'-75.443717',lat:'38.913077'},{lon:'-75.44039',lat:'38.913128'},{lon:'-75.434048',lat:'38.910817'},{lon:'-75.432444',lat:'38.912062'},{lon:'-75.430391',lat:'38.912286'},{lon:'-75.430011',lat:'38.913482'},{lon:'-75.428404',lat:'38.913206'},{lon:'-75.424689',lat:'38.913411'},{lon:'-75.423458',lat:'38.91424'},{lon:'-75.422073',lat:'38.914042'},{lon:'-75.421581',lat:'38.915517'},{lon:'-75.41983',lat:'38.915416'},{lon:'-75.418318',lat:'38.914263'},{lon:'-75.416947',lat:'38.915521'},{lon:'-75.418423',lat:'38.916745'},{lon:'-75.416679',lat:'38.918031'},{lon:'-75.412565',lat:'38.917992'},{lon:'-75.410646',lat:'38.917458'},{lon:'-75.410463',lat:'38.916418'},{lon:'-75.408818',lat:'38.916824'},{lon:'-75.408157',lat:'38.917404'},{lon:'-75.408394',lat:'38.920079'},{lon:'-75.405371',lat:'38.919342'},{lon:'-75.404472',lat:'38.91834'},{lon:'-75.404388',lat:'38.917254'},{lon:'-75.402774',lat:'38.917422'},{lon:'-75.40231',lat:'38.91767'},{lon:'-75.401215',lat:'38.919054'},{lon:'-75.403351',lat:'38.922773'},{lon:'-75.402155',lat:'38.925007'},{lon:'-75.399883',lat:'38.925574'},{lon:'-75.399109',lat:'38.92691'},{lon:'-75.40095',lat:'38.929481'},{lon:'-75.400176',lat:'38.93139'},{lon:'-75.398613',lat:'38.933517'},{lon:'-75.397887',lat:'38.936187'},{lon:'-75.400321',lat:'38.935548'},{lon:'-75.402873',lat:'38.937472'},{lon:'-75.399834',lat:'38.938929'},{lon:'-75.398525',lat:'38.94074'},{lon:'-75.399719',lat:'38.944471'},{lon:'-75.4009',lat:'38.945819'},{lon:'-75.400716',lat:'38.947717'},{lon:'-75.398344',lat:'38.949906'},{lon:'-75.395424',lat:'38.9511'},{lon:'-75.393615',lat:'38.952846'},{lon:'-75.393134',lat:'38.95414'},{lon:'-75.393212',lat:'38.95574'},{lon:'-75.390664',lat:'38.95678'},{lon:'-75.389005',lat:'38.954672'},{lon:'-75.382525',lat:'38.955906'},{lon:'-75.381517',lat:'38.958761'},{lon:'-75.381339',lat:'38.961285'},{lon:'-75.380649',lat:'38.961873'},{lon:'-75.376851',lat:'38.960552'},{lon:'-75.372131',lat:'38.961436'},{lon:'-75.367886',lat:'38.95958'},{lon:'-75.368314',lat:'38.95756'},{lon:'-75.366208',lat:'38.953935'},{lon:'-75.364428',lat:'38.954486'},{lon:'-75.361025',lat:'38.957533'},{lon:'-75.360153',lat:'38.957559'},{lon:'-75.358977',lat:'38.95581'},{lon:'-75.356907',lat:'38.95418'},{lon:'-75.356842',lat:'38.952342'},{lon:'-75.354358',lat:'38.949966'},{lon:'-75.352774',lat:'38.947925'},{lon:'-75.350213',lat:'38.947438'},{lon:'-75.349341',lat:'38.948098'},{lon:'-75.349236',lat:'38.949711'},{lon:'-75.345967',lat:'38.953443'},{lon:'-75.345173',lat:'38.955234'},{lon:'-75.344061',lat:'38.955269'},{lon:'-75.343238',lat:'38.954694'},{lon:'-75.342174',lat:'38.951435'},{lon:'-75.343516',lat:'38.947439'},{lon:'-75.338704',lat:'38.946264'},{lon:'-75.334997',lat:'38.947315'},{lon:'-75.33326',lat:'38.948897'},{lon:'-75.332444',lat:'38.950707'},{lon:'-75.33027',lat:'38.950487'},{lon:'-75.328103',lat:'38.949007'},{lon:'-75.326288',lat:'38.949007'},{lon:'-75.324635',lat:'38.94971'},{lon:'-75.322202',lat:'38.951826'},{lon:'-75.321266',lat:'38.953455'},{lon:'-75.319381',lat:'38.953685'},{lon:'-75.316686',lat:'38.952913'},{lon:'-75.313534',lat:'38.95043'},{lon:'-75.313379',lat:'38.949417'},{lon:'-75.314294',lat:'38.947283'},{lon:'-75.311922561612604',lat:'38.945916812795801'},{lon:'-75.312546',lat:'38.94928'},{lon:'-75.312546',lat:'38.951065'},{lon:'-75.311607',lat:'38.967637'},{lon:'-75.314951',lat:'38.980775'},{lon:'-75.318354',lat:'38.988191'},{lon:'-75.34089',lat:'39.01996'},{lon:'-75.345763',lat:'39.024857'},{lon:'-75.357980247237805',lat:'39.031650412541303'},{lon:'-75.360116',lat:'39.032838'},{lon:'-75.371562',lat:'39.04296'},{lon:'-75.376041',lat:'39.044838'},{lon:'-75.379873',lat:'39.04879'},{lon:'-75.387914',lat:'39.051174'},{lon:'-75.396277',lat:'39.057884'},{lon:'-75.396035113069502',lat:'39.058565494600302'},{lon:'-75.395806',lat:'39.059211'},{lon:'-75.400294',lat:'39.065645'},{lon:'-75.400404555592601',lat:'39.065723741490501'},{lon:'-75.400417415757104',lat:'39.065732900941299'},{lon:'-75.400419429806007',lat:'39.065734335416103'},{lon:'-75.402035',lat:'39.066885'},{lon:'-75.402046574257795',lat:'39.067008269524898'},{lon:'-75.402296678176697',lat:'39.069671955767298'},{lon:'-75.403136',lat:'39.078611'},{lon:'-75.399809',lat:'39.099088'},{lon:'-75.408128',lat:'39.12251'},{lon:'-75.407528',lat:'39.134096'},{lon:'-75.412406',lat:'39.147582'},{lon:'-75.413357',lat:'39.153296'},{lon:'-75.410625',lat:'39.156246'},{lon:'-75.410225036896506',lat:'39.159362473334703'},{lon:'-75.409563',lat:'39.164521'},{lon:'-75.410267',lat:'39.169145'},{lon:'-75.408266',lat:'39.174625'},{lon:'-75.400144',lat:'39.186456'},{lon:'-75.39767',lat:'39.189228'},{lon:'-75.395768',lat:'39.191622'},{lon:'-75.39458',lat:'39.203227'},{lon:'-75.398383',lat:'39.209489'},{lon:'-75.396892',lat:'39.216141'},{lon:'-75.404745',lat:'39.222666'},{lon:'-75.405508859233706',lat:'39.2235848337641'},{lon:'-75.405716',lat:'39.223834'},{lon:'-75.402899',lat:'39.238949'},{lon:'-75.405914',lat:'39.242448'},{lon:'-75.406845862358097',lat:'39.246113472838601'},{lon:'-75.407177',lat:'39.247416'},{lon:'-75.405449231447406',lat:'39.254648471092402'},{lon:'-75.404688',lat:'39.257835'},{lon:'-75.408376',lat:'39.264698'},{lon:'-75.412556205652805',lat:'39.269043475059497'},{lon:'-75.416587467784893',lat:'39.273234117938898'},{lon:'-75.427953',lat:'39.285049'},{lon:'-75.431144769733706',lat:'39.2875097379614'},{lon:'-75.434035',lat:'39.289738'},{lon:'-75.434107251641095',lat:'39.292050961342099'},{lon:'-75.434194',lat:'39.294828'},{lon:'-75.435374',lat:'39.296676'},{lon:'-75.437243406421501',lat:'39.298973263524999'},{lon:'-75.437362',lat:'39.299119'},{lon:'-75.437074494637301',lat:'39.306043424932099'},{lon:'-75.436936',lat:'39.309379'},{lon:'-75.437770288889695',lat:'39.310976956481802'},{lon:'-75.439027',lat:'39.313384'},{lon:'-75.448058',lat:'39.315487'},{lon:'-75.452811',lat:'39.318429'},{lon:'-75.45537',lat:'39.324729'},{lon:'-75.460423',lat:'39.328236'},{lon:'-75.469324',lat:'39.33082'},{lon:'-75.479963',lat:'39.336577'},{lon:'-75.479432',lat:'39.33902'},{lon:'-75.490377',lat:'39.342818'},{lon:'-75.491688',lat:'39.343963'},{lon:'-75.493148',lat:'39.345527'},{lon:'-75.494122',lat:'39.34658'},{lon:'-75.494107518230194',lat:'39.346612794201299'},{lon:'-75.492083727262596',lat:'39.351195701489203'},{lon:'-75.491797',lat:'39.351845'},{lon:'-75.494158',lat:'39.354613'},{lon:'-75.497625627810706',lat:'39.356033985096701'},{lon:'-75.504021527480404',lat:'39.358654934808499'},{lon:'-75.505276',lat:'39.359169'},{lon:'-75.511788',lat:'39.365191'},{lon:'-75.512372082394805',lat:'39.3656561384634'},{lon:'-75.515975',lat:'39.364363'},{lon:'-75.516897',lat:'39.360988'},{lon:'-75.519628',lat:'39.360066'},{lon:'-75.52142',lat:'39.358607'},{lon:'-75.523254',lat:'39.359712'},{lon:'-75.525877',lat:'39.359642'},{lon:'-75.528453',lat:'39.358305'},{lon:'-75.528673',lat:'39.356782'},{lon:'-75.527259',lat:'39.354675'},{lon:'-75.528696',lat:'39.35343'},{lon:'-75.531914',lat:'39.354595'},{lon:'-75.534278',lat:'39.353332'},{lon:'-75.534484',lat:'39.351389'},{lon:'-75.535849',lat:'39.350617'},{lon:'-75.53899',lat:'39.351954'},{lon:'-75.539867',lat:'39.353887'},{lon:'-75.541586',lat:'39.354366'},{lon:'-75.543263',lat:'39.353236'},{lon:'-75.544056',lat:'39.351363'},{lon:'-75.545216',lat:'39.350763'},{lon:'-75.54811',lat:'39.351713'},{lon:'-75.548131',lat:'39.352921'},{lon:'-75.549645',lat:'39.353855'},{lon:'-75.551626',lat:'39.35394'},{lon:'-75.553369',lat:'39.35301'},{lon:'-75.554683',lat:'39.351506'},{lon:'-75.553841',lat:'39.349938'},{lon:'-75.552242',lat:'39.350157'},{lon:'-75.551096',lat:'39.349483'},{lon:'-75.55104',lat:'39.345568'},{lon:'-75.551599',lat:'39.345105'},{lon:'-75.554223',lat:'39.345404'},{lon:'-75.555886',lat:'39.346743'},{lon:'-75.55619',lat:'39.348287'},{lon:'-75.557166',lat:'39.349098'},{lon:'-75.5588',lat:'39.346549'},{lon:'-75.560519',lat:'39.345067'},{lon:'-75.559982',lat:'39.343466'},{lon:'-75.557846',lat:'39.342764'},{lon:'-75.557358',lat:'39.341501'},{lon:'-75.558334',lat:'39.33923'},{lon:'-75.556318',lat:'39.337879'},{lon:'-75.555681',lat:'39.33653'},{lon:'-75.556205',lat:'39.335325'},{lon:'-75.558843',lat:'39.333334'},{lon:'-75.562734',lat:'39.332104'},{lon:'-75.564806',lat:'39.331936'},{lon:'-75.569007',lat:'39.328744'},{lon:'-75.56982',lat:'39.326577'},{lon:'-75.568716',lat:'39.323523'},{lon:'-75.570958',lat:'39.318845'},{lon:'-75.57462',lat:'39.313434'},{lon:'-75.581145',lat:'39.311131'},{lon:'-75.584341',lat:'39.308718'},{lon:'-75.587325',lat:'39.309699'},{lon:'-75.587495',lat:'39.311009'},{lon:'-75.589511',lat:'39.311679'},{lon:'-75.591335',lat:'39.311638'},{lon:'-75.593889',lat:'39.308417'},{lon:'-75.594841',lat:'39.309904'},{lon:'-75.596609',lat:'39.309647'},{lon:'-75.597106',lat:'39.309554'},{lon:'-75.599218',lat:'39.309737'},{lon:'-75.599571',lat:'39.308442'},{lon:'-75.602031',lat:'39.30811'},{lon:'-75.603446',lat:'39.309094'},{lon:'-75.603836',lat:'39.311182'},{lon:'-75.606598',lat:'39.30809'},{lon:'-75.609385',lat:'39.308801'},{lon:'-75.610863',lat:'39.309276'},{lon:'-75.612008',lat:'39.308954'},{lon:'-75.614256',lat:'39.308307'},{lon:'-75.61606',lat:'39.309735'},{lon:'-75.619631',lat:'39.310058'},{lon:'-75.621379',lat:'39.308755'},{lon:'-75.623264',lat:'39.308029'},{lon:'-75.624047',lat:'39.306376'},{lon:'-75.626132',lat:'39.30413'},{lon:'-75.627531',lat:'39.304438'},{lon:'-75.63225',lat:'39.301327'},{lon:'-75.633937',lat:'39.301593'},{lon:'-75.640875',lat:'39.301224'},{lon:'-75.641928',lat:'39.300891'},{lon:'-75.6427',lat:'39.299107'},{lon:'-75.646293',lat:'39.29687'},{lon:'-75.647686',lat:'39.29588'},{lon:'-75.649179',lat:'39.293151'},{lon:'-75.65135',lat:'39.291589'},{lon:'-75.652947',lat:'39.291949'},{lon:'-75.654461',lat:'39.291184'},{lon:'-75.660476',lat:'39.291672'},{lon:'-75.665811',lat:'39.290567'},{lon:'-75.667269',lat:'39.290417'},{lon:'-75.669276',lat:'39.291397'},{lon:'-75.670302',lat:'39.290891'},{lon:'-75.673327',lat:'39.291027'},{lon:'-75.6752',lat:'39.290498'},{lon:'-75.678042',lat:'39.292477'},{lon:'-75.680261',lat:'39.292496'},{lon:'-75.681385',lat:'39.293205'},{lon:'-75.683117',lat:'39.294578'},{lon:'-75.685188',lat:'39.297089'},{lon:'-75.714901',lat:'39.299366'},{lon:'-75.746048',lat:'39.297531'},{lon:'-75.75',lat:'39.297474'},{lon:'-75.760104352372906',lat:'39.296816522472298'}];
AddRaidPolygon(raid_mapLayer, VKent0,"#"," Kent");

var VSussex0 = [{lon:'  -75.722599091852899',lat:'38.829859371810699'},{lon:'-75.722028',lat:'38.822078'},{lon:'-75.720440350105704',lat:'38.801878447829999'},{lon:'-75.720437594112397',lat:'38.801843383531597'},{lon:'-75.717589477088296',lat:'38.765607001302897'},{lon:'-75.712876155396003',lat:'38.705639758047496'},{lon:'-75.712276594847793',lat:'38.698011593541402'},{lon:'-75.707355720242802',lat:'38.635403669929701'},{lon:'-75.707355681536598',lat:'38.6354031774734'},{lon:'-75.707346',lat:'38.63528'},{lon:'-75.706585',lat:'38.626125'},{lon:'-75.706235',lat:'38.621296'},{lon:'-75.70586',lat:'38.616268'},{lon:'-75.705774',lat:'38.61474'},{lon:'-75.703981',lat:'38.592066'},{lon:'-75.703445',lat:'38.58512'},{lon:'-75.701565',lat:'38.560736'},{lon:'-75.701564835126504',lat:'38.560733856526298'},{lon:'-75.700179',lat:'38.542717'},{lon:'-75.7001723474568',lat:'38.542618701794602'},{lon:'-75.698779000160499',lat:'38.522030554439802'},{lon:'-75.698777',lat:'38.522001'},{lon:'-75.697900750776796',lat:'38.511290541568201'},{lon:'-75.696688111617803',lat:'38.496468364313202'},{lon:'-75.696688',lat:'38.496467'},{lon:'-75.696369',lat:'38.492373'},{lon:'-75.69367',lat:'38.46008'},{lon:'-75.691652287581803',lat:'38.459995225185899'},{lon:'-75.665585',lat:'38.4589'},{lon:'-75.662843',lat:'38.458759'},{lon:'-75.648079993022094',lat:'38.458369252239699'},{lon:'-75.630457',lat:'38.457904'},{lon:'-75.598069',lat:'38.456855'},{lon:'-75.5979382535903',lat:'38.456843175931297'},{lon:'-75.593082',lat:'38.456404'},{lon:'-75.589307',lat:'38.456286'},{lon:'-75.583601',lat:'38.456424'},{lon:'-75.583056727607499',lat:'38.456399169113297'},{lon:'-75.582530883268007',lat:'38.456375178954303'},{lon:'-75.581892196752804',lat:'38.456346040690498'},{lon:'-75.574223224402203',lat:'38.4559961655427'},{lon:'-75.57411',lat:'38.455991'},{lon:'-75.564351872193797',lat:'38.4557073975271'},{lon:'-75.564111903112206',lat:'38.455700423256403'},{lon:'-75.563178185733094',lat:'38.455673286436401'},{lon:'-75.559975085895303',lat:'38.455580194087801'},{lon:'-75.559934',lat:'38.455579'},{lon:'-75.559212',lat:'38.455563'},{lon:'-75.558395964401797',lat:'38.455543600356101'},{lon:'-75.558138725434105',lat:'38.455537485004797'},{lon:'-75.557983399824906',lat:'38.455533792443497'},{lon:'-75.555343383417707',lat:'38.4554710312377'},{lon:'-75.555339285317402',lat:'38.455470933813402'},{lon:'-75.547949833352902',lat:'38.455295264103803'},{lon:'-75.543235352160195',lat:'38.455183186571503'},{lon:'-75.539503084174896',lat:'38.455094459229301'},{lon:'-75.536361862524004',lat:'38.455019782853'},{lon:'-75.533763',lat:'38.454958'},{lon:'-75.52273',lat:'38.454657'},{lon:'-75.521304',lat:'38.454657'},{lon:'-75.502961',lat:'38.45422'},{lon:'-75.500142',lat:'38.454144'},{lon:'-75.47915',lat:'38.453699'},{lon:'-75.477539330616395',lat:'38.453666161792'},{lon:'-75.444096642895104',lat:'38.4529843347526'},{lon:'-75.428728',lat:'38.452671'},{lon:'-75.428644523147696',lat:'38.452669693331302'},{lon:'-75.424831',lat:'38.45261'},{lon:'-75.410884',lat:'38.4524'},{lon:'-75.394786',lat:'38.45216'},{lon:'-75.393563',lat:'38.452114'},{lon:'-75.371055934480694',lat:'38.4521070006016'},{lon:'-75.371054',lat:'38.452107'},{lon:'-75.355797',lat:'38.452008'},{lon:'-75.34125',lat:'38.45197'},{lon:'-75.341246779635597',lat:'38.4519699809724'},{lon:'-75.331475317607001',lat:'38.451912246005101'},{lon:'-75.273064958028101',lat:'38.451567126698897'},{lon:'-75.26035',lat:'38.451492'},{lon:'-75.252723',lat:'38.451397'},{lon:'-75.2362815542254',lat:'38.451303202418998'},{lon:'-75.232705675946306',lat:'38.451282802222003'},{lon:'-75.227221305915606',lat:'38.4512515141802'},{lon:'-75.218548096790201',lat:'38.451202033979598'},{lon:'-75.205133504862502',lat:'38.4511255044401'},{lon:'-75.205110440363995',lat:'38.451125372858399'},{lon:'-75.185555096430093',lat:'38.451013810652597'},{lon:'-75.185413',lat:'38.451013'},{lon:'-75.185041856195994',lat:'38.451014560681898'},{lon:'-75.141965485291706',lat:'38.451195699400103'},{lon:'-75.141894',lat:'38.451196'},{lon:'-75.089649032297899',lat:'38.4512540620603'},{lon:'-75.088281033987499',lat:'38.451255582375197'},{lon:'-75.085831629062',lat:'38.451258304503298'},{lon:'-75.085814033700402',lat:'38.451258324057797'},{lon:'-75.073215879343493',lat:'38.451272324923998'},{lon:'-75.072758432028195',lat:'38.451272833304699'},{lon:'-75.0725158802246',lat:'38.4512731028628'},{lon:'-75.070356040567503',lat:'38.451275503184704'},{lon:'-75.069909',lat:'38.451276'},{lon:'-75.066327',lat:'38.451291'},{lon:'-75.065642936343195',lat:'38.451290094590298'},{lon:'-75.065352062088294',lat:'38.451289709596303'},{lon:'-75.064718939285498',lat:'38.4512888716107'},{lon:'-75.054574966321198',lat:'38.451275445299601'},{lon:'-75.053483',lat:'38.451274'},{lon:'-75.05251',lat:'38.451273'},{lon:'-75.052402771596704',lat:'38.451272699724399'},{lon:'-75.048939',lat:'38.451263'},{lon:'-75.049056966040894',lat:'38.456384680124799'},{lon:'-75.049312388175096',lat:'38.467474231473801'},{lon:'-75.049551114169006',lat:'38.477838893784899'},{lon:'-75.049748',lat:'38.486387'},{lon:'-75.051623476059504',lat:'38.508512292347703'},{lon:'-75.052573630925394',lat:'38.519721421931401'},{lon:'-75.052611728965999',lat:'38.5201708706361'},{lon:'-75.052697577781402',lat:'38.521183642901399'},{lon:'-75.053051741197095',lat:'38.525361765608601'},{lon:'-75.053586558093997',lat:'38.531671086452597'},{lon:'-75.053628185372602',lat:'38.532162170145199'},{lon:'-75.054322197933203',lat:'38.540349547807502'},{lon:'-75.054783143963405',lat:'38.5457874021713'},{lon:'-75.054861783620197',lat:'38.546715126834698'},{lon:'-75.055582379636604',lat:'38.555216113794799'},{lon:'-75.056248737494997',lat:'38.5630772444934'},{lon:'-75.059401059846905',lat:'38.600265697660603'},{lon:'-75.059954754338193',lat:'38.6067977205199'},{lon:'-75.060032',lat:'38.607709'},{lon:'-75.060478',lat:'38.608012'},{lon:'-75.061000706014795',lat:'38.608406873942002'},{lon:'-75.061259',lat:'38.608602'},{lon:'-75.06192',lat:'38.608869'},{lon:'-75.065217',lat:'38.632394'},{lon:'-75.06551',lat:'38.66103'},{lon:'-75.070358838213906',lat:'38.688334288587299'},{lon:'-75.071998038696506',lat:'38.697564788978198'},{lon:'-75.073171080008606',lat:'38.704170300875603'},{lon:'-75.073682695158794',lat:'38.7070512564962'},{lon:'-75.074982742833896',lat:'38.714371953812503'},{lon:'-75.075398005408204',lat:'38.716710338528301'},{lon:'-75.077716746294399',lat:'38.729767398285802'},{lon:'-75.078111632568707',lat:'38.731991042036697'},{lon:'-75.079213628666594',lat:'38.738196491290701'},{lon:'-75.079221',lat:'38.738238'},{lon:'-75.080217',lat:'38.750112'},{lon:'-75.082153',lat:'38.772157'},{lon:'-75.089473',lat:'38.797198'},{lon:'-75.092014',lat:'38.803902'},{lon:'-75.09748',lat:'38.805939'},{lon:'-75.099144',lat:'38.803531'},{lon:'-75.093295',lat:'38.797618'},{lon:'-75.093654',lat:'38.793992'},{lon:'-75.097103',lat:'38.788703'},{lon:'-75.102574331174594',lat:'38.786779537814198'},{lon:'-75.1028569474054',lat:'38.786680183266697'},{lon:'-75.113331',lat:'38.782998'},{lon:'-75.134022',lat:'38.782242'},{lon:'-75.159022',lat:'38.790193'},{lon:'-75.160748',lat:'38.791224'},{lon:'-75.190201188462396',lat:'38.806676942826002'},{lon:'-75.190552',lat:'38.806861'},{lon:'-75.205329',lat:'38.823386'},{lon:'-75.227242463076706',lat:'38.840512971815897'},{lon:'-75.232029',lat:'38.844254'},{lon:'-75.263115',lat:'38.877351'},{lon:'-75.268611353627705',lat:'38.880848972127197'},{lon:'-75.273363',lat:'38.883873'},{lon:'-75.280272',lat:'38.892352'},{lon:'-75.292750227428698',lat:'38.9032587863705'},{lon:'-75.304078',lat:'38.91316'},{lon:'-75.312282',lat:'38.924594'},{lon:'-75.317096',lat:'38.93344'},{lon:'-75.316784884630096',lat:'38.935085926010302'},{lon:'-75.315982349030705',lat:'38.939331663587602'},{lon:'-75.315908',lat:'38.939725'},{lon:'-75.311542',lat:'38.944633'},{lon:'-75.311882',lat:'38.945698'},{lon:'-75.311922561612604',lat:'38.945916812795801'},{lon:'-75.314294',lat:'38.947283'},{lon:'-75.313379',lat:'38.949417'},{lon:'-75.313534',lat:'38.95043'},{lon:'-75.316686',lat:'38.952913'},{lon:'-75.319381',lat:'38.953685'},{lon:'-75.321266',lat:'38.953455'},{lon:'-75.322202',lat:'38.951826'},{lon:'-75.324635',lat:'38.94971'},{lon:'-75.326288',lat:'38.949007'},{lon:'-75.328103',lat:'38.949007'},{lon:'-75.33027',lat:'38.950487'},{lon:'-75.332444',lat:'38.950707'},{lon:'-75.33326',lat:'38.948897'},{lon:'-75.334997',lat:'38.947315'},{lon:'-75.338704',lat:'38.946264'},{lon:'-75.343516',lat:'38.947439'},{lon:'-75.342174',lat:'38.951435'},{lon:'-75.343238',lat:'38.954694'},{lon:'-75.344061',lat:'38.955269'},{lon:'-75.345173',lat:'38.955234'},{lon:'-75.345967',lat:'38.953443'},{lon:'-75.349236',lat:'38.949711'},{lon:'-75.349341',lat:'38.948098'},{lon:'-75.350213',lat:'38.947438'},{lon:'-75.352774',lat:'38.947925'},{lon:'-75.354358',lat:'38.949966'},{lon:'-75.356842',lat:'38.952342'},{lon:'-75.356907',lat:'38.95418'},{lon:'-75.358977',lat:'38.95581'},{lon:'-75.360153',lat:'38.957559'},{lon:'-75.361025',lat:'38.957533'},{lon:'-75.364428',lat:'38.954486'},{lon:'-75.366208',lat:'38.953935'},{lon:'-75.368314',lat:'38.95756'},{lon:'-75.367886',lat:'38.95958'},{lon:'-75.372131',lat:'38.961436'},{lon:'-75.376851',lat:'38.960552'},{lon:'-75.380649',lat:'38.961873'},{lon:'-75.381339',lat:'38.961285'},{lon:'-75.381517',lat:'38.958761'},{lon:'-75.382525',lat:'38.955906'},{lon:'-75.389005',lat:'38.954672'},{lon:'-75.390664',lat:'38.95678'},{lon:'-75.393212',lat:'38.95574'},{lon:'-75.393134',lat:'38.95414'},{lon:'-75.393615',lat:'38.952846'},{lon:'-75.395424',lat:'38.9511'},{lon:'-75.398344',lat:'38.949906'},{lon:'-75.400716',lat:'38.947717'},{lon:'-75.4009',lat:'38.945819'},{lon:'-75.399719',lat:'38.944471'},{lon:'-75.398525',lat:'38.94074'},{lon:'-75.399834',lat:'38.938929'},{lon:'-75.402873',lat:'38.937472'},{lon:'-75.400321',lat:'38.935548'},{lon:'-75.397887',lat:'38.936187'},{lon:'-75.398613',lat:'38.933517'},{lon:'-75.400176',lat:'38.93139'},{lon:'-75.40095',lat:'38.929481'},{lon:'-75.399109',lat:'38.92691'},{lon:'-75.399883',lat:'38.925574'},{lon:'-75.402155',lat:'38.925007'},{lon:'-75.403351',lat:'38.922773'},{lon:'-75.401215',lat:'38.919054'},{lon:'-75.40231',lat:'38.91767'},{lon:'-75.402774',lat:'38.917422'},{lon:'-75.404388',lat:'38.917254'},{lon:'-75.404472',lat:'38.91834'},{lon:'-75.405371',lat:'38.919342'},{lon:'-75.408394',lat:'38.920079'},{lon:'-75.408157',lat:'38.917404'},{lon:'-75.408818',lat:'38.916824'},{lon:'-75.410463',lat:'38.916418'},{lon:'-75.410646',lat:'38.917458'},{lon:'-75.412565',lat:'38.917992'},{lon:'-75.416679',lat:'38.918031'},{lon:'-75.418423',lat:'38.916745'},{lon:'-75.416947',lat:'38.915521'},{lon:'-75.418318',lat:'38.914263'},{lon:'-75.41983',lat:'38.915416'},{lon:'-75.421581',lat:'38.915517'},{lon:'-75.422073',lat:'38.914042'},{lon:'-75.423458',lat:'38.91424'},{lon:'-75.424689',lat:'38.913411'},{lon:'-75.428404',lat:'38.913206'},{lon:'-75.430011',lat:'38.913482'},{lon:'-75.430391',lat:'38.912286'},{lon:'-75.432444',lat:'38.912062'},{lon:'-75.434048',lat:'38.910817'},{lon:'-75.44039',lat:'38.913128'},{lon:'-75.443717',lat:'38.913077'},{lon:'-75.443988',lat:'38.913074'},{lon:'-75.446064',lat:'38.912768'},{lon:'-75.449628',lat:'38.912065'},{lon:'-75.452504',lat:'38.910914'},{lon:'-75.456842',lat:'38.909712'},{lon:'-75.460503',lat:'38.909395'},{lon:'-75.465343',lat:'38.911265'},{lon:'-75.470643',lat:'38.908684'},{lon:'-75.477222',lat:'38.905841'},{lon:'-75.479626',lat:'38.905593'},{lon:'-75.48132',lat:'38.90436'},{lon:'-75.484125',lat:'38.904448'},{lon:'-75.484819',lat:'38.903753'},{lon:'-75.485657',lat:'38.903617'},{lon:'-75.488156',lat:'38.898983'},{lon:'-75.487732',lat:'38.895493'},{lon:'-75.488026',lat:'38.892784'},{lon:'-75.490453',lat:'38.889664'},{lon:'-75.491565',lat:'38.888525'},{lon:'-75.494383',lat:'38.887882'},{lon:'-75.495885',lat:'38.885821'},{lon:'-75.496888',lat:'38.883001'},{lon:'-75.49778',lat:'38.882127'},{lon:'-75.499438',lat:'38.881918'},{lon:'-75.501771',lat:'38.88088'},{lon:'-75.503337',lat:'38.881617'},{lon:'-75.505749',lat:'38.880732'},{lon:'-75.508168',lat:'38.878951'},{lon:'-75.509745',lat:'38.874997'},{lon:'-75.516306',lat:'38.864002'},{lon:'-75.517764',lat:'38.861012'},{lon:'-75.520439',lat:'38.855742'},{lon:'-75.53518',lat:'38.850368'},{lon:'-75.536234',lat:'38.84989'},{lon:'-75.535968',lat:'38.847616'},{lon:'-75.53958',lat:'38.843634'},{lon:'-75.541336',lat:'38.842864'},{lon:'-75.544026',lat:'38.84337'},{lon:'-75.548726',lat:'38.841077'},{lon:'-75.551016',lat:'38.838719'},{lon:'-75.553173',lat:'38.837402'},{lon:'-75.555013',lat:'38.835649'},{lon:'-75.582418',lat:'38.834638'},{lon:'-75.683174',lat:'38.831316'},{lon:'-75.686476',lat:'38.831294'},{lon:'-75.689586',lat:'38.831085'},{lon:'-75.722599091852899',lat:'38.829859371810699'}];
AddRaidPolygon(raid_mapLayer, VSussex0,"#"," Sussex");


    setTimeout(function(){CurrentRaidLocation(raid_mapLayer);},3000);
    mro_Map.events.register("moveend", Waze.map, function(){ setTimeout(function(){CurrentRaidLocation(raid_mapLayer);},1500);});
    mro_Map.events.register("zoomend", Waze.map, function(){ setTimeout(function(){CurrentRaidLocation(raid_mapLayer);},1500);});
       
}