﻿function LoadGUI() {
    try {
        LoadMap();
        LoadAreas();
        LoadBuildings();
    }
    catch (err) { 
    }
}

///////////////////////////////////////////////////////////////////////////////////////////
// GLOBAL VARIABLES
///////////////////////////////////////////////////////////////////////////////////////////

var map = null;
var pinid = 0;

var latCenter = 25.80;
var lonCenter = -80.30;
var latBalHarbour = 25.893005;
var lonBalHarbour = -80.125729;
var latBrickell = 25.764106;
var lonBrickell = -80.189497;
var latCoconutGrove = 25.734925;
var lonCoconutGrove = -80.231508;
var latCoralGables = 25.704617;
var lonCoralGables = -80.271814;
var latDoral = 25.802;
var lonDoral = -80.36;
var latGoldenBeach = 25.964869;
var lonGoldenBeach = -80.122481;
var latKeyBiscayne = 25.710567;
var lonKeyBiscayne = -80.160086;
var latMiami = 25.68;
var lonMiami = -80.41;
var latMiamiBeach = 25.812339;
var lonMiamiBeach = -80.123389;
var latPinecrest = 25.6648;
var lonPinecrest = -80.31;
var latSunnyIslesBeach = 25.941270;
var lonSunnyIslesBeach = -80.125111;
var latSurfSide = 25.878103;
var lonSurfSide = -80.122158;

///////////////////////////////////////////////////////////////////////////////////////////
// MAP FUNCTIONS
///////////////////////////////////////////////////////////////////////////////////////////
function LoadMap() {
    map = new VEMap('myMap');
    map.LoadMap(new VELatLong(latCenter, lonCenter), 11, 'r', false);
    map.AttachEvent("onchangemapstyle", ShowHideAreas);
}

function DisposeMap() {
    if (map != null) {
        map.Dispose();
    }
}

function LoadAreas() {
    // LOAD AREAS
    AddArea_BalHarbour();
    AddArea_Brickell();
    AddArea_CoconutGrove();
    AddArea_CoralGables();
    AddArea_Doral();
    AddArea_GoldenBeach();
    AddArea_KeyBiscayne();
    AddArea_Miami40();
    AddArea_Miami49();
    AddArea_Miami50();
    AddArea_Miami58();
    AddArea_Miami59();
    AddArea_MiamiBeach();
    AddArea_Pinecrest();
    AddArea_SunnyIslesBeach();
    AddArea_Surfside();

    //LOAD PINS
    AddPin_BalHarbour();
    AddPin_Brickell();
    AddPin_CoconutGrove();
    AddPin_CoralGables();
    AddPin_Doral();
    AddPin_GoldenBeach();
    AddPin_KeyBiscayne();
    AddPin_Miami();
    AddPin_MiamiBeach();
    AddPin_Pinecrest();
    AddPin_SunnyIslesBeach();
    AddPin_Surfside();
}

var blnBEV = false;
function ShowHideAreas(e) {
    // BIRDSEYE OR BIRDSEYEHYBRID: HIDE LAYERS
    if ((map.GetMapStyle() == "o") || (map.GetMapStyle() == "b")) {
        map.Clear();
        blnBEV = true;
    }
    // OTHERWISE: SHOW LAYERS
    else {
        if (blnBEV == true) {
            LoadAreas();
            blnBEV = false;
        }
    }
}

///////////////////////////////////////////////////////////////////////////////////////////
// SHOW\HIDE AREA (MAP LAYERS)
///////////////////////////////////////////////////////////////////////////////////////////
function HideAreas() {
    map.Clear();
}

function ShowAreas() {
    map.Clear();
    LoadAreas();
}

///////////////////////////////////////////////////////////////////////////////////////////
// CENTER MAP ON SPECIFIC AREA
///////////////////////////////////////////////////////////////////////////////////////////
function ZoomReset() {
    map.SetCenterAndZoom(new VELatLong(latCenter, lonCenter), 11);
}

///////////////////////////////////////////////////////////////////////////////////////////
// CENTER MAP ON SPECIFIC AREA
///////////////////////////////////////////////////////////////////////////////////////////
function ZoomToArea(Area) {
    switch (Area) {
        case "BalHarbour":
            map.SetCenterAndZoom(new VELatLong(latBalHarbour, lonBalHarbour), 15);
            break;
        case "Brickell":
            map.SetCenterAndZoom(new VELatLong(latBrickell, lonBrickell), 15);
            break;
        case "CoconutGrove":
            map.SetCenterAndZoom(new VELatLong(latCoconutGrove, lonCoconutGrove), 14);
            break;
        case "CoralGables":
            map.SetCenterAndZoom(new VELatLong(latCoralGables, lonCoralGables), 13);
            break;
        case "Doral":
            map.SetCenterAndZoom(new VELatLong(latDoral, lonDoral), 13);
            break;
        case "GoldenBeach":
            map.SetCenterAndZoom(new VELatLong(latGoldenBeach, lonGoldenBeach), 15);
            break;
        case "KeyBiscayne":
            map.SetCenterAndZoom(new VELatLong(latKeyBiscayne, lonKeyBiscayne), 13);
            break;
        case "Miami":
            map.SetCenterAndZoom(new VELatLong(latMiami, lonMiami), 12);
            break;
        case "MiamiBeach":
            map.SetCenterAndZoom(new VELatLong(latMiamiBeach, lonMiamiBeach), 12);
            break;
        case "Pinecrest":
            map.SetCenterAndZoom(new VELatLong(latPinecrest, lonPinecrest), 14);
            break;
        case "SunnyIslesBeach":
            map.SetCenterAndZoom(new VELatLong(latSunnyIslesBeach, lonSunnyIslesBeach), 14);
            break;
        case "Surfside":
            map.SetCenterAndZoom(new VELatLong(latSurfSide, lonSurfSide), 15);
            break;
    }
}

///////////////////////////////////////////////////////////////////////////////////////////
// BAL HARBOUR
///////////////////////////////////////////////////////////////////////////////////////////
function AddArea_BalHarbour() {
    var shape = new VEShape(
                            VEShapeType.Polygon,
                            [
                                new VELatLong(25.89923900646528, -80.12715751105338),
                                new VELatLong(25.89897697447031, -80.12768400914501),
                                new VELatLong(25.89868846640165, -80.12809367075734),
                                new VELatLong(25.89832104867091, -80.12847426198219),
                                new VELatLong(25.89782224177883, -80.12888432609242),
                                new VELatLong(25.89742849394743, -80.12923574103958),
                                new VELatLong(25.89687697753354, -80.12955823728181),
                                new VELatLong(25.89616769641993, -80.12985181429852),
                                new VELatLong(25.89540552054977, -80.12994094766287),
                                new VELatLong(25.88677506111269, -80.12772356470005),
                                new VELatLong(25.88704711293368, -80.12370750028514),
                                new VELatLong(25.88723051342357, -80.12064764054452),
                                new VELatLong(25.89970112582264, -80.12031874695852),
                                new VELatLong(25.89923900646528, -80.12715751105338)
                            ]
                            );

    // SET SHAPE PROPERTIES
    shape.SetTitle('Bal Harbour');
    //shape.SetDescription('TEST');

    shape.HideIcon();
    shape.SetLineWidth(2);
    shape.SetLineColor(new VEColor(245, 245, 245, 1.0)); // WHITE LINE
    shape.SetFillColor(new VEColor(0, 153, 0, 0.5)); // FILL

    // INCREASE PIN UNIQUEID
    pinid++;

    // ADD SHAPE TO MAP
    map.AddShape(shape);
}

///////////////////////////////////////////////////////////////////////////////////////////
// BRICKELL
///////////////////////////////////////////////////////////////////////////////////////////
function AddArea_Brickell() {
    var shape = new VEShape(
                            VEShapeType.Polygon,
                            [
                                new VELatLong(25.77005756674968, -80.19214998530585),
                                new VELatLong(25.76998477984918, -80.19252221370559),
                                new VELatLong(25.76986457732886, -80.19285088377234),
                                new VELatLong(25.76970704203031, -80.19310415971391),
                                new VELatLong(25.76947310623377, -80.19332401952465),
                                new VELatLong(25.76834820621519, -80.19334615523113),
                                new VELatLong(25.76834634752027, -80.19217210894703),
                                new VELatLong(25.76741475621494, -80.19212308741703),
                                new VELatLong(25.76734887512933, -80.19332789966973),
                                new VELatLong(25.7654660200765, -80.19326150290824),
                                new VELatLong(25.76547206666342, -80.19222387047842),
                                new VELatLong(25.76158218279622, -80.193243295164),
                                new VELatLong(25.75866977247236, -80.19396193924128),
                                new VELatLong(25.75655975311443, -80.19075438545812),
                                new VELatLong(25.75655219576238, -80.1906155144648),
                                new VELatLong(25.75674061088051, -80.19022409197736),
                                new VELatLong(25.75698778201748, -80.18975903824989),
                                new VELatLong(25.75734852427104, -80.18941344354315),
                                new VELatLong(25.75761222595209, -80.18913011075951),
                                new VELatLong(25.75797973340513, -80.18897673048581),
                                new VELatLong(25.75822153390981, -80.18887441828126),
                                new VELatLong(25.75849137222262, -80.18882597575241),
                                new VELatLong(25.758808308289, -80.18884242209083),
                                new VELatLong(25.75921046163333, -80.18894579564955),
                                new VELatLong(25.75965057526265, -80.18908187649461),
                                new VELatLong(25.75963529820096, -80.18881480135697),
                                new VELatLong(25.76288047044222, -80.18850584480614),
                                new VELatLong(25.76545168597089, -80.18816847091873),
                                new VELatLong(25.76541935636507, -80.18796713176126),
                                new VELatLong(25.7653834420629, -80.18779571704614),
                                new VELatLong(25.76536627250152, -80.18765666104478),
                                new VELatLong(25.76535902663913, -80.18749644027051),
                                new VELatLong(25.76536154691364, -80.18732572427786),
                                new VELatLong(25.76537446329857, -80.1871018337005),
                                new VELatLong(25.76541341158921, -80.18685506977225),
                                new VELatLong(25.76544849687523, -80.18664425414735),
                                new VELatLong(25.76551642893739, -80.186387355531),
                                new VELatLong(25.76554080256793, -80.18625103951538),
                                new VELatLong(25.76558762726913, -80.18612183766524),
                                new VELatLong(25.76566241250781, -80.18596389429841),
                                new VELatLong(25.76399265917011, -80.18513309851797),
                                new VELatLong(25.76380205152243, -80.18502290882594),
                                new VELatLong(25.763756837957, -80.18482998464012),
                                new VELatLong(25.76377920206072, -80.1846169446336),
                                new VELatLong(25.76381023112525, -80.18446809610414),
                                new VELatLong(25.76388930526428, -80.18432012115423),
                                new VELatLong(25.76404430802866, -80.1842375609485),
                                new VELatLong(25.76917160701255, -80.18263378981415),
                                new VELatLong(25.76935291855094, -80.18272246464966),
                                new VELatLong(25.76949563719291, -80.18282111199771),
                                new VELatLong(25.7695796008842, -80.18299340352579),
                                new VELatLong(25.76960575331905, -80.18317531829678),
                                new VELatLong(25.76947033680814, -80.18714314526639),
                                new VELatLong(25.76944875734348, -80.1873028452209),
                                new VELatLong(25.76940843226931, -80.18743018523989),
                                new VELatLong(25.7693112408529, -80.18750312503495),
                                new VELatLong(25.76920178068335, -80.18757218316313),
                                new VELatLong(25.76588105027742, -80.18599040663551),
                                new VELatLong(25.7658404102679, -80.18613908857792),
                                new VELatLong(25.76577960763339, -80.1863514403199),
                                new VELatLong(25.76571864741775, -80.18657446077168),
                                new VELatLong(25.76566540596335, -80.18692569337586),
                                new VELatLong(25.76563153909068, -80.18726660335086),
                                new VELatLong(25.76564587314858, -80.18759771609086),
                                new VELatLong(25.76569785371663, -80.18798287553915),
                                new VELatLong(25.76575235472359, -80.18819731889164),
                                new VELatLong(25.7686581740829, -80.1879358335583),
                                new VELatLong(25.76890847472989, -80.18790837267271),
                                new VELatLong(25.76912853097356, -80.18797641573678),
                                new VELatLong(25.76932007620246, -80.18802259423302),
                                new VELatLong(25.76946231672523, -80.18815325744838),
                                new VELatLong(25.76957699179932, -80.18819803657766),
                                new VELatLong(25.76964346529378, -80.18825261092147),
                                new VELatLong(25.7697379770646, -80.18836105988831),
                                new VELatLong(25.76977467831042, -80.1884791290597),
                                new VELatLong(25.76976317780793, -80.18860699321192),
                                new VELatLong(25.76962045656263, -80.18915937775992),
                                new VELatLong(25.76959256644837, -80.189745870754),
                                new VELatLong(25.76964422628475, -80.19015237693745),
                                new VELatLong(25.77005201383585, -80.19182477693033),
                                new VELatLong(25.77005756674968, -80.19214998530585)
                            ]
                            );

    // SET SHAPE PROPERTIES
    shape.SetTitle('Brickell');
    //shape.SetDescription('TEST');

    shape.HideIcon();
    shape.SetLineWidth(2);
    shape.SetLineColor(new VEColor(245, 245, 245, 1.0)); // WHITE LINE
    shape.SetFillColor(new VEColor(51, 255, 0, 0.5)); // FILL

    // INCREASE PIN UNIQUEID
    pinid++;

    // ADD SHAPE TO MAP
    map.AddShape(shape);
}

///////////////////////////////////////////////////////////////////////////////////////////
// COCONUT GROVE
///////////////////////////////////////////////////////////////////////////////////////////
function AddArea_CoconutGrove() {
    var shape = new VEShape(
                            VEShapeType.Polygon,
                            [
                                new VELatLong(25.72515187107242, -80.25932327310868),
                                new VELatLong(25.72505492246887, -80.26162316101303),
                                new VELatLong(25.71192778855298, -80.26104616744296),
                                new VELatLong(25.71208862388989, -80.24876618562057),
                                new VELatLong(25.72678696344621, -80.23757702123049),
                                new VELatLong(25.72380038440942, -80.2341679844826),
                                new VELatLong(25.73273450591365, -80.21888603349535),
                                new VELatLong(25.73747532454164, -80.21310914777762),
                                new VELatLong(25.74813350608769, -80.20255480337991),
                                new VELatLong(25.7502145948324, -80.20390721607244),
                                new VELatLong(25.74988258285588, -80.20899392917275),
                                new VELatLong(25.74918630840957, -80.21200929539033),
                                new VELatLong(25.74566596894341, -80.22168100576566),
                                new VELatLong(25.73981229507144, -80.23783305270634),
                                new VELatLong(25.73511978034328, -80.25058566594926),
                                new VELatLong(25.73262601254863, -80.25386618465987),
                                new VELatLong(25.73055068023298, -80.25669212185653),
                                new VELatLong(25.73046709172104, -80.25575873978241),
                                new VELatLong(25.72759116819304, -80.25562546343511),
                                new VELatLong(25.727364847946, -80.25931421579954),
                                new VELatLong(25.72515187107242, -80.25932327310868)
                            ]
                            );

    // SET SHAPE PROPERTIES
    shape.SetTitle('Coconut Grove');
    //shape.SetDescription('TEST');

    shape.HideIcon();
    shape.SetLineWidth(2);
    shape.SetLineColor(new VEColor(245, 245, 245, 1.0)); // WHITE LINE
    shape.SetFillColor(new VEColor(204, 0, 153, 0.5)); // FILL

    // INCREASE PIN UNIQUEID
    pinid++;

    // ADD SHAPE TO MAP
    map.AddShape(shape);
}

///////////////////////////////////////////////////////////////////////////////////////////
// CORAL GABLES
///////////////////////////////////////////////////////////////////////////////////////////
function AddArea_CoralGables() {
    var shape = new VEShape(
                            VEShapeType.Polygon,
                            [
                                new VELatLong(25.76346480208913, -80.28776101302245),
                                new VELatLong(25.70462067218035, -80.28522767680605),
                                new VELatLong(25.70515352330222, -80.26879040049575),
                                new VELatLong(25.69319173539489, -80.26826131197396),
                                new VELatLong(25.69018006534463, -80.26982356470657),
                                new VELatLong(25.68953333002772, -80.28473456030963),
                                new VELatLong(25.67011491033584, -80.28410544087437),
                                new VELatLong(25.6688204498617, -80.28344009183415),
                                new VELatLong(25.66603689125869, -80.27945607631853),
                                new VELatLong(25.66450333295441, -80.28045770370049),
                                new VELatLong(25.66381984640559, -80.28187474623979),
                                new VELatLong(25.66362207748831, -80.28367720687918),
                                new VELatLong(25.66491811631318, -80.28414325725527),
                                new VELatLong(25.66490588645519, -80.2899933054947),
                                new VELatLong(25.66254574818575, -80.28966505104069),
                                new VELatLong(25.65999404662028, -80.28772551368786),
                                new VELatLong(25.66019237765768, -80.28401400522461),
                                new VELatLong(25.65594864230006, -80.28382012631053),
                                new VELatLong(25.65255307838236, -80.28535185884792),
                                new VELatLong(25.65266725443644, -80.28329093896821),
                                new VELatLong(25.64539084048878, -80.28322925347983),
                                new VELatLong(25.64507676823709, -80.29008231041907),
                                new VELatLong(25.64402770648503, -80.29028580197574),
                                new VELatLong(25.63960487922609, -80.2938372039726),
                                new VELatLong(25.64012593767296, -80.29496028132229),
                                new VELatLong(25.63741181904927, -80.29731401455859),
                                new VELatLong(25.63729066828975, -80.30130161882839),
                                new VELatLong(25.63369696727396, -80.30108690504646),
                                new VELatLong(25.63377576824869, -80.29329754771737),
                                new VELatLong(25.63039830879295, -80.29270350537932),
                                new VELatLong(25.63041249197926, -80.28601120192242),
                                new VELatLong(25.63341785405582, -80.28493665971645),
                                new VELatLong(25.63334545116047, -80.28364723474982),
                                new VELatLong(25.62611109697305, -80.28118333224415),
                                new VELatLong(25.63482056047614, -80.2754447858506),
                                new VELatLong(25.63512996863206, -80.27001507265167),
                                new VELatLong(25.6401708424755, -80.2703568401147),
                                new VELatLong(25.65006143509487, -80.26680206736306),
                                new VELatLong(25.65208949788721, -80.26564055031675),
                                new VELatLong(25.65613929122062, -80.26484146373254),
                                new VELatLong(25.67777690204619, -80.25515160240296),
                                new VELatLong(25.69837907352734, -80.24497211501208),
                                new VELatLong(25.70416445076072, -80.24552217164678),
                                new VELatLong(25.70766675333192, -80.24606618408656),
                                new VELatLong(25.71052643773763, -80.24856127877517),
                                new VELatLong(25.71204788880327, -80.24874542324994),
                                new VELatLong(25.71189793470788, -80.2610571117721),
                                new VELatLong(25.72510300615046, -80.2616644137898),
                                new VELatLong(25.72517474079826, -80.25940362222219),
                                new VELatLong(25.7274364073333, -80.25939127727229),
                                new VELatLong(25.72757884515524, -80.25564693082231),
                                new VELatLong(25.73052845424024, -80.25581503610842),
                                new VELatLong(25.73045178562537, -80.25838790823585),
                                new VELatLong(25.73490602894999, -80.25847920624061),
                                new VELatLong(25.73899216852233, -80.25816122257584),
                                new VELatLong(25.73904591834828, -80.25626303772965),
                                new VELatLong(25.74053477877433, -80.25624898290495),
                                new VELatLong(25.74269898013603, -80.25633028239524),
                                new VELatLong(25.74276998854001, -80.25433295230192),
                                new VELatLong(25.76015822230279, -80.25493408357085),
                                new VELatLong(25.76474770273659, -80.25508854479934),
                                new VELatLong(25.77028696246284, -80.25530164446208),
                                new VELatLong(25.770200788446, -80.25601433833259),
                                new VELatLong(25.76967283908279, -80.25723205738294),
                                new VELatLong(25.76880767538778, -80.25796022550995),
                                new VELatLong(25.76585054036396, -80.25793621665167),
                                new VELatLong(25.76457673234842, -80.25911303956755),
                                new VELatLong(25.76453949656625, -80.26087467442517),
                                new VELatLong(25.75656464614218, -80.26047690992097),
                                new VELatLong(25.75773832549812, -80.26708641016434),
                                new VELatLong(25.75735280224077, -80.26704791283399),
                                new VELatLong(25.75708158789232, -80.27443858139296),
                                new VELatLong(25.76404913584076, -80.27397966584708),
                                new VELatLong(25.76346480208913, -80.28776101302245)
                            ]
                            );

    // SET SHAPE PROPERTIES
    shape.SetTitle('Coral Gables');
    //shape.SetDescription('TEST');

    shape.HideIcon();
    shape.SetLineWidth(2);
    shape.SetLineColor(new VEColor(245, 245, 245, 1.0)); // WHITE LINE
    shape.SetFillColor(new VEColor(178, 34, 34, 0.5)); // FILL

    // INCREASE PIN UNIQUEID
    pinid++;

    // ADD SHAPE TO MAP
    map.AddShape(shape);
} 

///////////////////////////////////////////////////////////////////////////////////////////
// DORAL
///////////////////////////////////////////////////////////////////////////////////////////
function AddArea_Doral() {
    var shape = new VEShape(
                            VEShapeType.Polygon,
                            [
                                new VELatLong(25.84031782900562, -80.38650381279975),
                                new VELatLong(25.78275456413856, -80.38511554494814),
                                new VELatLong(25.78256051919829, -80.32079310483385),
                                new VELatLong(25.82616655511519, -80.32173195196482),
                                new VELatLong(25.82636180189979, -80.36985778746653),
                                new VELatLong(25.84058197441727, -80.37017867168672),
                                new VELatLong(25.84031782900562, -80.38650381279975)
                            ]
                            );
    
    // SET SHAPE PROPERTIES
    shape.SetTitle('City of Doral');
    //shape.SetDescription('TEST');

    shape.HideIcon();
    shape.SetLineWidth(2);
    shape.SetLineColor(new VEColor(245, 245, 245, 1.0)); // WHITE LINE
    shape.SetFillColor(new VEColor(51, 0, 255, 0.5)); // FILL
    
    // INCREASE PIN UNIQUEID
    pinid++;
    
    // ADD SHAPE TO MAP
    map.AddShape(shape);
}

///////////////////////////////////////////////////////////////////////////////////////////
// GOLDEN BEACH
///////////////////////////////////////////////////////////////////////////////////////////
function AddArea_GoldenBeach() {
    var shape = new VEShape(
                            VEShapeType.Polygon,
                            [
                                new VELatLong(25.97506968381434, -80.12266113412805),
                                new VELatLong(25.95694610704197, -80.12460666675082),
                                new VELatLong(25.95698842451535, -80.11971808454035),
                                new VELatLong(25.95649949185979, -80.11815472270229),
                                new VELatLong(25.97183359001657, -80.11764772895843),
                                new VELatLong(25.97495696515675, -80.11775810186823),
                                new VELatLong(25.97506968381434, -80.12266113412805)
                            ]
                            );

    // SET SHAPE PROPERTIES
    shape.SetTitle('Golden Beach');
    //shape.SetDescription('TEST');

    shape.HideIcon();
    shape.SetLineWidth(2);
    shape.SetLineColor(new VEColor(245, 245, 245, 1.0)); // WHITE LINE
    shape.SetFillColor(new VEColor(0, 153, 0, 0.5)); // FILL

    // INCREASE PIN UNIQUEID
    pinid++;

    // ADD SHAPE TO MAP
    map.AddShape(shape);
}

///////////////////////////////////////////////////////////////////////////////////////////
// KEY BISCAYNE
///////////////////////////////////////////////////////////////////////////////////////////
function AddArea_KeyBiscayne() {
    var shape = new VEShape(
                            VEShapeType.Polygon,
                            [
                                new VELatLong(25.74548308912026, -80.19857187564722),
                                new VELatLong(25.74550724109396, -80.17937730543025),
                                new VELatLong(25.74338814416102, -80.17427699068722),
                                new VELatLong(25.73608487572792, -80.16707595214535),
                                new VELatLong(25.73361085741627, -80.16732894315783),
                                new VELatLong(25.73208011146551, -80.16745445457906),
                                new VELatLong(25.73067118001163, -80.16471381512493),
                                new VELatLong(25.73055608500523, -80.16262882725496),
                                new VELatLong(25.73161733674581, -80.16093750806533),
                                new VELatLong(25.72750432972234, -80.15728129893454),
                                new VELatLong(25.7262093780015, -80.15871129364554),
                                new VELatLong(25.7230401705403, -80.15597141803985),
                                new VELatLong(25.71516720431568, -80.16467059878471),
                                new VELatLong(25.71282260888447, -80.16505410003823),
                                new VELatLong(25.71081581923552, -80.17674591165743),
                                new VELatLong(25.7068353733555, -80.17685882771409),
                                new VELatLong(25.70614256934561, -80.16997124860085),
                                new VELatLong(25.70088319728056, -80.16839558942226),
                                new VELatLong(25.69491895828745, -80.17499202728504),
                                new VELatLong(25.68523781417622, -80.17922920122966),
                                new VELatLong(25.67339807580473, -80.16352136990344),
                                new VELatLong(25.66319497440136, -80.15897262558532),
                                new VELatLong(25.66645130744854, -80.15031850681545),
                                new VELatLong(25.67283278851116, -80.15110108958993),
                                new VELatLong(25.69552878403456, -80.15462816008497),
                                new VELatLong(25.70710404001996, -80.14944953417621),
                                new VELatLong(25.71401382364125, -80.14919546216109),
                                new VELatLong(25.72516952701063, -80.14360600265407),
                                new VELatLong(25.72974511934115, -80.15220469905695),
                                new VELatLong(25.72915270807283, -80.15572115666529),
                                new VELatLong(25.73197315883713, -80.15872300177043),
                                new VELatLong(25.73693158733918, -80.14908378389841),
                                new VELatLong(25.74673652481287, -80.13969080931773),
                                new VELatLong(25.75169917439458, -80.14177898013384),
                                new VELatLong(25.75205063358073, -80.1446533570888),
                                new VELatLong(25.75571890917239, -80.14530763982089),
                                new VELatLong(25.7585568007308, -80.14949294693315),
                                new VELatLong(25.75854093307492, -80.16270031374314),
                                new VELatLong(25.75083409679238, -80.17260900643164),
                                new VELatLong(25.74528504007262, -80.16801850292822),
                                new VELatLong(25.7404541529321, -80.16121895022381),
                                new VELatLong(25.73833004962003, -80.1623877271993),
                                new VELatLong(25.73785705848234, -80.16356026414547),
                                new VELatLong(25.74775697373783, -80.17533952754259),
                                new VELatLong(25.74704104181762, -80.18095162224336),
                                new VELatLong(25.74655259896439, -80.19361649684922),
                                new VELatLong(25.7471377978309, -80.19806138398445),
                                new VELatLong(25.74548308912026, -80.19857187564722)
                            ]
                            );

    // SET SHAPE PROPERTIES
    shape.SetTitle('Key Biscayne');
    //shape.SetDescription('TEST');

    shape.HideIcon();
    shape.SetLineWidth(2);
    shape.SetLineColor(new VEColor(245, 245, 245, 1.0)); // WHITE LINE
    shape.SetFillColor(new VEColor(255, 51, 0, 0.5)); // FILL

    // INCREASE PIN UNIQUEID
    pinid++;

    // ADD SHAPE TO MAP
    map.AddShape(shape);
}

///////////////////////////////////////////////////////////////////////////////////////////
// MIAMI (AREA 40)
///////////////////////////////////////////////////////////////////////////////////////////
function AddArea_Miami40() {
    var shape = new VEShape(
                            VEShapeType.Polygon,
                            [
                                new VELatLong(25.77348193559863, -80.38565668755312),
                                new VELatLong(25.76800674024347, -80.38532413467505),
                                new VELatLong(25.72853689100539, -80.38380526603791),
                                new VELatLong(25.72472714783689, -80.38348268294874),
                                new VELatLong(25.72256415418478, -80.38333982032366),
                                new VELatLong(25.72043539912355, -80.38332335504194),
                                new VELatLong(25.71840540355507, -80.38315037562188),
                                new VELatLong(25.70790173196909, -80.38312056230882),
                                new VELatLong(25.7032993768998, -80.38330634872548),
                                new VELatLong(25.70144296762127, -80.38336037783768),
                                new VELatLong(25.70020618426181, -80.38354083557158),
                                new VELatLong(25.69874249559909, -80.38401000357177),
                                new VELatLong(25.69762103878575, -80.38460535576803),
                                new VELatLong(25.69564300494177, -80.3858335264553),
                                new VELatLong(25.69383501731479, -80.38702643010169),
                                new VELatLong(25.6926792040483, -80.38780319474815),
                                new VELatLong(25.6917841568966, -80.38836297627114),
                                new VELatLong(25.69074275077985, -80.38868782940706),
                                new VELatLong(25.68939266720291, -80.38899444096977),
                                new VELatLong(25.68636884556008, -80.38881337212477),
                                new VELatLong(25.68654412987575, -80.38450175180101),
                                new VELatLong(25.68679303349983, -80.37448970564046),
                                new VELatLong(25.68728508278134, -80.36063531284984),
                                new VELatLong(25.68760614326368, -80.3505539666765),
                                new VELatLong(25.68817274038226, -80.33347698574477),
                                new VELatLong(25.68849797613846, -80.32344083396976),
                                new VELatLong(25.68868491466166, -80.31685132700278),
                                new VELatLong(25.68889071038309, -80.30809715233632),
                                new VELatLong(25.6915137345577, -80.30479336272349),
                                new VELatLong(25.69125619065385, -80.30215807991402),
                                new VELatLong(25.69055964618971, -80.29529050952483),
                                new VELatLong(25.68931921667246, -80.29508605071386),
                                new VELatLong(25.68947419022317, -80.29101366027427),
                                new VELatLong(25.68948691294304, -80.28861403330384),
                                new VELatLong(25.68930608477054, -80.28722516386782),
                                new VELatLong(25.68909272098575, -80.28581840291054),
                                new VELatLong(25.68896223779306, -80.28549397980623),
                                new VELatLong(25.68837635752938, -80.28484602223543),
                                new VELatLong(25.68956259967442, -80.28489705562853),
                                new VELatLong(25.69333881818882, -80.28505310110084),
                                new VELatLong(25.69704136378432, -80.28512411913991),
                                new VELatLong(25.70456969952432, -80.28533503606495),
                                new VELatLong(25.71177140277804, -80.28567198969212),
                                new VELatLong(25.7189013460044, -80.28595470819514),
                                new VELatLong(25.72643067966153, -80.2862654588757),
                                new VELatLong(25.73391318152541, -80.28659262936898),
                                new VELatLong(25.73545798507045, -80.28662507234304),
                                new VELatLong(25.73898741757872, -80.28682109055893),
                                new VELatLong(25.74160449460954, -80.28692429089334),
                                new VELatLong(25.74482637754449, -80.28706256096471),
                                new VELatLong(25.74846247797612, -80.28726281774947),
                                new VELatLong(25.7562649704713, -80.28760529752434),
                                new VELatLong(25.76347252456788, -80.28791791329704),
                                new VELatLong(25.77075261371239, -80.28818233595362),
                                new VELatLong(25.77801725607248, -80.28834582801198),
                                new VELatLong(25.77773326606333, -80.2957007929124),
                                new VELatLong(25.77758997535614, -80.29797804434604),
                                new VELatLong(25.77754359306859, -80.29973089260321),
                                new VELatLong(25.77765987854729, -80.30142918953823),
                                new VELatLong(25.77775930541547, -80.30271196691264),
                                new VELatLong(25.77763016117689, -80.30348913533963),
                                new VELatLong(25.77742087783045, -80.30516978998323),
                                new VELatLong(25.77736628243744, -80.30791889873319),
                                new VELatLong(25.77665318260199, -80.31041484098053),
                                new VELatLong(25.77663949995256, -80.31240269524137),
                                new VELatLong(25.77714430471786, -80.31249205783779),
                                new VELatLong(25.77686751508863, -80.32122831428512),
                                new VELatLong(25.7767297454612, -80.3283841622318),
                                new VELatLong(25.776538207427, -80.3364555893677),
                                new VELatLong(25.7731235078501, -80.33648073392631),
                                new VELatLong(25.77305978050818, -80.3375822061065),
                                new VELatLong(25.77291438225129, -80.33832269311679),
                                new VELatLong(25.77228233070552, -80.33973182044238),
                                new VELatLong(25.77254249986704, -80.33993001701096),
                                new VELatLong(25.77298367775491, -80.34063702226587),
                                new VELatLong(25.77344066482028, -80.34173827191631),
                                new VELatLong(25.77352273277479, -80.3423525138773),
                                new VELatLong(25.77349076575205, -80.34289470841176),
                                new VELatLong(25.77316646169639, -80.34405180183235),
                                new VELatLong(25.77277687828124, -80.34501008925072),
                                new VELatLong(25.77256658344448, -80.34618478360943),
                                new VELatLong(25.77275409414555, -80.34741499057915),
                                new VELatLong(25.77319445383306, -80.34837148877328),
                                new VELatLong(25.77365076860284, -80.34896669725298),
                                new VELatLong(25.77433494881628, -80.34945307383291),
                                new VELatLong(25.77488917615099, -80.35008443181849),
                                new VELatLong(25.77524815521834, -80.35078859568347),
                                new VELatLong(25.77563977046845, -80.35151086464823),
                                new VELatLong(25.77562438951373, -80.35239659320467),
                                new VELatLong(25.77554441052661, -80.35382465154385),
                                new VELatLong(25.77557839726445, -80.3552163785175),
                                new VELatLong(25.77566067414715, -80.35604774772678),
                                new VELatLong(25.77572657229347, -80.35678877880875),
                                new VELatLong(25.77590676274149, -80.35780089755946),
                                new VELatLong(25.77580993785831, -80.35870474841423),
                                new VELatLong(25.7753257880323, -80.36003383548054),
                                new VELatLong(25.774936194554, -80.36130002359484),
                                new VELatLong(25.7748558348057, -80.36240267158243),
                                new VELatLong(25.77502017474869, -80.36401082752302),
                                new VELatLong(25.77525090665641, -80.36697442800357),
                                new VELatLong(25.77556267957667, -80.36954054196386),
                                new VELatLong(25.77544202269628, -80.3735636637258),
                                new VELatLong(25.77538029133032, -80.37757685227382),
                                new VELatLong(25.77528929663294, -80.38563871622687),
                                new VELatLong(25.77348193559863, -80.38565668755312)
                            ]
                            );

    // SET SHAPE PROPERTIES
    shape.SetTitle('Miami');
    //shape.SetDescription('TEST');

    shape.HideIcon();
    shape.SetLineWidth(2);
    shape.SetLineColor(new VEColor(245, 245, 245, 1.0)); // WHITE LINE
    shape.SetFillColor(new VEColor(255, 255, 0, 0.5)); // FILL

    // INCREASE PIN UNIQUEID
    pinid++;

    // ADD SHAPE TO MAP
    map.AddShape(shape);
}

///////////////////////////////////////////////////////////////////////////////////////////
// MIAMI (AREA 49)
///////////////////////////////////////////////////////////////////////////////////////////
function AddArea_Miami49() {
    var shape = new VEShape(
                            VEShapeType.Polygon,
                            [
                                new VELatLong(25.77036709782935, -80.48203287702812),
                                new VELatLong(25.76081149359859, -80.48118636998348),
                                new VELatLong(25.75773815297591, -80.4811841128618),
                                new VELatLong(25.74984504357273, -80.48084404017294),
                                new VELatLong(25.70237850027852, -80.47902958669613),
                                new VELatLong(25.7016387919141, -80.47866455799016),
                                new VELatLong(25.68879170971462, -80.47824036150247),
                                new VELatLong(25.68876433036417, -80.47595881081641),
                                new VELatLong(25.68862715537984, -80.47525908010562),
                                new VELatLong(25.68824307508912, -80.47376840385857),
                                new VELatLong(25.68703611821265, -80.47191278796989),
                                new VELatLong(25.68533593724775, -80.47024020772048),
                                new VELatLong(25.68385563789346, -80.46765614546723),
                                new VELatLong(25.68507956807183, -80.42986542400368),
                                new VELatLong(25.6856410253871, -80.41211108623539),
                                new VELatLong(25.68607434810896, -80.40074242913292),
                                new VELatLong(25.68634769456134, -80.38938285193908),
                                new VELatLong(25.68737547121414, -80.38938220991835),
                                new VELatLong(25.68948117720906, -80.38947148725431),
                                new VELatLong(25.69070605310705, -80.38932576215134),
                                new VELatLong(25.69202939959618, -80.38890799582362),
                                new VELatLong(25.69345124057016, -80.3879641021627),
                                new VELatLong(25.69672754121271, -80.38564957464841),
                                new VELatLong(25.69803302794291, -80.38485136469807),
                                new VELatLong(25.69912692385475, -80.38432482328689),
                                new VELatLong(25.70107114700988, -80.38385151873312),
                                new VELatLong(25.70491709123087, -80.38370769601831),
                                new VELatLong(25.70778764962432, -80.38357721258674),
                                new VELatLong(25.71059587955288, -80.38362789657585),
                                new VELatLong(25.71511885448077, -80.38377958853),
                                new VELatLong(25.71660493564685, -80.38388647116062),
                                new VELatLong(25.7190891635074, -80.3844274044765),
                                new VELatLong(25.72090296928054, -80.3844656099112),
                                new VELatLong(25.72630620572022, -80.38464017406054),
                                new VELatLong(25.72661659589531, -80.38449474332316),
                                new VELatLong(25.72812035235502, -80.38436589966426),
                                new VELatLong(25.73001338802412, -80.38439613315292),
                                new VELatLong(25.73769590178484, -80.38475562103065),
                                new VELatLong(25.74387815632234, -80.38491273303686),
                                new VELatLong(25.74943504485194, -80.38514607537604),
                                new VELatLong(25.76121173421736, -80.38557895288692),
                                new VELatLong(25.76489800959313, -80.38573709993831),
                                new VELatLong(25.7734964934502, -80.38601597146695),
                                new VELatLong(25.77350537660792, -80.39026733571741),
                                new VELatLong(25.77335952696027, -80.39304387863936),
                                new VELatLong(25.77303048970999, -80.4010341325218),
                                new VELatLong(25.77253645127025, -80.4168330633899),
                                new VELatLong(25.77263369729389, -80.41743611207545),
                                new VELatLong(25.77197748965076, -80.43326275381298),
                                new VELatLong(25.77222272462684, -80.43340760900389),
                                new VELatLong(25.77153721995799, -80.44809751080811),
                                new VELatLong(25.77036709782935, -80.48203287702812)
                            ]
                            );

    // SET SHAPE PROPERTIES
    shape.SetTitle('Miami');
    //shape.SetDescription('TEST');

    shape.HideIcon();
    shape.SetLineWidth(2);
    shape.SetLineColor(new VEColor(245, 245, 245, 1.0)); // WHITE LINE
    shape.SetFillColor(new VEColor(255, 255, 0, 0.5)); // FILL

    // INCREASE PIN UNIQUEID
    pinid++;

    // ADD SHAPE TO MAP
    map.AddShape(shape);
}

///////////////////////////////////////////////////////////////////////////////////////////
// MIAMI (AREA 50)
///////////////////////////////////////////////////////////////////////////////////////////
function AddArea_Miami50() {
    var shape = new VEShape(
                            VEShapeType.Polygon,
                            [
                                new VELatLong(25.68607803641207, -80.38882230474049),
                                new VELatLong(25.68461935035107, -80.38881334246344),
                                new VELatLong(25.68351456675151, -80.38876285767121),
                                new VELatLong(25.6814834282233, -80.38873389572525),
                                new VELatLong(25.68017677489547, -80.38868448536995),
                                new VELatLong(25.67947973742239, -80.38864492500986),
                                new VELatLong(25.67666187268933, -80.38855438783318),
                                new VELatLong(25.67185645402949, -80.38830976182599),
                                new VELatLong(25.67035931271308, -80.38823865486303),
                                new VELatLong(25.67018269226148, -80.38819755257707),
                                new VELatLong(25.66970870055078, -80.38808453705573),
                                new VELatLong(25.66776828209508, -80.38743130932284),
                                new VELatLong(25.6662145073277, -80.38680378867524),
                                new VELatLong(25.66445797141543, -80.38617716050062),
                                new VELatLong(25.66248792110012, -80.38570328513407),
                                new VELatLong(25.6607678669074, -80.38544830674056),
                                new VELatLong(25.65917049536416, -80.38534790766907),
                                new VELatLong(25.65718578344668, -80.38543649099132),
                                new VELatLong(25.65619086821767, -80.38557166469349),
                                new VELatLong(25.65544746542993, -80.38571678610933),
                                new VELatLong(25.65479721921294, -80.38578961536234),
                                new VELatLong(25.65410081673132, -80.38586246273579),
                                new VELatLong(25.65320970260446, -80.38580159417842),
                                new VELatLong(25.6526343434188, -80.38565804818327),
                                new VELatLong(25.6519037162258, -80.38538382274487),
                                new VELatLong(25.65109452936878, -80.38498247434974),
                                new VELatLong(25.64966328418896, -80.3843656317479),
                                new VELatLong(25.64890187578941, -80.38419136938089),
                                new VELatLong(25.64843493190318, -80.38421813774026),
                                new VELatLong(25.64758901124743, -80.38439427222971),
                                new VELatLong(25.6468086667015, -80.38465268348756),
                                new VELatLong(25.64627016574258, -80.38491075764256),
                                new VELatLong(25.64538833801918, -80.38514841153449),
                                new VELatLong(25.64483885058844, -80.38522212913853),
                                new VELatLong(25.64389031987361, -80.38526398719459),
                                new VELatLong(25.64297944278921, -80.38522336303086),
                                new VELatLong(25.63974529658541, -80.38508274787708),
                                new VELatLong(25.637257608123, -80.38498688570324),
                                new VELatLong(25.63586248563312, -80.38497749915237),
                                new VELatLong(25.63479363329425, -80.3848751817348),
                                new VELatLong(25.6340597406931, -80.38475209068159),
                                new VELatLong(25.633261073402, -80.3844952361378),
                                new VELatLong(25.63262975939537, -80.38420747390261),
                                new VELatLong(25.63205018758652, -80.38373931823981),
                                new VELatLong(25.63076660040846, -80.38223599423144),
                                new VELatLong(25.62996237737763, -80.38138844887686),
                                new VELatLong(25.62966446342218, -80.38097624928723),
                                new VELatLong(25.62913410141255, -80.38038904868422),
                                new VELatLong(25.62872485345644, -80.37996681872221),
                                new VELatLong(25.62777681179974, -80.37923609328172),
                                new VELatLong(25.62713271401163, -80.37882975669126),
                                new VELatLong(25.62560641899764, -80.37836660655742),
                                new VELatLong(25.62448156261337, -80.37829515857405),
                                new VELatLong(25.62276489293042, -80.37842261698822),
                                new VELatLong(25.62104382026417, -80.37846479095731),
                                new VELatLong(25.61783876881755, -80.37833223518456),
                                new VELatLong(25.61257172832078, -80.37812317468399),
                                new VELatLong(25.60731290753449, -80.37786928820121),
                                new VELatLong(25.6052025698678, -80.37778871223428),
                                new VELatLong(25.60330836164317, -80.37763600252693),
                                new VELatLong(25.60246398560911, -80.37745156118051),
                                new VELatLong(25.60166699130594, -80.37718312665822),
                                new VELatLong(25.60063403914743, -80.37669913850314),
                                new VELatLong(25.60010372312614, -80.37631819124648),
                                new VELatLong(25.59797436604977, -80.37428095424821),
                                new VELatLong(25.59804126120106, -80.37052544779196),
                                new VELatLong(25.59827558066872, -80.3644499735076),
                                new VELatLong(25.59850801183428, -80.35673180544794),
                                new VELatLong(25.59880086902695, -80.34650209325812),
                                new VELatLong(25.59901498000825, -80.33807247690064),
                                new VELatLong(25.59915512903762, -80.33204946251487),
                                new VELatLong(25.59938151446079, -80.32388279160548),
                                new VELatLong(25.59949908435027, -80.31610564540489),
                                new VELatLong(25.59979245053044, -80.30692254914864),
                                new VELatLong(25.60574563962555, -80.30675024103063),
                                new VELatLong(25.61051906631302, -80.30533541476837),
                                new VELatLong(25.613656634905, -80.30463936394499),
                                new VELatLong(25.61713606164582, -80.30343764141878),
                                new VELatLong(25.61714048317034, -80.30039794942897),
                                new VELatLong(25.61759150227698, -80.30039658689896),
                                new VELatLong(25.61994439349486, -80.29791255136132),
                                new VELatLong(25.62240192948315, -80.29737743407344),
                                new VELatLong(25.62321062554776, -80.29869378754786),
                                new VELatLong(25.62610637639421, -80.29870143328253),
                                new VELatLong(25.62744190617477, -80.29703057541565),
                                new VELatLong(25.62744196334898, -80.29445719130993),
                                new VELatLong(25.62847838957616, -80.29330360482483),
                                new VELatLong(25.62913457753218, -80.28644592257552),
                                new VELatLong(25.6303496684864, -80.28599908046789),
                                new VELatLong(25.63034401775556, -80.29270913178281),
                                new VELatLong(25.63372232626736, -80.29334061574232),
                                new VELatLong(25.63372428964516, -80.29415681766757),
                                new VELatLong(25.63368468420061, -80.29827702153469),
                                new VELatLong(25.63363373922054, -80.30120220101951),
                                new VELatLong(25.6373476109025, -80.30134234082208),
                                new VELatLong(25.63746179134405, -80.29730350500435),
                                new VELatLong(25.64018050256055, -80.29496908847449),
                                new VELatLong(25.63967754173821, -80.29384725099632),
                                new VELatLong(25.64406628977809, -80.29033525244546),
                                new VELatLong(25.64506182990308, -80.29014706528545),
                                new VELatLong(25.64504353643844, -80.29034309886292),
                                new VELatLong(25.64529621204252, -80.29111614958259),
                                new VELatLong(25.64494364004439, -80.29184928254908),
                                new VELatLong(25.64461848181584, -80.30147563986726),
                                new VELatLong(25.64404159846946, -80.31768964616181),
                                new VELatLong(25.64374523056494, -80.33438227350179),
                                new VELatLong(25.66314587129607, -80.32550206785957),
                                new VELatLong(25.67404483796807, -80.32045417789014),
                                new VELatLong(25.67525685284841, -80.31981788962621),
                                new VELatLong(25.67807336518591, -80.31794981781259),
                                new VELatLong(25.68014212312107, -80.31663733003501),
                                new VELatLong(25.68156915542589, -80.31564304344488),
                                new VELatLong(25.68549535581674, -80.31219256587276),
                                new VELatLong(25.6887821931982, -80.30839674223427),
                                new VELatLong(25.68842863999451, -80.31705419158931),
                                new VELatLong(25.68735893017152, -80.34964697605106),
                                new VELatLong(25.68670702976481, -80.36573863262865),
                                new VELatLong(25.68607803641207, -80.38882230474049)
                            ]
                            );

    // SET SHAPE PROPERTIES
    shape.SetTitle('Miami');
    //shape.SetDescription('TEST');

    shape.HideIcon();
    shape.SetLineWidth(2);
    shape.SetLineColor(new VEColor(245, 245, 245, 1.0)); // WHITE LINE
    shape.SetFillColor(new VEColor(255, 255, 0, 0.5)); // FILL

    // INCREASE PIN UNIQUEID
    pinid++;

    // ADD SHAPE TO MAP
    map.AddShape(shape);
}

///////////////////////////////////////////////////////////////////////////////////////////
// MIAMI (AREA 58)
///////////////////////////////////////////////////////////////////////////////////////////
function AddArea_Miami58() {
    var shape = new VEShape(
                            VEShapeType.Polygon,
                            [
                                new VELatLong(25.63769222160991, -80.4797882902986),
                                new VELatLong(25.67433492987462, -80.48138953673886),
                                new VELatLong(25.67935614442077, -80.48000638252088),
                                new VELatLong(25.68250981656377, -80.47874148307163),
                                new VELatLong(25.68465789816719, -80.47830324325794),
                                new VELatLong(25.68880552902045, -80.47855612626734),
                                new VELatLong(25.68879087229838, -80.48067547978801),
                                new VELatLong(25.68870051244824, -80.55194647756217),
                                new VELatLong(25.59392279876336, -80.54854878516316),
                                new VELatLong(25.5942300789095, -80.47847159900114),
                                new VELatLong(25.63769222160991, -80.4797882902986)
                            ]
                            );

    // SET SHAPE PROPERTIES
    shape.SetTitle('Miami');
    //shape.SetDescription('TEST');

    shape.HideIcon();
    shape.SetLineWidth(2);
    shape.SetLineColor(new VEColor(245, 245, 245, 1.0)); // WHITE LINE
    shape.SetFillColor(new VEColor(255, 255, 0, 0.5)); // FILL

    // INCREASE PIN UNIQUEID
    pinid++;

    // ADD SHAPE TO MAP
    map.AddShape(shape);
}

///////////////////////////////////////////////////////////////////////////////////////////
// MIAMI (AREA 59)
///////////////////////////////////////////////////////////////////////////////////////////
function AddArea_Miami59() {
    var shape = new VEShape(
                            VEShapeType.Polygon,
                            [
                                new VELatLong(25.68863532616867, -80.47780187891283),
                                new VELatLong(25.6879769972346, -80.47850840371073),
                                new VELatLong(25.68266510644078, -80.47837651092083),
                                new VELatLong(25.67701621321434, -80.48062144886237),
                                new VELatLong(25.67453175358353, -80.48111849324381),
                                new VELatLong(25.66076496813095, -80.48072501712105),
                                new VELatLong(25.61673906221339, -80.47921595606843),
                                new VELatLong(25.59430266907649, -80.4784072893313),
                                new VELatLong(25.59521277406721, -80.44605954832343),
                                new VELatLong(25.59645465913583, -80.41346968163118),
                                new VELatLong(25.59757717391487, -80.37562456163438),
                                new VELatLong(25.59960569470149, -80.3768699684022),
                                new VELatLong(25.60377609695582, -80.3783613405369),
                                new VELatLong(25.62675110322523, -80.37950706969038),
                                new VELatLong(25.63054276423136, -80.3837084140599),
                                new VELatLong(25.63383964857616, -80.38516773360675),
                                new VELatLong(25.64455684529439, -80.385887408054),
                                new VELatLong(25.65115477356505, -80.38661177563236),
                                new VELatLong(25.65709480967698, -80.38770304158452),
                                new VELatLong(25.66419222387833, -80.38897634364608),
                                new VELatLong(25.66980591945139, -80.38823765142497),
                                new VELatLong(25.68599715148237, -80.38913426516287),
                                new VELatLong(25.68367783985704, -80.46698185686368),
                                new VELatLong(25.68582596634719, -80.47101631538985),
                                new VELatLong(25.68797457333637, -80.47413543118556),
                                new VELatLong(25.68863532616867, -80.47780187891283)
                            ]
                            );

    // SET SHAPE PROPERTIES
    shape.SetTitle('Miami');
    //shape.SetDescription('TEST');

    shape.HideIcon();
    shape.SetLineWidth(2);
    shape.SetLineColor(new VEColor(245, 245, 245, 1.0)); // WHITE LINE
    shape.SetFillColor(new VEColor(255, 255, 0, 0.5)); // FILL

    // INCREASE PIN UNIQUEID
    pinid++;

    // ADD SHAPE TO MAP
    map.AddShape(shape);
}

///////////////////////////////////////////////////////////////////////////////////////////
// MIAMI BEACH
///////////////////////////////////////////////////////////////////////////////////////////
function AddArea_MiamiBeach() {
    var shape = new VEShape(
                            VEShapeType.Polygon,
                            [
                                new VELatLong(25.87202030926013, -80.13199117359045),
                                new VELatLong(25.86960445239325, -80.13870435581582),
                                new VELatLong(25.86491783355579, -80.14335992901332),
                                new VELatLong(25.85369733150167, -80.14694345663231),
                                new VELatLong(25.85320433339389, -80.1559406962426),
                                new VELatLong(25.85552264394815, -80.15610305238332),
                                new VELatLong(25.85532340779245, -80.16197654798209),
                                new VELatLong(25.84314195932001, -80.16219078323702),
                                new VELatLong(25.84391910915777, -80.14311451965625),
                                new VELatLong(25.84804945731743, -80.14304113479038),
                                new VELatLong(25.84807065526043, -80.13479283440985),
                                new VELatLong(25.82992937292991, -80.1344935320475),
                                new VELatLong(25.81175744355758, -80.14792179769756),
                                new VELatLong(25.79411343842835, -80.14807876701062),
                                new VELatLong(25.79390590127121, -80.15313776939229),
                                new VELatLong(25.79670741364948, -80.15316601867114),
                                new VELatLong(25.79562912256535, -80.18305445248384),
                                new VELatLong(25.78268146084373, -80.17884431620875),
                                new VELatLong(25.7633331055923, -80.13015566006919),
                                new VELatLong(25.80046106648313, -80.1232783055471),
                                new VELatLong(25.81560918236043, -80.11892543381225),
                                new VELatLong(25.84535540013252, -80.11776902370366),
                                new VELatLong(25.8720171801156, -80.11933983971223),
                                new VELatLong(25.87182690574289, -80.12229020337492),
                                new VELatLong(25.87148523634606, -80.12266670990137),
                                new VELatLong(25.87139244024376, -80.12440449420399),
                                new VELatLong(25.87229987119097, -80.12445233812012),
                                new VELatLong(25.8722070923861, -80.12810657072154),
                                new VELatLong(25.87214209719481, -80.12985162501204),
                                new VELatLong(25.87202030926013, -80.13199117359045)
                            ]
                            );

    // SET SHAPE PROPERTIES
    shape.SetTitle('Miami Beach');
    //shape.SetDescription('TEST');

    shape.HideIcon();
    shape.SetLineWidth(2);
    shape.SetLineColor(new VEColor(245, 245, 245, 1.0)); // WHITE LINE
    shape.SetFillColor(new VEColor(0, 153, 0, 0.5)); // FILL

    // INCREASE PIN UNIQUEID
    pinid++;

    // ADD SHAPE TO MAP
    map.AddShape(shape);
}

///////////////////////////////////////////////////////////////////////////////////////////
// PINECREST
///////////////////////////////////////////////////////////////////////////////////////////
function AddArea_Pinecrest() {
    var shape = new VEShape(
                            VEShapeType.Polygon,
                            [
                                new VELatLong(25.6914625803806, -80.30486259406152),
                                new VELatLong(25.68873393595671, -80.3082389618576),
                                new VELatLong(25.68624763430098, -80.3111233155288),
                                new VELatLong(25.68222554634166, -80.3147923705852),
                                new VELatLong(25.67939843168573, -80.31687705285353),
                                new VELatLong(25.67753528371065, -80.31806820917231),
                                new VELatLong(25.67386973587782, -80.32028429109002),
                                new VELatLong(25.64393753701758, -80.33386992379573),
                                new VELatLong(25.6439911429119, -80.33001103926836),
                                new VELatLong(25.64428873293527, -80.31771393109182),
                                new VELatLong(25.64485871049203, -80.30156671215238),
                                new VELatLong(25.64500318543377, -80.29187441396735),
                                new VELatLong(25.64536062187832, -80.29112422902789),
                                new VELatLong(25.6451286583461, -80.29027745194674),
                                new VELatLong(25.64540126199012, -80.28334983991503),
                                new VELatLong(25.65245451589984, -80.2835032279075),
                                new VELatLong(25.65245490240153, -80.28554628829173),
                                new VELatLong(25.65324858176263, -80.28519243549779),
                                new VELatLong(25.65593300643694, -80.28391474199806),
                                new VELatLong(25.66000294326651, -80.28418912759771),
                                new VELatLong(25.65989649651454, -80.28777647027172),
                                new VELatLong(25.66251623547496, -80.28977462774762),
                                new VELatLong(25.66494104330331, -80.29014713014384),
                                new VELatLong(25.66499346638539, -80.28408096556089),
                                new VELatLong(25.6637573679335, -80.28354809379736),
                                new VELatLong(25.6638938738087, -80.28201880112047),
                                new VELatLong(25.66425583671528, -80.28117568824447),
                                new VELatLong(25.66462200853182, -80.28059440159488),
                                new VELatLong(25.66571004195598, -80.27976854003268),
                                new VELatLong(25.66605652028476, -80.27963821058057),
                                new VELatLong(25.66882777613944, -80.28351619205714),
                                new VELatLong(25.67014688128583, -80.2842280953636),
                                new VELatLong(25.68844247052337, -80.28484970899091),
                                new VELatLong(25.68903671975845, -80.28556582571079),
                                new VELatLong(25.68920040559774, -80.28608520928376),
                                new VELatLong(25.68944772077153, -80.28909033712316),
                                new VELatLong(25.689420721287, -80.29102331128648),
                                new VELatLong(25.68928468088145, -80.29511166619817),
                                new VELatLong(25.69056483826165, -80.29531406934632),
                                new VELatLong(25.6914625803806, -80.30486259406152)
                            ]
                            );

    // SET SHAPE PROPERTIES
    shape.SetTitle('Pinecrest');
    //shape.SetDescription('TEST');

    shape.HideIcon();
    shape.SetLineWidth(2);
    shape.SetLineColor(new VEColor(245, 245, 245, 1.0)); // WHITE LINE
    shape.SetFillColor(new VEColor(160, 32, 240, 0.5)); // FILL

    // INCREASE PIN UNIQUEID
    pinid++;

    // ADD SHAPE TO MAP
    map.AddShape(shape);
}

///////////////////////////////////////////////////////////////////////////////////////////
// SUNNY ISLES BEACH
///////////////////////////////////////////////////////////////////////////////////////////
function AddArea_SunnyIslesBeach() {
    var shape = new VEShape(
                            VEShapeType.Polygon,
                            [
                                new VELatLong(25.95681946495532, -80.12467152349512),
                                new VELatLong(25.95011994507817, -80.12626174131509),
                                new VELatLong(25.94954560891286, -80.12601475117043),
                                new VELatLong(25.94921452813416, -80.12556554993776),
                                new VELatLong(25.94859854574067, -80.12503962911205),
                                new VELatLong(25.94792195118027, -80.12442353755529),
                                new VELatLong(25.94737878089935, -80.12308022764402),
                                new VELatLong(25.94714692548974, -80.12293778646655),
                                new VELatLong(25.94571554804671, -80.12299239296932),
                                new VELatLong(25.9456298215738, -80.12412325456222),
                                new VELatLong(25.94509026288587, -80.12459339600086),
                                new VELatLong(25.93814650096279, -80.12694849599318),
                                new VELatLong(25.93748599197543, -80.13106408156727),
                                new VELatLong(25.93509148801761, -80.1303945948299),
                                new VELatLong(25.93567960478225, -80.1297652701946),
                                new VELatLong(25.93574890819517, -80.12713464482563),
                                new VELatLong(25.93207299871736, -80.12729253644906),
                                new VELatLong(25.93162947816057, -80.12916382222578),
                                new VELatLong(25.93069369110063, -80.12900105380766),
                                new VELatLong(25.92967364246001, -80.13000015610669),
                                new VELatLong(25.92904626279441, -80.12981890003994),
                                new VELatLong(25.9286750670608, -80.12912205117301),
                                new VELatLong(25.9289428018354, -80.12710503251232),
                                new VELatLong(25.92894142349378, -80.12591703189763),
                                new VELatLong(25.9285633411435, -80.12565831608553),
                                new VELatLong(25.9283246214833, -80.12595401956972),
                                new VELatLong(25.92826841607, -80.12711420121445),
                                new VELatLong(25.92743405589614, -80.12788331620959),
                                new VELatLong(25.92674206401884, -80.12926917678772),
                                new VELatLong(25.926068351932, -80.12987231648155),
                                new VELatLong(25.92567365103213, -80.12927068506704),
                                new VELatLong(25.92557828087364, -80.12846352849707),
                                new VELatLong(25.92635148081481, -80.12585348013815),
                                new VELatLong(25.92630238562453, -80.12426190806434),
                                new VELatLong(25.92661845613482, -80.12324245818388),
                                new VELatLong(25.92594859909546, -80.12334516636186),
                                new VELatLong(25.92581133770523, -80.12457274220041),
                                new VELatLong(25.92584077226182, -80.12575904309358),
                                new VELatLong(25.92504104823708, -80.12840193796473),
                                new VELatLong(25.9244522741453, -80.12843722938368),
                                new VELatLong(25.92425986621689, -80.12794853615202),
                                new VELatLong(25.92480643563971, -80.12588358870447),
                                new VELatLong(25.92466182613428, -80.12464167262309),
                                new VELatLong(25.92493775722493, -80.12337452525668),
                                new VELatLong(25.92436642409934, -80.12318993181538),
                                new VELatLong(25.9242873438816, -80.12619609041552),
                                new VELatLong(25.92397496080592, -80.1278718216393),
                                new VELatLong(25.92343304050479, -80.12887348901228),
                                new VELatLong(25.92303447250669, -80.12877232197819),
                                new VELatLong(25.92238356454385, -80.12868627937608),
                                new VELatLong(25.92211610977648, -80.12838967135585),
                                new VELatLong(25.92126848089995, -80.1254078759234),
                                new VELatLong(25.92123002799248, -80.12287775527337),
                                new VELatLong(25.92187805436716, -80.12058778890931),
                                new VELatLong(25.9289980301518, -80.12012936557193),
                                new VELatLong(25.93708734773079, -80.11936214928778),
                                new VELatLong(25.94829440124423, -80.11807212715745),
                                new VELatLong(25.95636183557856, -80.11816785991),
                                new VELatLong(25.95686561939738, -80.11985763024541),
                                new VELatLong(25.95681946495532, -80.12467152349512)
                            ]
                            );

    // SET SHAPE PROPERTIES
    shape.SetTitle('Sunny Isles Beach');
    //shape.SetDescription('TEST');

    shape.HideIcon();
    shape.SetLineWidth(2);
    shape.SetLineColor(new VEColor(245, 245, 245, 1.0)); // WHITE LINE
    shape.SetFillColor(new VEColor(0, 153, 0, 0.5)); // FILL

    // INCREASE PIN UNIQUEID
    pinid++;

    // ADD SHAPE TO MAP
    map.AddShape(shape);
}

///////////////////////////////////////////////////////////////////////////////////////////
// SURFSIDE
///////////////////////////////////////////////////////////////////////////////////////////
function AddArea_Surfside() {
    var shape = new VEShape(
                            VEShapeType.Polygon,
                            [
                                new VELatLong(25.87145092650725, -80.12419452569299),
                                new VELatLong(25.87152584679032, -80.12268252024842),
                                new VELatLong(25.87186026203695, -80.12228235210543),
                                new VELatLong(25.87206363456669, -80.11935382496843),
                                new VELatLong(25.88719753187862, -80.12064704162154),
                                new VELatLong(25.88675046588439, -80.12775600698265),
                                new VELatLong(25.88287612485738, -80.12737518857111),
                                new VELatLong(25.87870705538092, -80.12979664973074),
                                new VELatLong(25.87648890224321, -80.1302828921272),
                                new VELatLong(25.87494591988945, -80.13126557950555),
                                new VELatLong(25.87377404653378, -80.13229786062277),
                                new VELatLong(25.8732651012561, -80.13247713448622),
                                new VELatLong(25.87247212224253, -80.13230596937537),
                                new VELatLong(25.87205444504493, -80.13201139423796),
                                new VELatLong(25.87218121933588, -80.12951439362594),
                                new VELatLong(25.87233098371757, -80.12441176129417),
                                new VELatLong(25.8714255435351, -80.12437261727308),
                                new VELatLong(25.87145092650725, -80.12419452569299)
                            ]
                            );

    // SET SHAPE PROPERTIES
    shape.SetTitle('Surfside');
    //shape.SetDescription('TEST');

    shape.HideIcon();
    shape.SetLineWidth(2);
    shape.SetLineColor(new VEColor(245, 245, 245, 1.0)); // WHITE LINE
    shape.SetFillColor(new VEColor(0, 153, 0, 0.5)); // FILL

    // INCREASE PIN UNIQUEID
    pinid++;

    // ADD SHAPE TO MAP
    map.AddShape(shape);
}

///////////////////////////////////////////////////////////////////////////////////////////
// AREA PINS
///////////////////////////////////////////////////////////////////////////////////////////
function AddPin_BalHarbour() {
    var shape = new VEShape(VEShapeType.Pushpin, new VELatLong(latBalHarbour, lonBalHarbour));
    shape.SetCustomIcon(
                        "<span style='font-size:6pt;font-weight:bold;color:Red;background-color:#EEEEEE'>" +
                        "BAL HARBOUR" +
                        "</span>"
                        );
    pinid++;
    map.AddShape(shape);
}

function AddPin_Brickell() {
    var shape = new VEShape(VEShapeType.Pushpin, new VELatLong(latBrickell, lonBrickell));
    shape.SetCustomIcon(
                        "<span style='font-size:10pt;font-weight:bold;color:Red;background-color:#EEEEEE'>" +
                        "BRICKELL" +
                        "</span>"
                        );
    pinid++;
    map.AddShape(shape);
}

function AddPin_CoconutGrove() {
    var shape = new VEShape(VEShapeType.Pushpin, new VELatLong(latCoconutGrove, lonCoconutGrove));
    shape.SetCustomIcon(
                        "<span style='font-size:10pt;font-weight:bold;color:Red;background-color:#EEEEEE'>" +
                        "COCONUT GROVE" +
                        "</span>"
                        );
    pinid++;
    map.AddShape(shape);
}

function AddPin_CoralGables() {
    var shape = new VEShape(VEShapeType.Pushpin, new VELatLong(latCoralGables, lonCoralGables));
    shape.SetCustomIcon(
                        "<span style='font-size:10pt;font-weight:bold;color:Red;background-color:#EEEEEE'>" +
                        "CORAL GABLES" +
                        "</span>"
                        );
    pinid++;
    map.AddShape(shape);
}

function AddPin_Doral() {
    var shape = new VEShape(VEShapeType.Pushpin, new VELatLong(latDoral, lonDoral));
    shape.SetCustomIcon(
                        "<span style='font-size:10pt;font-weight:bold;color:Red;background-color:#EEEEEE'>" +
                        "DORAL" +
                        "</span>"
                        );
    pinid++;
    map.AddShape(shape);
}

function AddPin_GoldenBeach() {
    var shape = new VEShape(VEShapeType.Pushpin, new VELatLong(latGoldenBeach, lonGoldenBeach));
    shape.SetCustomIcon(
                        "<span style='font-size:6pt;font-weight:bold;color:Red;background-color:#EEEEEE'>" +
                        "GOLDEN BEACH" +
                        "</span>"
                        );
    pinid++;
    map.AddShape(shape);
}

function AddPin_KeyBiscayne() {
    var shape = new VEShape(VEShapeType.Pushpin, new VELatLong(latKeyBiscayne, lonKeyBiscayne));
    shape.SetCustomIcon(
                        "<span style='font-size:10pt;font-weight:bold;color:Red;background-color:#EEEEEE'>" +
                        "KEY BISCAYNE" +
                        "</span>"
                        );
    pinid++;
    map.AddShape(shape);
}

function AddPin_Miami() {
    var shape = new VEShape(VEShapeType.Pushpin, new VELatLong(latMiami, lonMiami));
    shape.SetCustomIcon(
                        "<span style='font-size:12pt;font-weight:bold;color:Red;background-color:#EEEEEE'>" +
                        "MIAMI" +
                        "</span>"
                        );
    pinid++;
    map.AddShape(shape);
}

function AddPin_MiamiBeach() {
    var shape = new VEShape(VEShapeType.Pushpin, new VELatLong(latMiamiBeach, lonMiamiBeach));
    shape.SetCustomIcon(
                        "<span style='font-size:8pt;font-weight:bold;color:Red;background-color:#EEEEEE'>" +
                        "MIAMI BEACH" +
                        "</span>"
                        );
    pinid++;
    map.AddShape(shape);
}

function AddPin_Pinecrest() {
    var shape = new VEShape(VEShapeType.Pushpin, new VELatLong(latPinecrest, lonPinecrest));
    shape.SetCustomIcon(
                        "<span style='font-size:10pt;font-weight:bold;color:Red;background-color:#EEEEEE'>" +
                        "PINECREST" +
                        "</span>"
                        );
    pinid++;
    map.AddShape(shape);
}

function AddPin_SunnyIslesBeach() {
    var shape = new VEShape(VEShapeType.Pushpin, new VELatLong(latSunnyIslesBeach, lonSunnyIslesBeach));
    shape.SetCustomIcon(
                        "<span style='font-size:6pt;font-weight:bold;color:Red;background-color:#EEEEEE'>" +
                        "SUNNY ISLES BEACH" +
                        "</span>"
                        );
    pinid++;
    map.AddShape(shape);
}

function AddPin_Surfside() {
    var shape = new VEShape(VEShapeType.Pushpin, new VELatLong(latSurfSide, lonSurfSide));
    shape.SetCustomIcon(
                        "<span style='font-size:6pt;font-weight:bold;color:Red;background-color:#EEEEEE'>" +
                        "SURFSIDE BEACH" +
                        "</span>"
                        );
    pinid++;
    map.AddShape(shape);
}


