Florida MapRaid Overlay

Creates polygons for MapRaid groups in a WME "MapRaid FL - http://j.mp/FL_MR Groups" layer

// ==UserScript==
// @name                Florida MapRaid Overlay
// @namespace           https://greasyfork.org/users/5252
// @description         Creates polygons for MapRaid groups in a WME "MapRaid FL - http://j.mp/FL_MR Groups" layer
// @include             https://www.waze.com/editor/*
// @include             https://www.waze.com/*/editor/*
// @include             https://editor-beta.waze.com/*
// @version             1.8
// @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

setTimeout(InitMapRaidOverlay, 1000);

function AddRaidPolygon(raidLayer,groupPoints,groupColor,groupNumber){
    
    var mro_Map = Waze.map;
    var mro_OL = OpenLayers;
    var raidGroupLabel = 'Raid Group ' + groupNumber;
    var groupName = 'RaidGroup' + groupNumber;
    
    var style = {
        strokeColor: groupColor,
        strokeOpacity: .8,
        strokeWidth: 3,
        fillColor: groupColor,
        fillOpacity: 0.15, //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 = 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 = Waze.map;
    var mro_OL = OpenLayers;

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

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

var V01TampaStPete = [{lon:'-82.7867573',lat:'28.1241444'},{lon:'-82.8698455',lat:'27.882238399999995'},{lon:'-82.720148',lat:'27.5421111'},{lon:'-82.6261139',lat:'27.5234961'},{lon:'-82.5871304',lat:'27.5002308'},{lon:'-82.558136',lat:'27.4991361'},{lon:'-82.2470856',lat:'27.575851700000005'},{lon:'-82.1372223',lat:'27.568547800000005'},{lon:'-82.2071994',lat:'28.1798422'},{lon:'-82.818342',lat:'28.173790200000003'},{lon:'-82.7867573',lat:'28.1241444'}];
AddRaidPolygon(raid_mapLayer, V01TampaStPete,"#DB4436","01 - Tampa/St Pete");

var V02Lakeland = [{lon:'-82.2071994',lat:'28.1798422'},{lon:'-82.1372223',lat:'27.568547800000005'},{lon:'-81.8756104',lat:'27.6725828'},{lon:'-81.55494690000002',lat:'27.6689341'},{lon:'-81.3729858',lat:'27.7996025'},{lon:'-81.1958313',lat:'27.8141791'},{lon:'-81.2099076',lat:'27.951042100000002'},{lon:'-81.3229106',lat:'28.121652100000002'},{lon:'-81.7507007',lat:'28.2535911'},{lon:'-81.99995840000001',lat:'28.1773519'},{lon:'-82.2071994',lat:'28.1798422'}];
AddRaidPolygon(raid_mapLayer, V02Lakeland,"#F4EB37","02 - Lakeland");

var V03PalmBay = [{lon:'-80.5144253',lat:'28.114665299999995'},{lon:'-81.3229106',lat:'28.121652100000002'},{lon:'-81.2795653',lat:'28.0564492'},{lon:'-81.2099076',lat:'27.951042100000002'},{lon:'-81.1958313',lat:'27.8141791'},{lon:'-80.8154298',lat:'27.511925500000004'},{lon:'-80.3007031',lat:'27.520146600000004'},{lon:'-80.5144253',lat:'28.114665299999995'}];
AddRaidPolygon(raid_mapLayer, V03PalmBay,"#DB4436","03 - Palm Bay");

var V04FortPierce = [{lon:'-80.3007031',lat:'27.520146600000004'},{lon:'-80.8154298',lat:'27.511925500000004'},{lon:'-81.1958313',lat:'27.8141791'},{lon:'-81.3729858',lat:'27.7996025'},{lon:'-81.55494690000002',lat:'27.6689341'},{lon:'-81.5799801',lat:'27.3606845'},{lon:'-81.0139464',lat:'27.334692500000003'},{lon:'-80.9766867',lat:'26.9218324'},{lon:'-80.5241078',lat:'26.96491'},{lon:'-80.2540774',lat:'26.956658500000003'},{lon:'-80.2378348',lat:'26.9963293'},{lon:'-80.1590907',lat:'26.996212100000005'},{lon:'-80.1371464',lat:'26.9796951'},{lon:'-80.1324122',lat:'26.9771908'},{lon:'-80.1322338',lat:'26.974638300000002'},{lon:'-80.1290515',lat:'26.9726977'},{lon:'-80.1244763',lat:'26.9668474'},{lon:'-80.1196861',lat:'26.959792199999995'},{lon:'-80.1052369',lat:'26.9488756'},{lon:'-80.0856972',lat:'26.9469007'},{lon:'-80.0784874',lat:'26.945332200000003'},{lon:'-80.0693893',lat:'26.944108'},{lon:'-80.0704193',lat:'26.9624698'},{lon:'-80.1514435',lat:'27.1935714'},{lon:'-80.3007031',lat:'27.520146600000004'}];
AddRaidPolygon(raid_mapLayer, V04FortPierce,"#3F5BA9","04 - Fort Pierce");

var V05Sarasota = [{lon:'-81.8339825',lat:'27.671822600000002'},{lon:'-81.8756104',lat:'27.6725828'},{lon:'-82.1372223',lat:'27.568547800000005'},{lon:'-82.2470856',lat:'27.575851700000005'},{lon:'-82.558136',lat:'27.4991361'},{lon:'-82.5871304',lat:'27.5002308'},{lon:'-82.6261139',lat:'27.5234961'},{lon:'-82.76824950000001',lat:'27.550894300000003'},{lon:'-82.2766303',lat:'26.706347099999995'},{lon:'-82.10495',lat:'26.779943500000005'},{lon:'-82.1255493',lat:'26.8926791'},{lon:'-82.114563',lat:'26.9343138'},{lon:'-82.0404053',lat:'26.9514531'},{lon:'-82.0101929',lat:'26.9612458'},{lon:'-81.9813538',lat:'27.0150903'},{lon:'-81.7932129',lat:'27.155698599999997'},{lon:'-81.7492676',lat:'27.2179987'},{lon:'-81.8289185',lat:'27.354692399999998'},{lon:'-81.8360424',lat:'27.662624599999997'},{lon:'-81.8339825',lat:'27.671822600000002'}];
AddRaidPolygon(raid_mapLayer, V05Sarasota,"#0BA9CC","05 - Sarasota");

var V06Swamp = [{lon:'-81.746521',lat:'26.7169404'},{lon:'-81.7090988',lat:'26.726140100000002'},{lon:'-81.691246',lat:'26.721693700000003'},{lon:'-81.6830063',lat:'26.721080400000005'},{lon:'-81.6737366',lat:'26.717707100000002'},{lon:'-81.6505623',lat:'26.7183203'},{lon:'-81.6421509',lat:'26.721387'},{lon:'-81.6085052',lat:'26.7128003'},{lon:'-81.5978622',lat:'26.713413700000004'},{lon:'-81.5794945',lat:'26.7189338'},{lon:'-81.5712547',lat:'26.712646799999995'},{lon:'-81.5551186',lat:'26.7161736'},{lon:'-81.5482521',lat:'26.7154071'},{lon:'-81.530571',lat:'26.719393600000004'},{lon:'-81.5230179',lat:'26.727519900000004'},{lon:'-81.5219879',lat:'26.7384052'},{lon:'-81.5113449',lat:'26.7449972'},{lon:'-81.4782143',lat:'26.744537299999998'},{lon:'-81.4612198',lat:'26.7546545'},{lon:'-81.4577865',lat:'26.7633913'},{lon:'-81.45504',lat:'26.7650771'},{lon:'-81.4416504',lat:'26.769522'},{lon:'-81.4262009',lat:'26.7682959'},{lon:'-81.4217377',lat:'26.7659969'},{lon:'-81.4128113',lat:'26.7650773'},{lon:'-81.4047432',lat:'26.7676829'},{lon:'-81.3928985',lat:'26.772587299999998'},{lon:'-81.3547897',lat:'26.798025499999998'},{lon:'-81.3515282',lat:'26.798178699999998'},{lon:'-81.3120461',lat:'26.7882187'},{lon:'-81.30191800000001',lat:'26.788984799999998'},{lon:'-81.2983131',lat:'26.792662499999995'},{lon:'-81.2790871',lat:'26.7931222'},{lon:'-81.2193489',lat:'26.790517199999996'},{lon:'-81.1651039',lat:'26.7834682'},{lon:'-81.117897',lat:'26.800170600000005'},{lon:'-81.0894012',lat:'26.8318832'},{lon:'-81.0842514',lat:'26.8415331'},{lon:'-81.0693169',lat:'26.8361721'},{lon:'-81.0602188',lat:'26.8231516'},{lon:'-80.9223747',lat:'26.806759'},{lon:'-80.9766867',lat:'26.9218324'},{lon:'-81.0139464',lat:'27.334692500000003'},{lon:'-81.5799801',lat:'27.3606845'},{lon:'-81.55494690000002',lat:'27.6689341'},{lon:'-81.8339825',lat:'27.671822600000002'},{lon:'-81.8360424',lat:'27.662624599999997'},{lon:'-81.8289185',lat:'27.354692399999998'},{lon:'-81.7492676',lat:'27.2179987'},{lon:'-81.7932129',lat:'27.155698599999997'},{lon:'-81.9813538',lat:'27.0150903'},{lon:'-82.0101929',lat:'26.9612458'},{lon:'-82.114563',lat:'26.9343138'},{lon:'-82.1255493',lat:'26.8926791'},{lon:'-82.10495',lat:'26.779943500000005'},{lon:'-81.7392254',lat:'26.774579599999996'},{lon:'-81.740427',lat:'26.7574902'},{lon:'-81.7521858',lat:'26.741318'},{lon:'-81.750555',lat:'26.7177071'},{lon:'-81.746521',lat:'26.7169404'}];
AddRaidPolygon(raid_mapLayer, V06Swamp,"#7C3592","06 - Swamp");

var V07BrowardPalmBeach = [{lon:'-81.117897',lat:'26.800170600000005'},{lon:'-81.0585022',lat:'26.6204522'},{lon:'-80.6896019',lat:'26.6127787'},{lon:'-80.3617287',lat:'26.6743054'},{lon:'-80.3488541',lat:'26.648379300000002'},{lon:'-80.3352928',lat:'26.63457'},{lon:'-80.2803612',lat:'26.602495400000002'},{lon:'-80.2334976',lat:'26.541851500000003'},{lon:'-80.2224255',lat:'26.513130300000004'},{lon:'-80.2215672',lat:'26.4680375'},{lon:'-80.2370167',lat:'26.409475'},{lon:'-80.236845',lat:'26.385488000000002'},{lon:'-80.253067',lat:'26.3648799'},{lon:'-80.2841807',lat:'26.3648799'},{lon:'-80.2973557',lat:'26.357535400000003'},{lon:'-80.2979994',lat:'26.189639499999995'},{lon:'-80.3670931',lat:'26.128046400000002'},{lon:'-80.3104448',lat:'26.1144831'},{lon:'-80.229249',lat:'26.0947615'},{lon:'-80.2142286',lat:'26.091080700000003'},{lon:'-80.2009463',lat:'26.0878239'},{lon:'-80.19604330000001',lat:'26.0864556'},{lon:'-80.1952815',lat:'26.086128'},{lon:'-80.1943696',lat:'26.085463099999995'},{lon:'-80.1937902',lat:'26.085386'},{lon:'-80.1928031',lat:'26.085646200000003'},{lon:'-80.1903999',lat:'26.087024099999997'},{lon:'-80.1893485',lat:'26.087187900000004'},{lon:'-80.1845527',lat:'26.0876986'},{lon:'-80.1838124',lat:'26.087583'},{lon:'-80.1840806',lat:'26.085973800000005'},{lon:'-80.1838982',lat:'26.0846248'},{lon:'-80.1843703',lat:'26.083622600000005'},{lon:'-80.1859689',lat:'26.0831408'},{lon:'-80.1863229',lat:'26.0806546'},{lon:'-80.1871276',lat:'26.080018600000002'},{lon:'-80.1875567',lat:'26.0798163'},{lon:'-80.18796440000001',lat:'26.079893400000003'},{lon:'-80.1927602',lat:'26.078207000000003'},{lon:'-80.1964939',lat:'26.0774939'},{lon:'-80.1980174',lat:'26.0766073'},{lon:'-80.1991117',lat:'26.0749305'},{lon:'-80.2011716',lat:'26.070352900000003'},{lon:'-80.2024162',lat:'26.068011'},{lon:'-80.2024055',lat:'26.067798999999997'},{lon:'-80.2020943',lat:'26.0676352'},{lon:'-80.1644576',lat:'26.0681459'},{lon:'-80.1627839',lat:'26.0673171'},{lon:'-80.1582241',lat:'26.0618911'},{lon:'-80.1567221',lat:'26.060214100000003'},{lon:'-80.1549196',lat:'26.0595587'},{lon:'-80.1514435',lat:'26.059404499999996'},{lon:'-80.1321745',lat:'26.0596744'},{lon:'-80.1288271',lat:'26.059905700000005'},{lon:'-80.1145363',lat:'26.064917400000002'},{lon:'-80.1138926',lat:'26.088430900000002'},{lon:'-80.1135492',lat:'26.093094599999997'},{lon:'-80.10397910000002',lat:'26.092400799999997'},{lon:'-80.0779724',lat:'26.250930599999997'},{lon:'-80.037117',lat:'26.5492226'},{lon:'-80.0316238',lat:'26.6130857'},{lon:'-80.0261307',lat:'26.795267400000004'},{lon:'-80.0693893',lat:'26.944108'},{lon:'-80.0784874',lat:'26.945332200000003'},{lon:'-80.0856972',lat:'26.9469007'},{lon:'-80.1052369',lat:'26.9488756'},{lon:'-80.1196861',lat:'26.959792199999995'},{lon:'-80.1244763',lat:'26.9668474'},{lon:'-80.1290515',lat:'26.9726977'},{lon:'-80.1322338',lat:'26.974638300000002'},{lon:'-80.1324122',lat:'26.9771908'},{lon:'-80.1371464',lat:'26.9796951'},{lon:'-80.1590907',lat:'26.996212100000005'},{lon:'-80.2378348',lat:'26.9963293'},{lon:'-80.2540774',lat:'26.956658500000003'},{lon:'-80.5241078',lat:'26.96491'},{lon:'-80.9766867',lat:'26.9218324'},{lon:'-80.9223747',lat:'26.806759'},{lon:'-81.0602188',lat:'26.8231516'},{lon:'-81.0693169',lat:'26.8361721'},{lon:'-81.0842514',lat:'26.8415331'},{lon:'-81.0894012',lat:'26.8318832'},{lon:'-81.117897',lat:'26.800170600000005'}];
AddRaidPolygon(raid_mapLayer, V07BrowardPalmBeach,"#DB4436","07 - Broward/Palm Beach");

var V08BrowardDade = [{lon:'-80.10397910000002',lat:'26.092400799999997'},{lon:'-80.1135492',lat:'26.093094599999997'},{lon:'-80.1145363',lat:'26.064917400000002'},{lon:'-80.1288271',lat:'26.059905700000005'},{lon:'-80.1355648',lat:'26.059674400000002'},{lon:'-80.1549196',lat:'26.0595587'},{lon:'-80.1567221',lat:'26.060214100000003'},{lon:'-80.1627839',lat:'26.0673171'},{lon:'-80.1644576',lat:'26.0681459'},{lon:'-80.2020943',lat:'26.0676352'},{lon:'-80.2024162',lat:'26.068011'},{lon:'-80.19920830000001',lat:'26.074670300000005'},{lon:'-80.1980174',lat:'26.0766073'},{lon:'-80.1964939',lat:'26.0774939'},{lon:'-80.1927602',lat:'26.078207000000003'},{lon:'-80.18796440000001',lat:'26.079893400000003'},{lon:'-80.1875567',lat:'26.0798163'},{lon:'-80.1863229',lat:'26.0806546'},{lon:'-80.1859689',lat:'26.0831408'},{lon:'-80.1843703',lat:'26.083622600000005'},{lon:'-80.1838982',lat:'26.0846248'},{lon:'-80.1840806',lat:'26.085973800000005'},{lon:'-80.1838124',lat:'26.087583'},{lon:'-80.1845527',lat:'26.0876986'},{lon:'-80.1908398',lat:'26.087004800000003'},{lon:'-80.1931143',lat:'26.085540200000004'},{lon:'-80.1948738',lat:'26.0854246'},{lon:'-80.1956463',lat:'26.086426700000004'},{lon:'-80.3156376',lat:'26.1158318'},{lon:'-80.4271746',lat:'26.142494200000005'},{lon:'-80.4412937',lat:'26.146'},{lon:'-80.4418087',lat:'26.1468475'},{lon:'-80.4427099',lat:'26.1511621'},{lon:'-80.4435253',lat:'26.1546675'},{lon:'-80.445199',lat:'26.153704499999996'},{lon:'-80.4443836',lat:'26.1497753'},{lon:'-80.4537392',lat:'26.147733500000005'},{lon:'-80.4548979',lat:'26.1443049'},{lon:'-80.4501772',lat:'26.140336800000004'},{lon:'-80.4438257',lat:'26.111400299999996'},{lon:'-80.4399204',lat:'25.941991899999998'},{lon:'-80.4856682',lat:'25.8917356'},{lon:'-80.4830933',lat:'25.810863700000002'},{lon:'-80.4836941',lat:'25.796181900000004'},{lon:'-80.4825783',lat:'25.782812200000002'},{lon:'-80.4829216',lat:'25.774851400000003'},{lon:'-80.4982853',lat:'25.762175000000003'},{lon:'-80.4953671',lat:'25.6893364'},{lon:'-80.4989719',lat:'25.6832258'},{lon:'-80.4981995',lat:'25.666903700000002'},{lon:'-80.5140781',lat:'25.667290500000004'},{lon:'-80.5133915',lat:'25.653132500000005'},{lon:'-80.5375099',lat:'25.652590900000003'},{lon:'-80.5371666',lat:'25.638121700000003'},{lon:'-80.5527878',lat:'25.6383538'},{lon:'-80.5602551',lat:'25.550495200000004'},{lon:'-80.5597401',lat:'25.495115000000002'},{lon:'-80.56317330000002',lat:'25.4917836'},{lon:'-80.5626584',lat:'25.454047500000005'},{lon:'-80.5596543',lat:'25.451335'},{lon:'-80.5594826',lat:'25.406376000000005'},{lon:'-80.5587101',lat:'25.405058'},{lon:'-80.558281',lat:'25.387069500000003'},{lon:'-80.5578518',lat:'25.3859064'},{lon:'-80.5383682',lat:'25.383696499999996'},{lon:'-80.4884577',lat:'25.3917996'},{lon:'-80.44953350000002',lat:'25.403081'},{lon:'-80.3498842',lat:'25.447924900000004'},{lon:'-80.3224184',lat:'25.448544900000005'},{lon:'-80.2492905',lat:'25.6675222'},{lon:'-80.1408005',lat:'25.6628805'},{lon:'-80.112648',lat:'25.8286337'},{lon:'-80.10397910000002',lat:'26.092400799999997'}];
AddRaidPolygon(raid_mapLayer, V08BrowardDade,"#F8971B","08 - Broward/Dade");

var V09FortMyers = [{lon:'-81.117897',lat:'26.800170600000005'},{lon:'-81.1651039',lat:'26.7834682'},{lon:'-81.2212372',lat:'26.7906704'},{lon:'-81.281662',lat:'26.7931222'},{lon:'-81.2983131',lat:'26.792662499999995'},{lon:'-81.30191800000001',lat:'26.788984799999998'},{lon:'-81.3120461',lat:'26.7882187'},{lon:'-81.3515282',lat:'26.798178699999998'},{lon:'-81.3547897',lat:'26.798025499999998'},{lon:'-81.3928985',lat:'26.772587299999998'},{lon:'-81.4047432',lat:'26.7676829'},{lon:'-81.4128113',lat:'26.7650773'},{lon:'-81.4217377',lat:'26.7659969'},{lon:'-81.4262009',lat:'26.7682959'},{lon:'-81.4416504',lat:'26.769522'},{lon:'-81.45504',lat:'26.7650771'},{lon:'-81.4577865',lat:'26.7633913'},{lon:'-81.4612198',lat:'26.7546545'},{lon:'-81.4782143',lat:'26.744537299999998'},{lon:'-81.5113449',lat:'26.7449972'},{lon:'-81.5219879',lat:'26.7384052'},{lon:'-81.5230179',lat:'26.727519900000004'},{lon:'-81.530571',lat:'26.719393600000004'},{lon:'-81.5482521',lat:'26.7154071'},{lon:'-81.5551186',lat:'26.7161736'},{lon:'-81.5712547',lat:'26.712646799999995'},{lon:'-81.5794945',lat:'26.7189338'},{lon:'-81.5978622',lat:'26.713413700000004'},{lon:'-81.6085052',lat:'26.7128003'},{lon:'-81.6421509',lat:'26.721387'},{lon:'-81.6505623',lat:'26.7183203'},{lon:'-81.6737366',lat:'26.717707100000002'},{lon:'-81.6830063',lat:'26.721080400000005'},{lon:'-81.691246',lat:'26.721693700000003'},{lon:'-81.7090988',lat:'26.726140100000002'},{lon:'-81.746521',lat:'26.7169404'},{lon:'-81.750555',lat:'26.7177071'},{lon:'-81.7521858',lat:'26.741318'},{lon:'-81.740427',lat:'26.7574902'},{lon:'-81.7392254',lat:'26.774579599999996'},{lon:'-82.10495',lat:'26.779943500000005'},{lon:'-82.2766303',lat:'26.706347099999995'},{lon:'-82.1859741',lat:'26.445984'},{lon:'-82.081604',lat:'26.3992504'},{lon:'-81.9552612',lat:'26.4164702'},{lon:'-81.864624',lat:'26.2835649'},{lon:'-81.8120956',lat:'26.0777541'},{lon:'-81.7302132',lat:'25.9063282'},{lon:'-81.7071247',lat:'25.9033944'},{lon:'-81.691246',lat:'25.9079495'},{lon:'-81.6905594',lat:'25.9283298'},{lon:'-81.66609760000001',lat:'25.929873600000008'},{lon:'-81.6482449',lat:'25.932343600000003'},{lon:'-81.64258',lat:'25.944847499999998'},{lon:'-81.6261006',lat:'25.984897299999997'},{lon:'-81.6204358',lat:'25.9878292'},{lon:'-81.5897942',lat:'25.9933068'},{lon:'-81.6042138',lat:'26.0137494'},{lon:'-81.6088487',lat:'26.046604300000002'},{lon:'-81.6792299',lat:'26.0685025'},{lon:'-81.6806032',lat:'26.1637582'},{lon:'-81.5089418',lat:'26.164374500000005'},{lon:'-81.0605621',lat:'26.6035699'},{lon:'-81.0585022',lat:'26.6204522'},{lon:'-81.117897',lat:'26.800170600000005'}];
AddRaidPolygon(raid_mapLayer, V09FortMyers,"#3F5BA9","09 - Fort Myers");
/*
var VRank5sand6s = [{lon:'-81.7296674',lat:'25.878497000000003'},{lon:'-81.6408318',lat:'25.9069473'},{lon:'-81.0385115',lat:'26.510708999999995'},{lon:'-80.6888519',lat:'26.5937767'},{lon:'-80.3610015',lat:'26.6551674'},{lon:'-80.3481425',lat:'26.629235899999998'},{lon:'-80.3345906',lat:'26.615421100000002'},{lon:'-80.2796847',lat:'26.583323700000005'},{lon:'-80.2328603',lat:'26.522660500000004'},{lon:'-80.2218049',lat:'26.4939347'},{lon:'-80.2209701',lat:'26.4488415'},{lon:'-80.2364471',lat:'26.3902855'},{lon:'-80.2362877',lat:'26.3662984'},{lon:'-80.2525177',lat:'26.345697'},{lon:'-80.2836262',lat:'26.3457099'},{lon:'-80.2968029',lat:'26.3383708'},{lon:'-80.2975328',lat:'26.17047519999999'},{lon:'-80.3666467',lat:'26.1089107'},{lon:'-80.4688794',lat:'26.1437403'},{lon:'-80.4580012',lat:'25.936477299999996'},{lon:'-80.5047236',lat:'25.8623869'},{lon:'-80.5130556',lat:'25.6793879'},{lon:'-80.5734998',lat:'25.6224763'},{lon:'-80.5846005',lat:'25.394463200000004'},{lon:'-80.5599143',lat:'25.337380800000002'},{lon:'-80.322326',lat:'25.429390699999995'},{lon:'-80.2490987',lat:'25.6483378'},{lon:'-80.1231276',lat:'25.632193799999996'},{lon:'-80.0762281',lat:'26.0547978'},{lon:'-79.9989879',lat:'26.733681'},{lon:'-80.0483166',lat:'26.9297376'},{lon:'-80.1388033',lat:'27.188998700000003'},{lon:'-80.2998873',lat:'27.5023535'},{lon:'-80.51289520000002',lat:'28.131921800000004'},{lon:'-82.8451836',lat:'28.305632799999998'},{lon:'-82.84612220000001',lat:'27.933765599999997'},{lon:'-82.8694582',lat:'27.858026'},{lon:'-82.7096808',lat:'27.5199596'},{lon:'-82.766656',lat:'27.532768800000003'},{lon:'-82.2755713',lat:'26.6880122'},{lon:'-82.1850678',lat:'26.4276106'},{lon:'-82.0807391',lat:'26.3808328'},{lon:'-81.9544074',lat:'26.3979991'},{lon:'-81.8638546',lat:'26.265055400000005'},{lon:'-81.8210579',lat:'26.0518254'},{lon:'-81.7296674',lat:'25.878497000000003'}];
AddRaidPolygon(raid_mapLayer, VRank5sand6s,"#FFDD5E","Rank 5s and 6s");

var VproblemsSheetsPolygon = [{lon:'-82.6976793',lat:'28.1108608'},{lon:'-82.7360971',lat:'27.8853242'},{lon:'-82.5822346',lat:'27.4986658'},{lon:'-82.1976132',lat:'26.7654304'},{lon:'-82.0849715',lat:'26.5322406'},{lon:'-81.8789689',lat:'26.443768700000003'},{lon:'-81.7690821',lat:'26.266585799999998'},{lon:'-81.67294600000001',lat:'26.2148639'},{lon:'-81.4944286',lat:'26.2641549'},{lon:'-81.05229970000002',lat:'26.691972600000003'},{lon:'-80.6815172',lat:'26.6871083'},{lon:'-80.3107429',lat:'26.7386731'},{lon:'-80.1761508',lat:'26.6577165'},{lon:'-80.058051',lat:'26.6650939'},{lon:'-80.1789641',lat:'27.108462499999995'},{lon:'-80.3520477',lat:'27.457502999999996'},{lon:'-80.5910771',lat:'27.9996122'},{lon:'-81.1266498',lat:'27.9971242'},{lon:'-81.719924',lat:'28.1594143'},{lon:'-81.9368922',lat:'28.110949100000003'},{lon:'-82.6976793',lat:'28.1108608'}];
AddRaidPolygon(raid_mapLayer, VproblemsSheetsPolygon,"#000000","problemsSheetsPolygon");

var Vrtcorner = [{lon:'-80.5144253',lat:'28.1509967'}];
AddRaidPolygon(raid_mapLayer, Vrtcorner,"##icon","rt corner");

var Vmc = [{lon:'-81.7282035',lat:'28.1718237'}];
AddRaidPolygon(raid_mapLayer, Vmc,"##icon","mc");
*/

    
	
    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);});
       
}