WME Mega MapRaid Overlay

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

目前為 2015-03-11 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name                WME Mega MapRaid Overlay
// @namespace           https://greasyfork.org/users/5252
// @description         Creates polygons for MapRaid groups in a WME "Mega MapRaid Groups" layer
// @include             https://www.waze.com/editor/*
// @include             https://www.waze.com/*/editor/*
// @include             https://editor-beta.waze.com/*
// @version             1.6
// @grant               none
// @copyright           2014 davielde
// ==/UserScript==


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


//generated by rickzabel's overlay generator

//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



function bootstrap_MapRaidOverlay()
{
  var bGreasemonkeyServiceDefined = false;

  try {
    bGreasemonkeyServiceDefined = (typeof Components.interfaces.gmIGreasemonkeyService === "object");
  }
  catch (err) { /* Ignore */ }

  if (typeof unsafeWindow === "undefined" || ! bGreasemonkeyServiceDefined) {
    unsafeWindow    = ( function () {
      var dummyElem = document.createElement('p');
      dummyElem.setAttribute('onclick', 'return window;');
      return dummyElem.onclick();
    }) ();
  }

    /* begin running the code! */
    setTimeout(InitMapRaidOverlay, 1000);
}

function AddRaidPolygon(raidLayer,groupPoints,groupColor,groupNumber){
    
    var mro_Map = unsafeWindow.Waze.map;
    var mro_OL = unsafeWindow.OpenLayers;
    var raidGroupLabel = 'Raid Group ' + groupNumber;
    var groupName = 'RaidGroup' + groupNumber;
    
    var style = {
        strokeColor: groupColor,
        strokeOpacity: .8,
        strokeWidth: 3,
        fillColor: groupColor,
        fillOpacity: 0.15,
        label: raidGroupLabel,
        labelOutlineColor: "black",
        labelOutlineWidth: 3,
        fontSize: 14,
        fontColor: groupColor,
        fontOpacity: .85,
        fontWeight: "bold"  
    };
    
    var attributes = {
        name: groupName,
        number: groupNumber
    };
    
    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 CurrentRaidLocation(raid_mapLayer){
    var mro_Map = unsafeWindow.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);
        //console.log('MapRaid: ' + raid_mapLayer.features[i].attributes.number + ': ' + raidCenterCheck);
        if(raidCenterCheck === true){
        	var raidLocationLabel = 'Raid Group ' + raid_mapLayer.features[i].attributes.number + ' - ' + $('.WazeControlLocationInfo').text();
    		setTimeout(function(){$('.WazeControlLocationInfo').text(raidLocationLabel);},200);
        }
    }
}

function InitMapRaidOverlay(){

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

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

    var mro_mapLayers = mro_Map.getLayersBy("uniqueName","__MegaMapRaid");
        
    var raid_mapLayer = new mro_OL.Layer.Vector("Mega MapRaid", {
        displayInLayerSwitcher: true,
        uniqueName: "__MegaMapRaid"
    });
        
    I18n.translations.en.layers.name["__MegaMapRaid"] = "Mega MapRaid";
    mro_Map.addLayer(raid_mapLayer);
    raid_mapLayer.setVisibility(true);
    
/*
var VBAYAREA = [{lon:'-123.1984913',lat:'38.21390370000001'},{lon:'-122.1135413',lat:'36.705519100000004'},{lon:'-121.0728177',lat:'37.0846502'},{lon:'-121.92964180000001',lat:'38.4254615'},{lon:'-123.1984913',lat:'38.21390370000001'}];
AddRaidPolygon(raid_mapLayer, VBAYAREA,"#F9F7A6","BAY AREA");

var VWashingtonDCMetroArea = [{lon:'-76.8332102',lat:'39.0988705'},{lon:'-77.3152422',lat:'39.20429630000001'},{lon:'-77.3014987',lat:'38.665909500000005'},{lon:'-76.7260832',lat:'38.6584103'},{lon:'-76.737078',lat:'39.0594273'},{lon:'-76.8324567',lat:'39.066036'},{lon:'-76.8332102',lat:'39.0988705'}];
AddRaidPolygon(raid_mapLayer, VWashingtonDCMetroArea,"#CDDC39","Washington DC Metro Area");

var VBaltimoreMetroArea = [{lon:'-76.9848043',lat:'39.138057700000005'},{lon:'-76.8335475',lat:'39.10423'},{lon:'-76.8328086',lat:'39.0703287'},{lon:'-76.7374243',lat:'39.0637187'},{lon:'-76.7336475',lat:'38.9265583'},{lon:'-76.2732166',lat:'38.9324332'},{lon:'-76.4320488',lat:'39.1626561'},{lon:'-76.3428103',lat:'39.2816026'},{lon:'-76.2073182',lat:'39.28587550000001'},{lon:'-76.1235189',lat:'39.6276819'},{lon:'-76.979139',lat:'39.6171055'},{lon:'-76.9848043',lat:'39.138057700000005'}];
AddRaidPolygon(raid_mapLayer, VBaltimoreMetroArea,"#F4EB37","Baltimore Metro Area");

var VPolygon4 = [{lon:'-94.2626953',lat:'33.1237508'},{lon:'-94.21875',lat:'32.0453328'},{lon:'-93.6474609',lat:'30.732392699999995'},{lon:'-91.439209',lat:'30.6898879'},{lon:'-90.78552250000001',lat:'32.26855539999999'},{lon:'-90.8349609',lat:'33.1007454'},{lon:'-94.2626953',lat:'33.1237508'}];
AddRaidPolygon(raid_mapLayer, VPolygon4,"#F4EB37","Polygon 4");

var VLouisiana = [{lon:'-93.8995356',lat:'33.01674289999999'},{lon:'-93.903835',lat:'32.03163589999999'},{lon:'-93.9038354',lat:'31.911386900000004'},{lon:'-93.7363123',lat:'31.546035500000002'},{lon:'-93.581676',lat:'31.1939471'},{lon:'-93.4055604',lat:'31.0137268'},{lon:'-93.0919899',lat:'30.836854400000004'},{lon:'-91.4897677',lat:'30.8552952'},{lon:'-91.32224420000001',lat:'31.223338600000005'},{lon:'-91.1719028',lat:'31.597272'},{lon:'-90.9914931',lat:'31.787329500000013'},{lon:'-90.8454481',lat:'32.155365'},{lon:'-90.8540429',lat:'32.886983'},{lon:'-91.0301579',lat:'33.07435340000001'},{lon:'-93.8995356',lat:'33.01674289999999'}];
AddRaidPolygon(raid_mapLayer, VLouisiana,"#000000","Louisiana");

var VWashingtonDCMetroArea = [{lon:'-77.1963936',lat:'39.105456100000005'},{lon:'-77.2017631',lat:'38.766325099999996'},{lon:'-76.81946860000001',lat:'38.724448300000006'},{lon:'-76.8183961',lat:'39.0637783'},{lon:'-77.1963936',lat:'39.105456100000005'}];
AddRaidPolygon(raid_mapLayer, VWashingtonDCMetroArea,"#FF0000","Washington DC Metro Area");

var VBaltimoreMetroArea = [{lon:'-76.829275',lat:'39.561706'},{lon:'-76.832133',lat:'39.06526'},{lon:'-76.269069',lat:'38.999764'},{lon:'-76.269069',lat:'39.49557'},{lon:'-76.829275',lat:'39.561706'}];
AddRaidPolygon(raid_mapLayer, VBaltimoreMetroArea,"#FF0000","Baltimore Metro Area");

var VBayArea = [{lon:'-122.908388',lat:'38.084948000000004'},{lon:'-122.555345',lat:'37.274669'},{lon:'-122.378823',lat:'37.31679700000001'},{lon:'-122.371763',lat:'36.866218999999994'},{lon:'-122.00106800000002',lat:'36.818188'},{lon:'-121.44326',lat:'36.98193500000001'},{lon:'-121.446791',lat:'37.305565'},{lon:'-121.619782',lat:'37.24376'},{lon:'-121.62331200000001',lat:'37.395372'},{lon:'-121.626842',lat:'37.549477'},{lon:'-121.62331200000001',lat:'37.85952'},{lon:'-121.803364',lat:'37.800963'},{lon:'-121.81395500000002',lat:'38.109953'},{lon:'-122.170528',lat:'38.001537'},{lon:'-122.177589',lat:'38.154385'},{lon:'-122.35411000000002',lat:'38.096062999999994'},{lon:'-122.35411000000002',lat:'38.251486'},{lon:'-122.908388',lat:'38.084948000000004'}];
AddRaidPolygon(raid_mapLayer, VBayArea,"#FF0000","Bay Area");
*/
var V01Bay = [{lon:'-122.5270723',lat:'37.8003666'},{lon:'-122.5214949',lat:'37.7631096'},{lon:'-122.36382450000002',lat:'37.7726245'},{lon:'-122.40477520000002',lat:'37.84048380000001'},{lon:'-122.5270723',lat:'37.8003666'}];
AddRaidPolygon(raid_mapLayer, V01Bay,"#B7DBAB","01 Bay");

var V02Bay = [{lon:'-122.5214949',lat:'37.7631096'},{lon:'-122.57380879999998',lat:'37.7000821'},{lon:'-122.3417501',lat:'37.7061253'},{lon:'-122.36382450000002',lat:'37.7726245'},{lon:'-122.5214949',lat:'37.7631096'}];
AddRaidPolygon(raid_mapLayer, V02Bay,"#795046","02 Bay");

var V04Bay = [{lon:'-122.51456080000001',lat:'37.47610650000001'},{lon:'-122.4438835',lat:'37.3767527'},{lon:'-122.11879549999999',lat:'37.4878954'},{lon:'-122.2285543',lat:'37.6423178'},{lon:'-122.51456080000001',lat:'37.47610650000001'}];
AddRaidPolygon(raid_mapLayer, V04Bay,"#7CCFA9","04 Bay");

var V05Bay = [{lon:'-122.5674797',lat:'37.3090615'},{lon:'-122.555345',lat:'37.274669'},{lon:'-122.378823',lat:'37.31679700000001'},{lon:'-122.378625',lat:'37.22499820000001'},{lon:'-122.03259220000001',lat:'37.4443603'},{lon:'-122.11879549999999',lat:'37.4878954'},{lon:'-122.5674797',lat:'37.3090615'}];
AddRaidPolygon(raid_mapLayer, V05Bay,"#3F5BA9","05 Bay");

var V06Bay = [{lon:'-122.378625',lat:'37.22499820000001'},{lon:'-122.3758173',lat:'37.07725150000001'},{lon:'-121.93353970000001',lat:'37.3909689'},{lon:'-122.03259220000001',lat:'37.4443603'},{lon:'-122.378625',lat:'37.22499820000001'}];
AddRaidPolygon(raid_mapLayer, V06Bay,"#F8971B","06 Bay");

var V07Bay = [{lon:'-122.3565912',lat:'37.0827295'},{lon:'-122.1717388',lat:'36.9635998'},{lon:'-121.86010870000001',lat:'37.2997129'},{lon:'-121.93353970000001',lat:'37.3909689'},{lon:'-122.3565912',lat:'37.0827295'}];
AddRaidPolygon(raid_mapLayer, V07Bay,"#93D7E8","07 Bay");

var V08Bay = [{lon:'-122.371763',lat:'36.866218999999994'},{lon:'-122.00106800000002',lat:'36.818188'},{lon:'-121.7499174',lat:'37.2364532'},{lon:'-121.86010870000001',lat:'37.2997129'},{lon:'-122.371763',lat:'36.866218999999994'}];
AddRaidPolygon(raid_mapLayer, V08Bay,"#D698AD","08 Bay");

var V09Bay = [{lon:'-122.00106800000002',lat:'36.818188'},{lon:'-121.44326',lat:'36.98193500000001'},{lon:'-121.7595355',lat:'37.215681200000006'},{lon:'-122.00106800000002',lat:'36.818188'}];
AddRaidPolygon(raid_mapLayer, V09Bay,"#F4B400","09 Bay");

var V10Bay = [{lon:'-121.619782',lat:'37.24376'},{lon:'-121.6259175',lat:'37.4082765'},{lon:'-121.86010870000001',lat:'37.2997129'},{lon:'-121.44326',lat:'36.98193500000001'},{lon:'-121.446791',lat:'37.305565'},{lon:'-121.619782',lat:'37.24376'}];
AddRaidPolygon(raid_mapLayer, V10Bay,"#F4EB37","10 Bay");

var V03Bay = [{lon:'-122.57380879999998',lat:'37.7000821'},{lon:'-122.51456080000001',lat:'37.47610650000001'},{lon:'-122.2285543',lat:'37.6423178'},{lon:'-122.3417501',lat:'37.7061253'},{lon:'-122.57380879999998',lat:'37.7000821'}];
AddRaidPolygon(raid_mapLayer, V03Bay,"#FFDD5E","03 Bay");

var V11Bay = [{lon:'-121.93353970000001',lat:'37.3909689'},{lon:'-121.86010870000001',lat:'37.2997129'},{lon:'-121.6259175',lat:'37.4082765'},{lon:'-121.62621270000001',lat:'37.5708159'},{lon:'-121.93353970000001',lat:'37.3909689'}];
AddRaidPolygon(raid_mapLayer, V11Bay,"#A7B5D7","11 Bay");

var V12Bay = [{lon:'-122.11879549999999',lat:'37.4878954'},{lon:'-121.93353970000001',lat:'37.3909689'},{lon:'-121.62621270000001',lat:'37.5708159'},{lon:'-121.624385',lat:'37.712516300000004'},{lon:'-122.11879549999999',lat:'37.4878954'}];
AddRaidPolygon(raid_mapLayer, V12Bay,"#E6EEA3","12 Bay");

var V13Bay = [{lon:'-122.2285543',lat:'37.6423178'},{lon:'-122.11879549999999',lat:'37.4878954'},{lon:'-121.624385',lat:'37.712516300000004'},{lon:'-121.62331200000001',lat:'37.85952'},{lon:'-122.2285543',lat:'37.6423178'}];
AddRaidPolygon(raid_mapLayer, V13Bay,"#62AF44","13 Bay");

var V14Bay = [{lon:'-121.81291090000002',lat:'37.9104751'},{lon:'-122.36382450000002',lat:'37.7726245'},{lon:'-122.2285543',lat:'37.6423178'},{lon:'-121.62331200000001',lat:'37.85952'},{lon:'-121.803364',lat:'37.800963'},{lon:'-121.81291090000002',lat:'37.9104751'}];
AddRaidPolygon(raid_mapLayer, V14Bay,"#009D57","14 Bay");

var V17Bay = [{lon:'-121.81395500000002',lat:'38.109953'},{lon:'-122.170528',lat:'38.001537'},{lon:'-122.2933988',lat:'37.9808551'},{lon:'-122.13547030000001',lat:'37.8974591'},{lon:'-121.808866',lat:'37.999019700000005'},{lon:'-121.81395500000002',lat:'38.109953'}];
AddRaidPolygon(raid_mapLayer, V17Bay,"#7C3592","17 Bay");

var V15Bay = [{lon:'-122.4520135',lat:'37.9473165'},{lon:'-122.36382450000002',lat:'37.7726245'},{lon:'-122.0348148',lat:'37.8502168'},{lon:'-122.2933988',lat:'37.9808551'},{lon:'-122.4520135',lat:'37.9473165'}];
AddRaidPolygon(raid_mapLayer, V15Bay,"#A61B4A","15 Bay");

var V16Bay = [{lon:'-122.13547030000001',lat:'37.8974591'},{lon:'-122.0348148',lat:'37.8502168'},{lon:'-121.81291090000002',lat:'37.9104751'},{lon:'-121.808866',lat:'37.999019700000005'},{lon:'-122.13547030000001',lat:'37.8974591'}];
AddRaidPolygon(raid_mapLayer, V16Bay,"#9FC3FF","16 Bay");

var V18Bay = [{lon:'-122.6967429',lat:'38.1457369'},{lon:'-122.4520135',lat:'37.9473165'},{lon:'-122.170528',lat:'38.001537'},{lon:'-122.177589',lat:'38.154385'},{lon:'-122.35411000000002',lat:'38.096062999999994'},{lon:'-122.35411000000002',lat:'38.251486'},{lon:'-122.6967429',lat:'38.1457369'}];
AddRaidPolygon(raid_mapLayer, V18Bay,"#DB4436","18 Bay");

var V19Bay = [{lon:'-122.908388',lat:'38.084948000000004'},{lon:'-122.85830129999998',lat:'37.982459'},{lon:'-122.4520135',lat:'37.9473165'},{lon:'-122.6967429',lat:'38.1457369'},{lon:'-122.908388',lat:'38.084948000000004'}];
AddRaidPolygon(raid_mapLayer, V19Bay,"#EE9C96","19 Bay");

var V20Bay = [{lon:'-122.82534239999998',lat:'37.90665'},{lon:'-122.5270723',lat:'37.8003666'},{lon:'-122.4160096',lat:'37.8453182'},{lon:'-122.4520135',lat:'37.9473165'},{lon:'-122.85830129999998',lat:'37.982459'},{lon:'-122.82534239999998',lat:'37.90665'}];
AddRaidPolygon(raid_mapLayer, V20Bay,"#FAD199","20 Bay");

var VLA1 = [{lon:'-93.1887817',lat:'32.5537586'},{lon:'-93.0267334',lat:'32.5514435'},{lon:'-93.0487061',lat:'33.031693'},{lon:'-93.8995356',lat:'33.01674289999999'},{lon:'-93.8974',lat:'32.444885'},{lon:'-93.5762597',lat:'32.5407511'},{lon:'-93.3206177',lat:'32.575749'},{lon:'-93.1887817',lat:'32.5537586'}];
AddRaidPolygon(raid_mapLayer, VLA1,"#FF0000","LA 1");

var VLA2 = [{lon:'-93.0267334',lat:'32.5514435'},{lon:'-92.9278564',lat:'32.5537586'},{lon:'-92.8125',lat:'32.5352362'},{lon:'-92.7328491',lat:'32.5352362'},{lon:'-92.6669312',lat:'32.5259736'},{lon:'-92.5213623',lat:'32.519026'},{lon:'-92.37854',lat:'32.505129200000006'},{lon:'-92.326355',lat:'32.49817999999999'},{lon:'-92.3483277',lat:'33.0524144'},{lon:'-93.0487061',lat:'33.031693'},{lon:'-93.0267334',lat:'32.5514435'}];
AddRaidPolygon(raid_mapLayer, VLA2,"#FF8800","LA 2");

var VLA3 = [{lon:'-92.3291016',lat:'32.51671'},{lon:'-92.142334',lat:'32.52134199999999'},{lon:'-92.0187378',lat:'32.5097617'},{lon:'-91.7770613',lat:'32.4715803'},{lon:'-91.6836639',lat:'32.4611522'},{lon:'-91.683677',lat:'33.07547720000001'},{lon:'-92.3483277',lat:'33.0524144'},{lon:'-92.3291016',lat:'32.51671'}];
AddRaidPolygon(raid_mapLayer, VLA3,"#EEFF00","LA 3");

var VLA5 = [{lon:'-92.3291016',lat:'32.51671'},{lon:'-92.2988892',lat:'31.77721250000001'},{lon:'-91.6809082',lat:'31.742182800000002'},{lon:'-91.6795349',lat:'32.4564735'},{lon:'-92.0187378',lat:'32.5097617'},{lon:'-92.142334',lat:'32.52134199999999'},{lon:'-92.26593020000001',lat:'32.51671000000001'},{lon:'-92.3291016',lat:'32.51671'}];
AddRaidPolygon(raid_mapLayer, VLA5,"#66FF00","LA 5");

var VLA6 = [{lon:'-93.0748161',lat:'31.8204271'},{lon:'-92.8455205',lat:'31.8560091'},{lon:'-92.7218628',lat:'31.90554150000001'},{lon:'-92.6147461',lat:'31.90554150000001'},{lon:'-92.4911499',lat:'31.87989'},{lon:'-92.4005127',lat:'31.83731600000001'},{lon:'-92.3036956',lat:'31.7848006'},{lon:'-92.3291016',lat:'32.51671'},{lon:'-92.8125',lat:'32.5352362'},{lon:'-93.0816834',lat:'32.5537507'},{lon:'-93.0748161',lat:'31.8204271'}];
AddRaidPolygon(raid_mapLayer, VLA6,"#00FF22","LA 6");

var VLA7 = [{lon:'-93.9138474',lat:'32.4240205'},{lon:'-93.9092974',lat:'31.906748900000004'},{lon:'-93.8149762',lat:'31.707174900000002'},{lon:'-93.4194881',lat:'31.9498545'},{lon:'-93.2492086',lat:'31.8332612'},{lon:'-93.0748161',lat:'31.8204271'},{lon:'-93.0816834',lat:'32.5537507'},{lon:'-93.1887817',lat:'32.5537586'},{lon:'-93.3206177',lat:'32.575749'},{lon:'-93.5817379',lat:'32.5361129'},{lon:'-93.9138474',lat:'32.4240205'}];
AddRaidPolygon(raid_mapLayer, VLA7,"#00FFAA","LA 7");

var VLA8 = [{lon:'-93.8095093',lat:'31.7118129'},{lon:'-93.6145019',lat:'31.264465600000005'},{lon:'-92.6531982',lat:'31.3231404'},{lon:'-92.6559448',lat:'31.494261799999993'},{lon:'-92.1713408',lat:'31.4839415'},{lon:'-92.179576',lat:'31.770354'},{lon:'-92.2988892',lat:'31.77721250000001'},{lon:'-92.3675537',lat:'31.8192307'},{lon:'-92.4856567',lat:'31.8775576'},{lon:'-92.6147461',lat:'31.90554150000001'},{lon:'-92.7218628',lat:'31.90554150000001'},{lon:'-92.9278564',lat:'31.8192307'},{lon:'-93.1256104',lat:'31.814563000000003'},{lon:'-93.2437134',lat:'31.8378994'},{lon:'-93.4140015',lat:'31.954492700000003'},{lon:'-93.8095093',lat:'31.7118129'}];
AddRaidPolygon(raid_mapLayer, VLA8,"#00CCFF","LA 8");

var VLA9 = [{lon:'-93.614468',lat:'31.2621067'},{lon:'-93.4055604',lat:'31.0137268'},{lon:'-93.2326335',lat:'30.932900799999995'},{lon:'-93.0919694',lat:'30.8344951'},{lon:'-92.25646730000001',lat:'30.8566625'},{lon:'-92.24030310000002',lat:'31.177401800000005'},{lon:'-92.6350883',lat:'31.1716854'},{lon:'-92.65318830000001',lat:'31.320781'},{lon:'-93.614468',lat:'31.2621067'}];
AddRaidPolygon(raid_mapLayer, VLA9,"#0044FF","LA 9");

var VLA10 = [{lon:'-92.179576',lat:'31.770354'},{lon:'-92.1713408',lat:'31.4839415'},{lon:'-92.24030270000002',lat:'31.179761299999996'},{lon:'-92.25646730000001',lat:'30.8566625'},{lon:'-91.4897677',lat:'30.8552952'},{lon:'-91.1814387',lat:'31.614383299999997'},{lon:'-90.9914931',lat:'31.78732950000001'},{lon:'-92.179576',lat:'31.770354'}];
AddRaidPolygon(raid_mapLayer, VLA10,"#4400FF","LA 10");

var VLA4 = [{lon:'-91.683677',lat:'33.07547720000001'},{lon:'-91.7193604',lat:'31.751525300000004'},{lon:'-90.9914931',lat:'31.78732950000001'},{lon:'-90.8454481',lat:'32.155365'},{lon:'-90.8540429',lat:'32.886983'},{lon:'-91.0301579',lat:'33.07435340000001'},{lon:'-91.683677',lat:'33.07547720000001'}];
AddRaidPolygon(raid_mapLayer, VLA4,"#CC00FF","LA 4");

var VB1 = [{lon:'-76.549725',lat:'39.197233'},{lon:'-76.529858',lat:'39.209623'},{lon:'-76.529388',lat:'39.30269'},{lon:'-76.661997',lat:'39.302026'},{lon:'-76.661637',lat:'39.256042'},{lon:'-76.549725',lat:'39.197233'}];
AddRaidPolygon(raid_mapLayer, VB1,"#F4EB37","B1");

var VB2 = [{lon:'-76.5324206',lat:'39.4239717'},{lon:'-76.5969369',lat:'39.4237291'},{lon:'-76.59599300000002',lat:'39.301993'},{lon:'-76.529388',lat:'39.30215900000001'},{lon:'-76.5324206',lat:'39.4239717'}];
AddRaidPolygon(raid_mapLayer, VB2,"#000000","B2");

var VB3 = [{lon:'-76.5969369',lat:'39.4237291'},{lon:'-76.663971',lat:'39.421873'},{lon:'-76.661911',lat:'39.301495'},{lon:'-76.59522100000001',lat:'39.30205900000001'},{lon:'-76.5969369',lat:'39.4237291'}];
AddRaidPolygon(raid_mapLayer, VB3,"#3F5BA9","B3");

var VB4 = [{lon:'-76.662083',lat:'39.372161000000006'},{lon:'-76.711294',lat:'39.371957'},{lon:'-76.711161',lat:'39.2730541'},{lon:'-76.660864',lat:'39.25584299999999'},{lon:'-76.662083',lat:'39.372161000000006'}];
AddRaidPolygon(raid_mapLayer, VB4,"#DB4436","B4");

var VB5 = [{lon:'-76.5324206',lat:'39.4239717'},{lon:'-76.529858',lat:'39.209623'},{lon:'-76.4727405',lat:'39.193693'},{lon:'-76.269069',lat:'38.999764'},{lon:'-76.2723983',lat:'39.2988868'},{lon:'-76.356168',lat:'39.29889500000001'},{lon:'-76.42148700000001',lat:'39.426094'},{lon:'-76.5324206',lat:'39.4239717'}];
AddRaidPolygon(raid_mapLayer, VB5,"#7C3592","B5");

var VB6 = [{lon:'-76.666031',lat:'39.471185'},{lon:'-76.8306759',lat:'39.470613900000004'},{lon:'-76.8287359',lat:'39.4032335'},{lon:'-76.77033260000002',lat:'39.29774870000001'},{lon:'-76.711161',lat:'39.2730541'},{lon:'-76.711294',lat:'39.371957'},{lon:'-76.662426',lat:'39.372128'},{lon:'-76.666031',lat:'39.471185'}];
AddRaidPolygon(raid_mapLayer, VB6,"#F8971B","B6");

var VB7 = [{lon:'-76.2723983',lat:'39.2988868'},{lon:'-76.269069',lat:'39.49557'},{lon:'-76.4633725',lat:'39.5188504'},{lon:'-76.356168',lat:'39.29889500000001'},{lon:'-76.2723983',lat:'39.2988868'}];
AddRaidPolygon(raid_mapLayer, VB7,"#795046","B7");

var VB8 = [{lon:'-76.46827700000001',lat:'39.192884'},{lon:'-76.529858',lat:'39.209623'},{lon:'-76.549725',lat:'39.197233'},{lon:'-76.641271',lat:'39.247346'},{lon:'-76.8332159',lat:'39.0995999'},{lon:'-76.830351',lat:'39.067857'},{lon:'-76.269069',lat:'38.999764'},{lon:'-76.46827700000001',lat:'39.192884'}];
AddRaidPolygon(raid_mapLayer, VB8,"#0BA9CC","B8");

var VB9 = [{lon:'-76.830826',lat:'39.322081'},{lon:'-76.8332159',lat:'39.0995999'},{lon:'-76.641271',lat:'39.247346'},{lon:'-76.77033260000002',lat:'39.29774870000001'},{lon:'-76.8287359',lat:'39.4032335'},{lon:'-76.830826',lat:'39.322081'}];
AddRaidPolygon(raid_mapLayer, VB9,"#A61B4A","B9");

var VB10 = [{lon:'-76.829275',lat:'39.561706'},{lon:'-76.8306759',lat:'39.470613900000004'},{lon:'-76.666031',lat:'39.471185'},{lon:'-76.663971',lat:'39.421873'},{lon:'-76.414719',lat:'39.425586'},{lon:'-76.4633725',lat:'39.5188504'},{lon:'-76.829275',lat:'39.561706'}];
AddRaidPolygon(raid_mapLayer, VB10,"#000000","B10");

var V01Washington = [{lon:'-77.0526813',lat:'38.8514964'},{lon:'-77.1253967',lat:'38.75943779999999'},{lon:'-76.9475555',lat:'38.7390884'},{lon:'-76.9943164',lat:'38.8504269'},{lon:'-77.0526813',lat:'38.8514964'}];
AddRaidPolygon(raid_mapLayer, V01Washington,"#FF0000","01 Washington");

var V02Washington = [{lon:'-76.9943164',lat:'38.8504269'},{lon:'-76.9475555',lat:'38.7390884'},{lon:'-76.81946860000001',lat:'38.724448300000006'},{lon:'-76.8198395',lat:'38.8477296'},{lon:'-76.9387147',lat:'38.87606650000001'},{lon:'-76.9943164',lat:'38.8504269'}];
AddRaidPolygon(raid_mapLayer, V02Washington,"#FF8800","02 Washington");

var V03Washington = [{lon:'-76.9387147',lat:'38.87606650000001'},{lon:'-76.8198395',lat:'38.8477296'},{lon:'-76.8218994',lat:'38.9327072'},{lon:'-76.9400878',lat:'38.9289585'},{lon:'-76.9387147',lat:'38.87606650000001'}];
AddRaidPolygon(raid_mapLayer, V03Washington,"#EEFF00","03 Washington");

var V04Washington = [{lon:'-76.8218994',lat:'38.9327072'},{lon:'-76.8183961',lat:'39.0637783'},{lon:'-76.8599951',lat:'39.069219700000005'},{lon:'-76.964035',lat:'38.948195399999996'},{lon:'-76.9400878',lat:'38.9289585'},{lon:'-76.8218994',lat:'38.9327072'}];
AddRaidPolygon(raid_mapLayer, V04Washington,"#66FF00","04 Washington");

var V05Washington = [{lon:'-76.964035',lat:'38.948195399999996'},{lon:'-76.8599951',lat:'39.069219700000005'},{lon:'-77.0927797',lat:'39.0948'},{lon:'-77.0471775',lat:'38.9641964'},{lon:'-76.9881434',lat:'38.9631284'},{lon:'-76.964035',lat:'38.948195399999996'}];
AddRaidPolygon(raid_mapLayer, V05Washington,"#00FF22","05 Washington");

var V06Washington = [{lon:'-77.0471775',lat:'38.9641964'},{lon:'-77.0927797',lat:'39.0948'},{lon:'-77.1963936',lat:'39.105456100000005'},{lon:'-77.1981811',lat:'39.0442527'},{lon:'-77.080128',lat:'38.9439134'},{lon:'-77.0471775',lat:'38.9641964'}];
AddRaidPolygon(raid_mapLayer, V06Washington,"#00FFAA","06 Washington");

var V07Washington = [{lon:'-77.0471775',lat:'38.9641964'},{lon:'-77.0972941',lat:'38.9326975'},{lon:'-77.0979821',lat:'38.876627'},{lon:'-77.0526813',lat:'38.8514964'},{lon:'-76.9888384',lat:'38.8514942'},{lon:'-76.9387147',lat:'38.87606650000001'},{lon:'-76.9400878',lat:'38.9289585'},{lon:'-76.9881434',lat:'38.9631284'},{lon:'-77.0471775',lat:'38.9641964'}];
AddRaidPolygon(raid_mapLayer, V07Washington,"#00CCFF","07 Washington");

var V08Washington = [{lon:'-77.080128',lat:'38.9439134'},{lon:'-77.1981811',lat:'39.0442527'},{lon:'-77.1988678',lat:'38.952467399999996'},{lon:'-77.0979309',lat:'38.908133'},{lon:'-77.0972941',lat:'38.9326975'},{lon:'-77.080128',lat:'38.9439134'}];
AddRaidPolygon(raid_mapLayer, V08Washington,"#0044FF","08 Washington");

var V09Washington = [{lon:'-77.2016144',lat:'38.8391728'},{lon:'-77.2017631',lat:'38.766325099999996'},{lon:'-77.1253967',lat:'38.75943779999999'},{lon:'-77.0526813',lat:'38.8514964'},{lon:'-77.0979821',lat:'38.876627'},{lon:'-77.2016144',lat:'38.8391728'}];
AddRaidPolygon(raid_mapLayer, V09Washington,"#4400FF","09 Washington");

var V10Washington = [{lon:'-77.0979309',lat:'38.908133'},{lon:'-77.1988678',lat:'38.952467399999996'},{lon:'-77.2016144',lat:'38.8391728'},{lon:'-77.0979821',lat:'38.876627'},{lon:'-77.0993554',lat:'38.8926618'},{lon:'-77.0979309',lat:'38.908133'}];
AddRaidPolygon(raid_mapLayer, V10Washington,"#CC00FF","10 Washington");

var VSouthernSwamps = [{lon:'-75.2419281',lat:'39.7409864'},{lon:'-75.4204559',lat:'39.6279037'},{lon:'-75.5097198',lat:'39.6046301'},{lon:'-75.5330658',lat:'39.5490593'},{lon:'-75.5461121',lat:'39.4780756'},{lon:'-75.526886',lat:'39.45263090000001'},{lon:'-75.298233',lat:'39.291797'},{lon:'-75.13800680000001',lat:'39.17812179999999'},{lon:'-74.9460127',lat:'39.1822935'},{lon:'-74.8237609',lat:'39.3226124'},{lon:'-74.8937988',lat:'39.45263090000001'},{lon:'-75.0743866',lat:'39.5839947'},{lon:'-75.2419281',lat:'39.7409864'}];
AddRaidPolygon(raid_mapLayer, VSouthernSwamps,"#FF0000","Southern Swamps");

var VPineBarrens = [{lon:'-74.6438439',lat:'39.9771165'},{lon:'-74.867002',lat:'39.7536552'},{lon:'-74.6101995',lat:'39.5246995'},{lon:'-74.3149433',lat:'39.6992609'},{lon:'-74.3870404',lat:'39.978168800000006'},{lon:'-74.6438439',lat:'39.9771165'}];
AddRaidPolygon(raid_mapLayer, VPineBarrens,"#EEFF00","Pine Barrens");

var VThePiedmont = [{lon:'-75.168457',lat:'40.6337567'},{lon:'-75.1677704',lat:'40.57432639999999'},{lon:'-75.1121521',lat:'40.58423510000001'},{lon:'-75.06271360000001',lat:'40.5560696'},{lon:'-75.04280090000002',lat:'40.4270875'},{lon:'-74.9473572',lat:'40.4030392'},{lon:'-74.8738861',lat:'40.3418341'},{lon:'-74.7633362',lat:'40.41611'},{lon:'-74.8086548',lat:'40.473591400000004'},{lon:'-74.8951721',lat:'40.4897818'},{lon:'-74.9398041',lat:'40.6040481'},{lon:'-75.0682068',lat:'40.6478245'},{lon:'-75.168457',lat:'40.6337567'}];
AddRaidPolygon(raid_mapLayer, VThePiedmont,"#00FF22","The Piedmont");

var VCrystalLake = [{lon:'-74.8611829',lat:'41.201130600000006'},{lon:'-74.9682992',lat:'41.07753929999999'},{lon:'-75.1111209',lat:'40.97341819999999'},{lon:'-75.0664891',lat:'40.938674600000006'},{lon:'-74.7815323',lat:'40.9490477'},{lon:'-74.8117446',lat:'41.06149150000001'},{lon:'-74.7760391',lat:'41.1070362'},{lon:'-74.8611829',lat:'41.201130600000006'}];
AddRaidPolygon(raid_mapLayer, VCrystalLake,"#00CCFF","Crystal Lake");

var VTheHighlands = [{lon:'-74.4179535',lat:'41.2261833'},{lon:'-74.5079041',lat:'41.1827883'},{lon:'-74.5024109',lat:'41.0953946'},{lon:'-74.3582153',lat:'41.0213551'},{lon:'-74.2971039',lat:'41.041556'},{lon:'-74.2483521',lat:'41.0493239'},{lon:'-74.1755676',lat:'41.1171246'},{lon:'-74.4179535',lat:'41.2261833'}];
AddRaidPolygon(raid_mapLayer, VTheHighlands,"#4400FF","The Highlands");


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

bootstrap_MapRaidOverlay();