//Javascript file to handle all map functions
var map = null;
var invisColor = new VEColor(0,0,0,0);
var outlineColor = new VEColor(10,186,2,1); //green
//var outlineColor2 = new VEColor(8,98,255,1); //blue
//var outlineColor2 = new VEColor(209,141,38,1); //brown
//var currentColor = 1;
var info;
var layer;
//inital map load function
function GetMap(propInfo)
{
map = new VEMap('map_canvas');
map.EnableShapeDisplayThreshold(false);
map.LoadMap(new VELatLong(38.5, -97.5));
LoadStateBorders();
map.AttachEvent("onclick",ClickHandler);
map.AttachEvent("ondoubleclick",DoubleClickHandler);
map.AttachEvent("onmousedown",MouseHandler);
map.AttachEvent("onmouseup",MouseHandler);
map.AttachEvent("onmousewheel",MouseHandler);
map.AttachEvent("onmouseover",MouseShapeHandler);
map.AttachEvent("onmouseout",MouseShapeHandler);
info = propInfo; //Label ClientID that will display State Name
layer = new VEShapeLayer();
layer.SetTitle("ShapeLayer 1");
layer.SetDescription("This is ShapeLayer.");
map.AddShapeLayer(layer);
}
//handles click events
function MouseHandler(e)
{
var msg = "Event: ";
msg += e.eventName;
msg += "
";
msg += "X:" + e.mapX + " Y:" + e.mapY + "
";
msg += "Shift: " + e.shiftKey + "
";
msg += "Ctrl: " + e.ctrlKey + "
";
msg += "Alt: " + e.altKey + "
";
//document.getElementById('resultDiv').innerHTML=msg;
}
function ClickHandler(e)
{
var msg = "Event: ";
msg += e.eventName;
if (e.leftMouseButton)
msg += "- left";
else if (e.rightMouseButton)
msg += "- right";
else
msg += "- middle";
if (e.elementID != null)
{
var shape = map.GetShapeByID(e.elementID);
if(shape != null) //prevent undefined shapes from getting through
{
var stateName = shape.GetTitle();
}
else
{
return;
}
//apply state name to label
if(stateName == "Alabama"){ layer.DeleteAllShapes(); info.innerHTML = "Alabama"; }
else if(stateName == "Arizona"){ layer.DeleteAllShapes(); info.innerHTML = "Arizona"; }
else if(stateName == "Arkansas"){ layer.DeleteAllShapes(); info.innerHTML = "Arkansas"; }
else if(stateName == "California"){ layer.DeleteAllShapes(); info.innerHTML = "California"; }
else if(stateName == "Colorado"){ layer.DeleteAllShapes(); info.innerHTML = "Colorado"; }
else if(stateName == "Connecticut"){ layer.DeleteAllShapes(); info.innerHTML = "Connecticut"; }
else if(stateName == "Delaware"){ layer.DeleteAllShapes(); info.innerHTML = "Delaware"; }
else if(stateName == "Florida"){ layer.DeleteAllShapes(); info.innerHTML = "Florida"; }
else if(stateName == "Georgia"){ layer.DeleteAllShapes(); info.innerHTML = "Georgia"; }
else if(stateName == "Idaho"){ layer.DeleteAllShapes(); info.innerHTML = "Idaho"; }
else if(stateName == "Illinois"){ layer.DeleteAllShapes(); info.innerHTML = "Illinois"; }
else if(stateName == "Indiana"){ layer.DeleteAllShapes(); info.innerHTML = "Indiana"; }
else if(stateName == "Iowa"){ layer.DeleteAllShapes(); info.innerHTML = "Iowa"; }
else if(stateName == "Kansas"){ layer.DeleteAllShapes(); info.innerHTML = "Kansas"; }
else if(stateName == "Kentucky"){ layer.DeleteAllShapes(); info.innerHTML = "Kentucky"; }
else if(stateName == "Louisiana"){ layer.DeleteAllShapes(); info.innerHTML = "Louisiana"; }
else if(stateName == "Maine"){ layer.DeleteAllShapes(); info.innerHTML = "Maine"; }
else if(stateName == "Maryland"){ layer.DeleteAllShapes(); info.innerHTML = "Maryland"; }
else if(stateName == "Massachusetts"){ layer.DeleteAllShapes(); info.innerHTML = "Massachusetts"; }
else if(stateName == "Michigan"){ layer.DeleteAllShapes(); info.innerHTML = "Michigan"; }
else if(stateName == "Minnesota"){ layer.DeleteAllShapes(); info.innerHTML = "Minnesota"; }
else if(stateName == "Mississippi"){ layer.DeleteAllShapes(); info.innerHTML = "Mississippi"; }
else if(stateName == "Missouri"){ layer.DeleteAllShapes(); info.innerHTML = "Missouri"; }
else if(stateName == "Montana"){ layer.DeleteAllShapes(); info.innerHTML = "Montana"; }
else if(stateName == "Nebraska"){ layer.DeleteAllShapes(); info.innerHTML = "Nebraska"; }
else if(stateName == "Nevada"){ layer.DeleteAllShapes(); info.innerHTML = "Nevada"; }
else if(stateName == "New Hampshire"){ layer.DeleteAllShapes(); info.innerHTML = "New Hampshire"; }
else if(stateName == "New Jersey"){ layer.DeleteAllShapes(); info.innerHTML = "New Jersey"; }
else if(stateName == "New Mexico"){ layer.DeleteAllShapes(); info.innerHTML = "New Mexico"; }
else if(stateName == "New York"){ layer.DeleteAllShapes(); info.innerHTML = "New York"; }
else if(stateName == "North Carolina"){ layer.DeleteAllShapes(); info.innerHTML = "North Carolina"; }
else if(stateName == "North Dakota"){ layer.DeleteAllShapes(); info.innerHTML = "North Dakota"; }
else if(stateName == "Ohio"){ layer.DeleteAllShapes(); info.innerHTML = "Ohio"; }
else if(stateName == "Oklahoma"){ layer.DeleteAllShapes(); info.innerHTML = "Oklahoma"; }
else if(stateName == "Oregan"){ layer.DeleteAllShapes(); info.innerHTML = "Oregan"; }
else if(stateName == "Pennsylvania"){ layer.DeleteAllShapes(); info.innerHTML = "Pennsylvania"; }
else if(stateName == "Rhode Island"){ layer.DeleteAllShapes(); info.innerHTML = "Rhode Island"; }
else if(stateName == "South Carolina"){ layer.DeleteAllShapes(); info.innerHTML = "South Carolina"; }
else if(stateName == "South Dakota"){ layer.DeleteAllShapes(); info.innerHTML = "South Dakota"; }
else if(stateName == "Tennessee"){ layer.DeleteAllShapes(); info.innerHTML = "Tennessee"; }
else if(stateName == "Texas"){ layer.DeleteAllShapes(); info.innerHTML = "Texas"; }
else if(stateName == "Utah"){ layer.DeleteAllShapes(); info.innerHTML = "Utah"; }
else if(stateName == "Vermont"){ layer.DeleteAllShapes(); info.innerHTML = "Vermont"; }
else if(stateName == "Virginia"){ layer.DeleteAllShapes(); info.innerHTML = "Virginia"; }
else if(stateName == "Washington"){ layer.DeleteAllShapes(); info.innerHTML = "Washington"; }
else if(stateName == "West Virginia"){ layer.DeleteAllShapes(); info.innerHTML = "West Virginia"; }
else if(stateName == "Wisconsin"){ layer.DeleteAllShapes(); info.innerHTML = "Wisconsin"; }
else if(stateName == "Wyoming"){ layer.DeleteAllShapes(); info.innerHTML = "Wyoming"; }
}
}
function DoubleClickHandler(e)
{
// return true; //overrides built-in click functions
}
//Handles Mouse over and Mouse off events (shows borders and info of state when they are moused over)
function MouseShapeHandler(e)
{
var msg;
msg = e.eventName + "
" + "Element ID: ";
if (e.elementID != null)
{
if (e.eventName == "onmouseover")
{
msg += e.elementID + "
";
var shape = map.GetShapeByID(e.elementID);
msg += "Title: " + shape.GetTitle()+ "
";
msg += "Description: " + shape.GetDescription()+ "
";
shape.SetLineColor(outlineColor);
// //alternate colors of borders on mouseover
// if(currentColor == 1)
// {
// shape.SetLineColor(outlineColor2);
// currentColor = 2;
// }
// else
// {
// shape.SetLineColor(outlineColor);
// currentColor = 1;
// }
}
else if (e.eventName == "onmouseout")
{
msg += e.elementID + "
";
var shape = map.GetShapeByID(e.elementID);
msg += "Title: " + shape.GetTitle()+ "
";
msg += "Description: " + shape.GetDescription()+ "
";
shape.SetLineColor(invisColor);
}
}
else
msg += "null";
//document.getElementById('resultDiv').innerHTML = msg;
}
function StartGeocoding( address )
{
map.Find(null, // what
address, // where
null, // VEFindType (always VEFindType.Businesses)
null, // VEShapeLayer (base by default)
null, // start index for results (0 by default)
null, // max number of results (default is 10)
null, // show results? (default is true)
null, // create pushpin for what results? (ignored since what is null)
null, // use default disambiguation? (default is true)
false, // set best map view? (default is true)
GeocodeCallback); // call back function
}
function GeocodeCallback (shapeLayer, findResults, places, moreResults, errorMsg)
{
// if there are no results, display any error message and return
if(places == null)
{
alert( (errorMsg == null) ? "There were no results" : errorMsg );
return;
}
var bestPlace = places[0];
// Add pushpin to the *best* place
var location = bestPlace.LatLong;
var newShape = new VEShape(VEShapeType.Pushpin, location);
var desc = "Latitude: " + location.Latitude + "
Longitude:" + location.Longitude;
newShape.SetDescription(desc);
newShape.SetTitle(bestPlace.Name);
layer.AddShape(newShape);
}
//loads all of the state shapes (borders) and adds them to the map
function LoadStateBorders()
{
// Latitude-Longitude Orientation Guide
// (x , y)
// ([down-up], [right-left])
//Alabama
var points = [
new VELatLong(34.984 ,-85.605), //top right
new VELatLong(32.864 ,-85.184 ), //mid right
new VELatLong(32.426 ,-84.964 ),
new VELatLong(32.326 ,-85.006 ),
new VELatLong(32.261 ,-84.889 ),
new VELatLong(32.133 ,-85.062 ),
new VELatLong(31.84 , -85.141 ),
new VELatLong(31.538 ,-85.041 ),
new VELatLong(31.188 ,-85.108 ),
new VELatLong(31, -85.002), //bottom right
new VELatLong(30.997 ,-87.598), //bottom mid
new VELatLong(30.846 ,-87.625 ),
new VELatLong(30.655 ,-87.397 ),
new VELatLong(30.466 ,-87.426),
new VELatLong(30.348 ,-88.394), //bottom left
new VELatLong(31.894 ,-88.473 ),
new VELatLong(32.732 ,-88.37 ),
new VELatLong(32.747 ,-88.368 ),
new VELatLong(34.892 ,-88.097),
new VELatLong(34.995 ,-88.2) //top left
];
var shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Alabama');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Arkansas
points = [
new VELatLong(33.004 ,-91.166), //bottom right
new VELatLong(33.059 ,-91.121),
new VELatLong(33.125 ,-91.201),
new VELatLong(33.136 ,-91.093),
new VELatLong(33.275 ,-91.043),
new VELatLong(33.301 ,-91.141),
new VELatLong(33.449 ,-91.059),
new VELatLong(33.378 ,-91.148),
new VELatLong(33.407 ,-91.209),
new VELatLong(33.473 ,-91.125),
new VELatLong(33.437 ,-91.231),
new VELatLong(33.561 ,-91.23),
new VELatLong(33.607 ,-91.129),
new VELatLong(33.69 ,-91.222),
new VELatLong(33.681 ,-91.037),
new VELatLong(33.726 ,-91.14),
new VELatLong(33.783 ,-90.986),
new VELatLong(33.967 ,-91.09),
new VELatLong(34.026 ,-90.893),
new VELatLong(34.164 ,-90.927),
new VELatLong(34.159 ,-90.809),
new VELatLong(34.238 ,-90.934),
new VELatLong(34.207 ,-90.848),
new VELatLong(34.364 ,-90.762),
new VELatLong(34.314 ,-90.661),
new VELatLong(34.418 ,-90.573),
new VELatLong(34.689 ,-90.569),
new VELatLong(34.624 ,-90.535),
new VELatLong(34.684 ,-90.461),
new VELatLong(34.711 ,-90.567),
new VELatLong(34.785 ,-90.547),
new VELatLong(34.737 ,-90.459),
new VELatLong(34.892 ,-90.464),
new VELatLong(34.848 ,-90.306),
new VELatLong(34.924 ,-90.241),
new VELatLong(34.995 ,-90.308), // bottom of tennessee border
new VELatLong(35.139 ,-90.065),
new VELatLong(35.265 ,-90.16),
new VELatLong(35.277 ,-90.168),
new VELatLong(35.386 ,-90.08),
new VELatLong(35.421 ,-90.169),
new VELatLong(35.429 ,-90.002),
new VELatLong(35.547 ,-90.04),
new VELatLong(35.514 ,-89.916),
new VELatLong(35.592 ,-89.955),
new VELatLong(35.639 ,-89.853),
new VELatLong(35.729 ,-89.957),
new VELatLong(35.814 ,-89.71),
new VELatLong(35.909 ,-89.742),
new VELatLong(35.892 ,-89.642),
new VELatLong(36.001 ,-89.733), //top right
new VELatLong(35.996 ,-90.377),
new VELatLong(36.303 ,-90.064),
new VELatLong(36.497 ,-90.151),
new VELatLong(36.499 ,-90.789),
new VELatLong(36.499 ,-90.802),
new VELatLong(36.499 ,-94.617), //top left
new VELatLong(35.398 ,-94.431),
new VELatLong(33.637 ,-94.485),
new VELatLong(33.545 ,-94.386),
new VELatLong(33.551 ,-94.043),
new VELatLong(33.019 ,-94.042) //bottom left
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Arkansas');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Arizona
points = [
new VELatLong(37 ,-114.049), //top left
new VELatLong(36.194 ,-114.045),
new VELatLong(36.016 ,-114.21),
new VELatLong(36.142 ,-114.369),
new VELatLong(36.103 ,-114.735),
new VELatLong(35.804 ,-114.71),
new VELatLong(35.79 ,-114.698),
new VELatLong(35.181 ,-114.568),
new VELatLong(35.001 ,-114.632), //top of cali section
new VELatLong(34.456 ,-114.384),
new VELatLong(34.261 ,-114.129),
new VELatLong(34.106 ,-114.415),
new VELatLong(33.937 ,-114.533),
new VELatLong(33.554 ,-114.524),
new VELatLong(33.406 ,-114.723),
new VELatLong(33.304 ,-114.73),
new VELatLong(33.088 ,-114.706),
new VELatLong(33.024 ,-114.51),
new VELatLong(32.845 ,-114.469),
new VELatLong(32.719 ,-114.718), //bottom of cali section
new VELatLong(32.619135,-114.809875),
new VELatLong(32.488914,-114.807129), //bottom left
new VELatLong(31.332525,-111.071777),
new VELatLong(31.332 ,-109.049), //bottom right
new VELatLong(34.96 ,-109.045),
new VELatLong(36.002 ,-109.045),
new VELatLong(36.999 ,-109.044) //top right
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Arizona');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//California ( TODO: Need Better Coastal Borders )
points = [
new VELatLong(41.998 ,-124.215), //top left
new VELatLong(41.995 ,-119.998), //top right
new VELatLong(39 ,-120),
new VELatLong(36.972 ,-117.166),
new VELatLong(35.001 ,-114.632), //top of AZ section
new VELatLong(34.456 ,-114.384),
new VELatLong(34.261 ,-114.129),
new VELatLong(34.106 ,-114.415),
new VELatLong(33.937 ,-114.533),
new VELatLong(33.554 ,-114.524),
new VELatLong(33.406 ,-114.723),
new VELatLong(33.304 ,-114.73),
new VELatLong(33.088 ,-114.706),
new VELatLong(33.024 ,-114.51),
new VELatLong(32.845 ,-114.469),
new VELatLong(32.719 ,-114.718), //bottom right
new VELatLong(32.534042,-117.124729), //bottom left
//temporary coastal border
new VELatLong(32.558859,-117.132025),
new VELatLong(32.663945,-117.24412),
new VELatLong(33.740472,-118.411932), //long beach area
new VELatLong(34.444857,-120.473328),
new VELatLong(34.550115,-120.633316),
new VELatLong(34.576126,-120.658035),
new VELatLong(38.91775,-123.727341),
new VELatLong(38.957273,-123.74382),
new VELatLong(40.258569,-124.362488),
new VELatLong(40.442767,-124.406433)
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('California');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Colorado
points = [
new VELatLong(36.999,-109.044), //bottom left
new VELatLong(37 ,-103.001),
new VELatLong(36.993,-102.041), //bottom right
new VELatLong(41.002,-102.051), //top right
new VELatLong(41,-109.049) //top left
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Colorado');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Connecticut ( TODO: Need better MA border )
points = [
new VELatLong(41.423 ,-71.798), // bottom right
new VELatLong(42.008 ,-71.8), // top of RI section
new VELatLong(42.023 ,-71.8), // top right
new VELatLong(42.049 ,-73.488), // top left
new VELatLong(41.295 ,-73.551),
new VELatLong(41.212 ,-73.482),
new VELatLong(41.101 ,-73.728),
new VELatLong(40.991 ,-73.659) // bottom left
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Connecticut');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Delaware
points = [
new VELatLong(38.78781,-75.012589), //bottom of NJ border
new VELatLong(39.057584,-75.168457),
new VELatLong(39.076776,-75.18837),
new VELatLong(39.250334,-75.319519),
new VELatLong(39.384202,-75.478134),
new VELatLong(39.455282,-75.559845),
new VELatLong(39.496093,-75.559158),
new VELatLong(39.497153,-75.528259),
new VELatLong(39.541117,-75.532379),
new VELatLong(39.563353,-75.513153),
new VELatLong(39.606217,-75.557098),
new VELatLong(39.630019,-75.559845),
new VELatLong(39.697149,-75.506973),
new VELatLong(39.763158,-75.461655),
new VELatLong(39.777408,-75.448608),
new VELatLong(39.796403,-75.404663),
new VELatLong(39.802 ,-75.415), //bottom of PA border
new VELatLong(39.795876,-75.405006),//top right
new VELatLong(39.802 ,-75.415),
new VELatLong(39.820667,-75.454102),
new VELatLong(39.837805,-75.526886),
new VELatLong(39.83675,-75.59967),
new VELatLong(39.82304,-75.657692),
new VELatLong(39.807 ,-75.693),
new VELatLong(39.788 ,-75.721),
new VELatLong(39.721 ,-75.789), //top left
new VELatLong(38.46 ,-75.693),
new VELatLong(38.451 ,-75.093),
new VELatLong(38.451 ,-75.058),
new VELatLong(38.451 ,-75.049) //bottom right
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Delaware');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Florida
points = [
new VELatLong(30.727 ,-81.494), //top right
new VELatLong(30.791 ,-82.016),
new VELatLong(30.374 ,-82.037),
new VELatLong(30.358 ,-82.16),
new VELatLong(30.568 ,-82.215),
new VELatLong(30.711 ,-84.864),
new VELatLong(31, -85.002), //left side of GA border
new VELatLong(30.997 ,-87.598), //top left
new VELatLong(30.846 ,-87.625 ),
new VELatLong(30.655 ,-87.397 ),
new VELatLong(30.466 ,-87.426), //bottom left of panhandle
//Coastline
new VELatLong(30.447194,-87.370834),
new VELatLong(30.441422,-87.367229),
new VELatLong(30.435354,-87.367229),
new VELatLong(30.431062,-87.370491),
new VELatLong(30.41774,-87.394695),
new VELatLong(30.409449,-87.404652),
new VELatLong(30.410042,-87.424049),
new VELatLong(30.397753,-87.434006),
new VELatLong(30.390498,-87.441044),
new VELatLong(30.382057,-87.438641),
new VELatLong(30.368284,-87.450485),
new VELatLong(30.346361,-87.450829),
new VELatLong(30.334065,-87.462845),
new VELatLong(30.328138,-87.501469),
new VELatLong(30.323545,-87.504902),
new VELatLong(30.309171,-87.50473),
new VELatLong(30.304873,-87.491169),
new VELatLong(30.310949,-87.450314),
new VELatLong(30.300427,-87.452545),
new VELatLong(30.287976,-87.500095),
new VELatLong(30.283974,-87.518291),
new VELatLong(30.278786,-87.51812),
new VELatLong(30.297611,-87.419243), //Gulf Islands National Seashore
new VELatLong(30.319248,-87.313843),
new VELatLong(30.315543,-87.268696),
new VELatLong(30.320878,-87.204494),
new VELatLong(30.354065,-87.012749),
new VELatLong(30.378947,-86.861),
new VELatLong(30.389757,-86.765556),
new VELatLong(30.395088,-86.676464),
new VELatLong(30.392867,-86.594582),
new VELatLong(30.380724,-86.510811),
new VELatLong(30.38028,-86.504631),
new VELatLong(30.382797,-86.454506),
new VELatLong(30.375393,-86.377258),
new VELatLong(30.36621,-86.317005),
new VELatLong(30.329324,-86.174355),
new VELatLong(30.29598,-86.070671),
new VELatLong(30.270484,-86.00029),
new VELatLong(30.235934,-85.919609),
new VELatLong(30.166946,-85.792923), //Panama City Beach
new VELatLong(30.136517,-85.750179),
new VELatLong(30.12167,-85.733185),
new VELatLong(30.117809,-85.729408),
new VELatLong(30.093603,-85.690956),
new VELatLong(30.052008,-85.594139),
new VELatLong(30.033433,-85.578346),
new VELatLong(30.008166,-85.551567),
new VELatLong(29.995678,-85.539894),
new VELatLong(29.978729,-85.519123),
new VELatLong(29.960884,-85.489597),
new VELatLong(29.957165,-85.47226),
new VELatLong(29.958207,-85.461617),
new VELatLong(29.949878,-85.430717),
new VELatLong(29.942887,-85.412521),
new VELatLong(29.893341,-85.36068),
new VELatLong(29.876672,-85.390205),
new VELatLong(29.866549,-85.406942),
new VELatLong(29.859925,-85.411835),
new VELatLong(29.83506,-85.4181),
new VELatLong(29.816668,-85.416727),
new VELatLong(29.785833,-85.411062),
new VELatLong(29.759385,-85.403938),
new VELatLong(29.731067,-85.394068),
new VELatLong(29.707139,-85.384111),
new VELatLong(29.682535,-85.370035),
new VELatLong(29.660833,-85.353041),
new VELatLong(29.656283,-85.346861),
new VELatLong(29.657253,-85.345058),
new VELatLong(29.66844,-85.346947),
new VELatLong(29.683728,-85.302057),
new VELatLong(29.682237,-85.26721),
new VELatLong(29.676346,-85.242405),
new VELatLong(29.675973,-85.21966),
new VELatLong(29.653822,-85.168505),
new VELatLong(29.637411,-85.146189),
new VELatLong(29.630473,-85.132713),
new VELatLong(29.628235,-85.123272),
new VELatLong(29.623609,-85.098124),
new VELatLong(29.585699,-85.051003), //(less detail after this point)
new VELatLong(29.628981,-84.91024),
new VELatLong(29.897657,-84.345989),
new VELatLong(29.900782,-84.341354),
new VELatLong(29.923845,-84.331741),
new VELatLong(29.971294,-84.330368),
new VELatLong(30.070282,-84.166946),
new VELatLong(30.067905,-83.997345), //big cove
new VELatLong(29.970104,-83.83049),
new VELatLong(29.757821,-83.586044),
new VELatLong(29.673735,-83.455582),
new VELatLong(29.501769,-83.404083),
new VELatLong(29.428235,-83.2901),
new VELatLong(29.288196,-83.169937),
new VELatLong(29.090377,-83.082733),
new VELatLong(28.940261,-82.779236),
new VELatLong(28.7207,-82.746964), //homosassa Bay
new VELatLong(28.572462,-82.665253),
new VELatLong(28.401065,-82.718811),
new VELatLong(28.21487,-82.86026),
new VELatLong(27.84879,-82.86026), //Indian Shores
new VELatLong(27.527758,-82.757263),
new VELatLong(27.046895,-82.451019),
new VELatLong(26.784847,-82.279358),
new VELatLong(26.667096,-82.271118),
new VELatLong(26.464426,-82.184601),
new VELatLong(26.431228,-82.147522),
new VELatLong(26.41524,-82.081604),
new VELatLong(26.436147,-81.959381), //Fort Myers Beach
new VELatLong(26.256473,-81.839905),
new VELatLong(26.093788,-81.815186),
new VELatLong(25.839449,-81.698456),
new VELatLong(25.688563,-81.363373),
new VELatLong(25.226063,-81.186218),
new VELatLong(25.147771,-81.151886),
new VELatLong(25.10301,-81.090088),
new VELatLong(25.010951,-80.776978),
new VELatLong(25.060721,-80.419922), //Key Largo
new VELatLong(25.438314,-80.128784),
new VELatLong(25.815963,-80.106812), //Miami Beach
new VELatLong(26.832649,-80.005188), //North Palm Beach
new VELatLong(27.927687,-80.399323),
new VELatLong(28.455411,-80.500946),
new VELatLong(28.591757,-80.550385),
new VELatLong(29.602118,-81.12854),
new VELatLong(30.168876,-81.318054),
new VELatLong(30.704058,-81.400452)
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Florida');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Georgia
points = [
new VELatLong(32.032964,-80.837059), //coast ( bottom tip of SC )
new VELatLong(32.099299,-81.081333), //savannah area
new VELatLong(32.226 ,-81.144),
new VELatLong(32.464 ,-81.186),
new VELatLong(32.628 ,-81.418),
new VELatLong(33.01 ,-81.495),
new VELatLong(33.147 ,-81.751),
new VELatLong(33.347 ,-81.94),
new VELatLong(33.465 ,-81.929),
new VELatLong(33.945 ,-82.557),
new VELatLong(34.474 ,-82.877),
new VELatLong(34.682 ,-83.342),
new VELatLong(35 ,-83.108), //top right
new VELatLong(34.988 ,-84.322), //left side of NC segment
new VELatLong(34.984 ,-85.605), //top left
new VELatLong(32.864 ,-85.184 ),
new VELatLong(32.426 ,-84.964 ),
new VELatLong(32.326 ,-85.006 ),
new VELatLong(32.261 ,-84.889 ),
new VELatLong(32.133 ,-85.062 ),
new VELatLong(31.84 , -85.141 ),
new VELatLong(31.538 ,-85.041 ),
new VELatLong(31.188 ,-85.108 ),
new VELatLong(31, -85.002), //bottom of AL border
new VELatLong(31, -85.002), //bottom left
new VELatLong(30.711 ,-84.864),
new VELatLong(30.568 ,-82.215),
new VELatLong(30.358 ,-82.16),
new VELatLong(30.374 ,-82.037),
new VELatLong(30.791 ,-82.016),
new VELatLong(30.727 ,-81.494) //bottom right
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Georgia');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Idaho
points = [
new VELatLong(48.9991,-117.0323), //top left
new VELatLong(48.999 ,-117.031),
new VELatLong(46.354 ,-117.06),
new VELatLong(46.168 ,-116.921),
new VELatLong(46.088 ,-116.981),
new VELatLong(45.995 ,-116.914), //top of OR border
new VELatLong(45.824 ,-116.779),
new VELatLong(45.752 ,-116.547),
new VELatLong(45.603 ,-116.462),
new VELatLong(45.025 ,-116.844),
new VELatLong(44.881 ,-116.855),
new VELatLong(44.727 ,-117.06),
new VELatLong(44.393 ,-117.241),
new VELatLong(44.273 ,-117.196),
new VELatLong(44.17 ,-116.894),
new VELatLong(43.83 ,-117.031),
new VELatLong(42.002 ,-117.024), //bottom left
new VELatLong(41.994 ,-114.04), //left of UT border
new VELatLong(42.001 ,-111.045), //bottom right
new VELatLong(44.475 ,-111.052), //bottom of MT border
new VELatLong(44.755 ,-111.383),
new VELatLong(44.643 ,-111.514),
new VELatLong(44.541 ,-111.471),
new VELatLong(44.569 ,-112.284),
new VELatLong(44.45 ,-112.383),
new VELatLong(44.485 ,-112.778),
new VELatLong(44.359 ,-112.854),
new VELatLong(44.453 ,-113.004),
new VELatLong(44.774 ,-113.135),
new VELatLong(44.864 ,-113.451),
new VELatLong(45.058 ,-113.45),
new VELatLong(45.26 ,-113.689),
new VELatLong(45.603 ,-113.807),
new VELatLong(45.696 ,-113.937),
new VELatLong(45.459 ,-114.332),
new VELatLong(45.558 ,-114.563),
new VELatLong(45.704 ,-114.495),
new VELatLong(45.777 ,-114.562),
new VELatLong(45.885 ,-114.386),
new VELatLong(46.147 ,-114.525),
new VELatLong(46.172 ,-114.444),
new VELatLong(46.647 ,-114.319),
new VELatLong(46.7 ,-114.769),
new VELatLong(47.253 ,-115.317),
new VELatLong(47.427 ,-115.756),
new VELatLong(47.48 ,-115.627),
new VELatLong(47.55 ,-115.754),
new VELatLong(47.696 ,-115.723),
new VELatLong(47.978 ,-116.047),
new VELatLong(49 ,-116.048) //top right
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Idaho');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Illinois
points = [
new VELatLong(42.492 ,-87.802), //top right of land border
new VELatLong(42.495 ,-88.94),
new VELatLong(42.508 ,-90.64), //top left
new VELatLong(42.35 ,-90.44),
new VELatLong(42.336 ,-90.428),
new VELatLong(42.288 ,-90.427),
new VELatLong(42.281 ,-90.43),
new VELatLong(42.112 ,-90.161),
new VELatLong(41.808 ,-90.181),
new VELatLong(41.522 ,-90.462),
new VELatLong(41.412 ,-91.046),
new VELatLong(41.242 ,-91.113),
new VELatLong(41.1 ,-90.948),
new VELatLong(40.953 ,-90.952),
new VELatLong(40.67 ,-91.123),
new VELatLong(40.557 ,-91.402),
new VELatLong(40.378 ,-91.419), //bottom of IA border
new VELatLong(40.125 ,-91.51),
new VELatLong(39.728 ,-91.367),
new VELatLong(39.257 ,-90.731),
new VELatLong(38.888 ,-90.625),
new VELatLong(38.967 ,-90.451),
new VELatLong(38.844 ,-90.109),
new VELatLong(38.326 ,-90.373),
new VELatLong(38.212 ,-90.351),
new VELatLong(37.958 ,-89.925),
new VELatLong(37.88 ,-89.949),
new VELatLong(37.903 ,-89.839),
new VELatLong(37.693 ,-89.517),
new VELatLong(37.387 ,-89.421),
new VELatLong(37.261 ,-89.522),
new VELatLong(37.038 ,-89.376),
new VELatLong(36.989 ,-89.276),
new VELatLong(37.072 ,-89.254),
new VELatLong(36.982 ,-89.133), //bottom of MO border
new VELatLong(37.067 ,-89.173),
new VELatLong(37.224 ,-89 ,17),
new VELatLong(37.159 ,-88.761),
new VELatLong(37.145 ,-88.735),
new VELatLong(37.075 ,-88.459),
new VELatLong(37.391 ,-88.474),
new VELatLong(37.488 ,-88.065),
new VELatLong(37.656 ,-88.16),
new VELatLong(37.799 ,-88.027), //top of KY border
new VELatLong(37.901 ,-88.097),
new VELatLong(37.891 ,-88.014),
new VELatLong(38.046 ,-88.042),
new VELatLong(38.162 ,-87.911),
new VELatLong(38.256 ,-87.988),
new VELatLong(38.28 ,-87.841),
new VELatLong(38.739 ,-87.496),
new VELatLong(38.952 ,-87.512),
new VELatLong(39.136 ,-87.658),
new VELatLong(39.348 ,-87.531),
new VELatLong(41.712 ,-87.524) //top of left part of IN border
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Illinois');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Indiana
points = [
new VELatLong(41.696 ,-84.806), //top of OH border
new VELatLong(39.105 ,-84.819), //bottom right
new VELatLong(39.055 ,-84.897),
new VELatLong(38.785 ,-84.813),
new VELatLong(38.688 ,-85.171),
new VELatLong(38.728 ,-85.435),
new VELatLong(38.715 ,-85.447),
new VELatLong(38.534 ,-85.421),
new VELatLong(38.299 ,-85.677),
new VELatLong(38.278 ,-85.826),
new VELatLong(38.025 ,-85.923),
new VELatLong(37.958 ,-86.039),
new VELatLong(38.056 ,-86.266),
new VELatLong(38.198 ,-86.362),
new VELatLong(38.138 ,-86.324),
new VELatLong(38.121 ,-86.46),
new VELatLong(37.927 ,-86.509),
new VELatLong(37.843 ,-86.637),
new VELatLong(37.999 ,-86.816),
new VELatLong(37.782 ,-87.111),
new VELatLong(37.976 ,-87.589),
new VELatLong(37.833 ,-87.613),
new VELatLong(37.928 ,-87.893),
new VELatLong(37.807 ,-87.907),
new VELatLong(37.799 ,-88.027), //bottom left
new VELatLong(37.901 ,-88.097),
new VELatLong(37.891 ,-88.014),
new VELatLong(38.046 ,-88.042),
new VELatLong(38.162 ,-87.911),
new VELatLong(38.256 ,-87.988),
new VELatLong(38.28 ,-87.841),
new VELatLong(38.739 ,-87.496),
new VELatLong(38.952 ,-87.512),
new VELatLong(39.136 ,-87.658),
new VELatLong(39.348 ,-87.531),
new VELatLong(41.712 ,-87.524), //top left
new VELatLong(41.76 ,-86.825),
new VELatLong(41.76 ,-84.806) //top right
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Indiana');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Iowa
points = [
new VELatLong(43.5 ,-96.453), //top left
new VELatLong(43.5 ,-96.598),
new VELatLong(43.385 ,-96.52),
new VELatLong(43.269 ,-96.585),
new VELatLong(43.12 ,-96.436),
new VELatLong(42.737 ,-96.637),
new VELatLong(42.489 ,-96.443), //top of NE border
new VELatLong(42.167 ,-96.347),
new VELatLong(41.798 ,-96.066),
new VELatLong(41.608 ,-96.116),
new VELatLong(41.601 ,-96.113),
new VELatLong(41.452 ,-95.919),
new VELatLong(41.346 ,-95.957),
new VELatLong(41.302 ,-95.872),
new VELatLong(41.201 ,-95.927),
new VELatLong(41.177 ,-95.841),
new VELatLong(40.895 ,-95.809),
new VELatLong(40.734 ,-95.888),
new VELatLong(40.585 ,-95.765), //bottom left
new VELatLong(40.614 ,-91.728),
new VELatLong(40.403 ,-91.505),
new VELatLong(40.4 ,-91.5),
new VELatLong(40.378 ,-91.419), //bottom right
new VELatLong(40.557 ,-91.402),
new VELatLong(40.67 ,-91.123),
new VELatLong(40.953 ,-90.952),
new VELatLong(41.1 ,-90.948),
new VELatLong(41.242 ,-91.113),
new VELatLong(41.412 ,-91.046),
new VELatLong(41.522 ,-90.462),
new VELatLong(41.808 ,-90.181),
new VELatLong(42.112 ,-90.161),
new VELatLong(42.281 ,-90.43),
new VELatLong(42.288 ,-90.427),
new VELatLong(42.336 ,-90.428),
new VELatLong(42.35 ,-90.44),
new VELatLong(42.508 ,-90.64), //bottom of WI border
new VELatLong(42.634 ,-90.707),
new VELatLong(42.751 ,-91.065),
new VELatLong(43.125 ,-91.178),
new VELatLong(43.252 ,-91.059),
new VELatLong(43.258 ,-91.062),
new VELatLong(43.353 ,-91.206),
new VELatLong(43.501 ,-91.217) //top right
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Iowa');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Kansas
points = [
new VELatLong(40.003 ,-102.051), //top left
new VELatLong(40 ,-95.307), //top right
new VELatLong(39.874 ,-95.13),
new VELatLong(39.887 ,-94.928),
new VELatLong(39.744 ,-94.861),
new VELatLong(39.741 ,-94.962),
new VELatLong(39.542 ,-95.109),
new VELatLong(39.386 ,-94.882),
new VELatLong(39.213 ,-94.827),
new VELatLong(39.148 ,-94.588),
new VELatLong(36.998 ,-94.618), //bottom right
new VELatLong(36.993 ,-102.041) //bottom left
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Kansas');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Kentucky (TODO: Make south border better. )
points = [
new VELatLong(39.105 ,-84.819), //top of IN border
new VELatLong(39.055 ,-84.897),
new VELatLong(38.785 ,-84.813),
new VELatLong(38.688 ,-85.171),
new VELatLong(38.728 ,-85.435),
new VELatLong(38.715 ,-85.447),
new VELatLong(38.534 ,-85.421),
new VELatLong(38.299 ,-85.677),
new VELatLong(38.278 ,-85.826),
new VELatLong(38.025 ,-85.923),
new VELatLong(37.958 ,-86.039),
new VELatLong(38.056 ,-86.266),
new VELatLong(38.198 ,-86.362),
new VELatLong(38.138 ,-86.324),
new VELatLong(38.121 ,-86.46),
new VELatLong(37.927 ,-86.509),
new VELatLong(37.843 ,-86.637),
new VELatLong(37.999 ,-86.816),
new VELatLong(37.782 ,-87.111),
new VELatLong(37.976 ,-87.589),
new VELatLong(37.833 ,-87.613),
new VELatLong(37.928 ,-87.893),
new VELatLong(37.807 ,-87.907),
new VELatLong(37.799 ,-88.027), //top of IL border
new VELatLong(37.656 ,-88.16),
new VELatLong(37.488 ,-88.065),
new VELatLong(37.391 ,-88.474),
new VELatLong(37.075 ,-88.459),
new VELatLong(37.145 ,-88.735),
new VELatLong(37.159 ,-88.761),
new VELatLong(37.224 ,-89 ,17),
new VELatLong(37.067 ,-89.173),
new VELatLong(36.982 ,-89.133), //top of MO border
new VELatLong(36.666 ,-89.159),
new VELatLong(36.567 ,-89.236),
new VELatLong(36.625 ,-89.366),
new VELatLong(36.499 ,-89.417),
new VELatLong(36.497 ,-89.485),
new VELatLong(36.497218,-89.484673),
new VELatLong(36.582 ,-89.53),
new VELatLong(36.498 ,-89.539), //bottom left
new VELatLong(36.497 ,-89.485),
new VELatLong(36.499 ,-89.417),
new VELatLong(36.497 ,-88.053),
new VELatLong(36.678 ,-88.07),
new VELatLong(36.601 ,-83.675), //bottom of VA Border
new VELatLong(36.745 ,-83.133),
new VELatLong(36.852 ,-83.074),
new VELatLong(36.897 ,-82.873),
new VELatLong(37.121 ,-82.721),
new VELatLong(37.538 ,-81.968), //bottom WV Border
new VELatLong(37.678 ,-82.304),
new VELatLong(37.93 ,-82.5),
new VELatLong(37.98 ,-82.464),
new VELatLong(38.162 ,-82.643),
new VELatLong(38.421 ,-82.594), //right OH Border
new VELatLong(38.59 ,-82.843),
new VELatLong(38.755 ,-82.889),
new VELatLong(38.596 ,-83.293),
new VELatLong(38.703 ,-83.526),
new VELatLong(38.626 ,-83.668),
new VELatLong(38.761 ,-83.869),
new VELatLong(38.808 ,-84.215),
new VELatLong(39.119 ,-84.451),
new VELatLong(39.105 ,-84.819) //left OH Border
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Kentucky');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Louisiana
points = [
new VELatLong(33.019 ,-94.042), //top left
new VELatLong(31.992 ,-94.041),
new VELatLong(31.777 ,-93.825),
new VELatLong(31.585 ,-93.834),
new VELatLong(31.509 ,-93.712),
new VELatLong(31.031 ,-93.508),
new VELatLong(30.538 ,-93.739),
new VELatLong(30.137 ,-93.691),
new VELatLong(29.999 ,-93.769), //bottom left
new VELatLong(29.795368,-93.927612),
new VELatLong(29.764377,-93.891907),
new VELatLong(29.683281,-93.834229),
new VELatLong(29.59376,-93.810883),
new VELatLong(29.616446,-92.774048),
new VELatLong(29.51611,-92.298889),
new VELatLong(29.458731,-91.819611),
new VELatLong(29.227692,-91.271667),
new VELatLong(29.018949,-90.920105),
new VELatLong(29.053769,-90.22522),
new VELatLong(28.906004,-89.420471),
new VELatLong(28.960089,-89.110107),
new VELatLong(29.186936,-88.981018),
new VELatLong(30.147502,-89.077148),
new VELatLong(30.212202,-89.183578),
new VELatLong(30.180154,-89.265289),
new VELatLong(30.176593,-89.421844),
new VELatLong(30.157002,-89.508362),
new VELatLong(30.193805,-89.531021),
new VELatLong(30.192618,-89.547501),
new VELatLong(30.182528,-89.559174),
new VELatLong(30.181341,-89.57222),
new VELatLong(30.202114,-89.589386),
new VELatLong(30.221695,-89.614105),
new VELatLong(30.216 ,-89.604), //bottom right
new VELatLong(30.664 ,-89.848),
new VELatLong(31.004 ,-89.733),
new VELatLong(30.999 ,-91.637),
new VELatLong(31.054 ,-91.559),
new VELatLong(31.257 ,-91.653),
new VELatLong(31.278 ,-91.513),
new VELatLong(31.407 ,-91.577),
new VELatLong(31.373 ,-91.472),
new VELatLong(31.524 ,-91.521),
new VELatLong(31.573 ,-91.406),
new VELatLong(31.63 ,-91.515),
new VELatLong(31.619 ,-91.403),
new VELatLong(31.746 ,-91.369),
new VELatLong(31.754 ,-91.262),
new VELatLong(31.76 ,-91.363),
new VELatLong(31.847 ,-91.341),
new VELatLong(31.813 ,-91.254),
new VELatLong(32.011 ,-91.08),
new VELatLong(32.074 ,-91.156),
new VELatLong(32.145 ,-91.004),
new VELatLong(32.134 ,-91.167),
new VELatLong(32.197 ,-91.163),
new VELatLong(32.193 ,-90.994),
new VELatLong(32.367 ,-90.877),
new VELatLong(32.354 ,-90.994),
new VELatLong(32.436 ,-90.967),
new VELatLong(32.481 ,-91.115),
new VELatLong(32.547 ,-91.095),
new VELatLong(32.494 ,-90.987),
new VELatLong(32.543 ,-91.072),
new VELatLong(32.64 ,-91.013),
new VELatLong(32.618 ,-91.152),
new VELatLong(32.719 ,-91.053),
new VELatLong(32.778 ,-91.163),
new VELatLong(32.905 ,-91.063),
new VELatLong(32.989 ,-91.105),
new VELatLong(32.916 ,-91.209),
new VELatLong(33.004 ,-91.166) //top right
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Louisiana');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Maine
points = [
new VELatLong(45.306286,-71.08429), //top left
new VELatLong(45.314495,-71.059227),
new VELatLong(45.311115,-71.033821),
new VELatLong(45.328979,-71.004982),
new VELatLong(45.346596,-71.011162),
new VELatLong(45.332116,-70.984039),
new VELatLong(45.339357,-70.951424),
new VELatLong(45.312563,-70.918808),
new VELatLong(45.296626,-70.911598),
new VELatLong(45.279235,-70.921555),
new VELatLong(45.252172,-70.895119),
new VELatLong(45.24347,-70.897179),
new VELatLong(45.230173,-70.85804),
new VELatLong(45.236459,-70.838127),
new VELatLong(45.243953,-70.848427),
new VELatLong(45.263772,-70.84877),
new VELatLong(45.293728,-70.835037),
new VELatLong(45.297834,-70.816498),
new VELatLong(45.337909,-70.819588),
new VELatLong(45.398932,-70.825768),
new VELatLong(45.429299,-70.795212),
new VELatLong(45.428335,-70.756073),
new VELatLong(45.391217,-70.712128),
new VELatLong(45.395316,-70.682945),
new VELatLong(45.386877,-70.661316),
new VELatLong(45.377714,-70.659599),
new VELatLong(45.383019,-70.63488),
new VELatLong(45.415081,-70.63488),
new VELatLong(45.489742,-70.717964),
new VELatLong(45.514046,-70.722771),
new VELatLong(45.569111,-70.687065),
new VELatLong(45.666846,-70.559349),
new VELatLong(45.706419,-70.466652),
new VELatLong(45.728712,-70.396614),
new VELatLong(45.794818,-70.4179),
new VELatLong(45.836454,-70.369148),
new VELatLong(45.893115,-70.266151),
new VELatLong(45.92417,-70.262718), //lac du portage
new VELatLong(45.963084,-70.31559),
new VELatLong(46.064417,-70.309753),
new VELatLong(46.099424,-70.284691),
new VELatLong(46.100376,-70.254822),
new VELatLong(46.150346,-70.240059),
new VELatLong(46.191002,-70.292931),
new VELatLong(46.291443,-70.231133),
new VELatLong(46.329624,-70.208817),
new VELatLong(46.359487,-70.174141),
new VELatLong(46.381044,-70.126762),
new VELatLong(46.409694,-70.096207),
new VELatLong(46.415612,-70.057411),
new VELatLong(46.696316,-69.9963), //Lac-Frontiere
new VELatLong(47.459898,-69.225197),
new VELatLong(47.457112,-69.178505),
new VELatLong(47.433661,-69.062462),
new VELatLong(47.42739,-69.043236),
new VELatLong(47.408109,-69.029846),
new VELatLong(47.383474,-69.040146),
new VELatLong(47.377895,-69.054222),
new VELatLong(47.306939,-69.048386),
new VELatLong(47.253602,-69.045982),
new VELatLong(47.206508,-68.943329),
new VELatLong(47.178746,-68.900414),
new VELatLong(47.215604,-68.813553),
new VELatLong(47.241949,-68.715019),
new VELatLong(47.258495,-68.59314), //Fort Kent
new VELatLong(47.287846,-68.57769),
new VELatLong(47.296229,-68.513489),
new VELatLong(47.297161,-68.47229),
new VELatLong(47.288079,-68.414955),
new VELatLong(47.288079,-68.37719),
new VELatLong(47.304145,-68.385086),
new VELatLong(47.349291,-68.3741),
new VELatLong(47.35999,-68.327408),
new VELatLong(47.35999,-68.285866),
new VELatLong(47.353711,-68.230591),
new VELatLong(47.325792,-68.15712),
new VELatLong(47.306939,-68.14991),
new VELatLong(47.27457,-68.086395),
new VELatLong(47.237753,-68.018417),
new VELatLong(47.206975,-67.970352),
new VELatLong(47.196945,-67.951813),
new VELatLong(47.147933,-67.909584), //saint-leonard-parent
new VELatLong(47.100278,-67.867012),
new VELatLong(47.06755,-67.790108),
new VELatLong(45.941601,-67.780151),
new VELatLong(45.918199,-67.750626),
new VELatLong(45.897655,-67.767792),
new VELatLong(45.882839,-67.802811),
new VELatLong(45.823536,-67.755432),
new VELatLong(45.730629,-67.782211),
new VELatLong(45.676921,-67.769852),
new VELatLong(45.688914,-67.732773),
new VELatLong(45.681239,-67.7108),
new VELatLong(45.623643,-67.641449),
new VELatLong(45.605391,-67.452621),
new VELatLong(45.573678,-67.422409),
new VELatLong(45.502978,-67.416916),
new VELatLong(45.488539,-67.501373),
new VELatLong(45.377232,-67.418289),
new VELatLong(45.27392,-67.477341),
new VELatLong(45.125382,-67.340012),
new VELatLong(45.190748,-67.285767),
new VELatLong(45.163642,-67.164917), //champlain
new VELatLong(45.110362,-67.109985),
new VELatLong(44.953623,-67.020721),
new VELatLong(44.910359,-66.968536),
new VELatLong(44.82763,-66.96373),
new VELatLong(44.825195,-66.932831),
new VELatLong(44.794018,-66.885452),
new VELatLong(44.775499,-66.902618),
new VELatLong(44.698433,-67.031708), //near end of line (on map) that represents coastal border
new VELatLong(44.134913,-68.230591),
new VELatLong(43.992815,-68.626099),
new VELatLong(43.940428,-69.185028), //tenants harbor
new VELatLong(43.693694,-69.833221),
new VELatLong(43.560491,-70.197144),
new VELatLong(43.358137,-70.426483),
new VELatLong(43.219188,-70.573425),
new VELatLong(43.016697,-70.675049), //bottom left
new VELatLong(43.055844,-70.698395),
new VELatLong(43.129052,-70.827484),
new VELatLong(43.228194,-70.811005), //rollinsford
new VELatLong(43.335167,-70.9552),
new VELatLong(43.478833,-70.97168),
new VELatLong(43.574422,-70.973053), // Great East Lake
new VELatLong(44.76258,-71.038113) //umbagog lake
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Maine');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Maryland ( TODO: better borders all around )
points = [
new VELatLong(38.015 ,-75.387), //bottom left-ish
new VELatLong(37.979 ,-75.632),
new VELatLong(37.883 ,-76.234),
new VELatLong(37.993 ,-76.576),
new VELatLong(38.042 ,-76.512),
new VELatLong(38.144 ,-76.616),
new VELatLong(38.155 ,-76.705),
new VELatLong(38.065 ,-76.691),
new VELatLong(38.164 ,-76.774),
new VELatLong(38.195 ,-76.989),
new VELatLong(38.4 ,-77.05),
new VELatLong(38.351 ,-77.363),
new VELatLong(38.357 ,-77.29),
new VELatLong(38.438 ,-77.37),
new VELatLong(38.394 ,-77.312),
new VELatLong(38.659 ,-77.243),
new VELatLong(38.72 ,-77.045),
new VELatLong(38.911 ,-77.101),
new VELatLong(38.934 ,-77.12),
new VELatLong(39.077 ,-77.463),
new VELatLong(39.14 ,-77.526),
new VELatLong(39.225 ,-77.458),
new VELatLong(39.307 ,-77.636),
new VELatLong(39.31 ,-77.648),
new VELatLong(39.321 ,-77.719), //top of virginia
new VELatLong(39.496 ,-77.766),
new VELatLong(39.552 ,-77.887),
new VELatLong(39.603 ,-77.834),
new VELatLong(39.696 ,-78.174),
new VELatLong(39.624 ,-78.428),
new VELatLong(39.516 ,-78.468),
new VELatLong(39.544 ,-78.687),
new VELatLong(39.645 ,-78.776),
new VELatLong(39.441 ,-78.958),
new VELatLong(39.474 ,-79.105),
new VELatLong(39.202 ,-79.473),
new VELatLong(39.721 ,-79.477), //top left
new VELatLong(39.721 ,-75.789), //top right
new VELatLong(38.46 ,-75.693),
new VELatLong(38.451 ,-75.093),
new VELatLong(38.451 ,-75.058),
new VELatLong(38.451 ,-75.049) //coast end
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Maryland');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Massachusetts ( TODO: better CT border and Coastal border )
points = [
new VELatLong(42.869 ,-70.828), //top right
new VELatLong(42.859 ,-71.031),
new VELatLong(42.697 ,-71.295),
new VELatLong(42.727 ,-72.459),
new VELatLong(42.746 ,-73.265), //top left (top of NY border)
new VELatLong(42.086248,-73.508148),
new VELatLong(42.049675,-73.496861), //bottom left (bottom of NY border)
new VELatLong(42.049 ,-73.488), // left of CT border
new VELatLong(42.023 ,-71.8),
new VELatLong(42.008 ,-71.8), //Left of RI border
new VELatLong(42.018 ,-71.381),
new VELatLong(41.776 ,-71.318),
new VELatLong(41.775 ,-71.316),
new VELatLong(41.763 ,-71.287),
new VELatLong(41.759 ,-71.279),
new VELatLong(41.718 ,-71.232),
new VELatLong(41.674 ,-71.195),
new VELatLong(41.66 ,-71.136),
new VELatLong(41.647 ,-71.134),
new VELatLong(41.496 ,-71.121) //bottom of RI border
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Massachusetts');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Michigan (TODO: west coastal border could be better)
points = [
new VELatLong(42.493365,-87.020302), //bottom of Wisconsin
new VELatLong(42.73264,-87.053947),
new VELatLong(43.378602,-87.147331),
new VELatLong(43.499507,-87.137032),
new VELatLong(43.670355,-87.125359),
new VELatLong(43.733399,-87.114029),
new VELatLong(43.999483,-87.046051),
new VELatLong(44.130232,-87.013092),
new VELatLong(44.161273,-87.000046),
new VELatLong(44.499934,-86.85482),
new VELatLong(44.881661,-86.685219),
new VELatLong(45.081036,-86.499481),
new VELatLong(45.236218,-86.250916), //
new VELatLong(45.437008,-86.750793),
new VELatLong(45.437008,-87.102356),
new VELatLong(45.205263,-87.40448),
new VELatLong(45.0774,-87.442932),
new VELatLong(45.096 ,-87.585), //marionette
new VELatLong(45.175 ,-87.735),
new VELatLong(45.369 ,-87.66),
new VELatLong(45.353 ,-87.884),
new VELatLong(45.685 ,-87.783),
new VELatLong(45.81 ,-88.131),
new VELatLong(45.921 ,-88.103),
new VELatLong(46.272 ,-89.8),
new VELatLong(46.3 ,-89.929),
new VELatLong(46.566 ,-90.417), //top of wi land border
new VELatLong(48.014272,-89.483643), //top of minnesota
new VELatLong(47.975214,-89.338074),
new VELatLong(48.244797,-88.676147),
new VELatLong(48.303294,-88.371277),
new VELatLong(46.888355,-84.858398),
new VELatLong(46.630579,-84.759521),
new VELatLong(46.454889,-84.550781),
new VELatLong(46.451105,-84.476624),
new VELatLong(46.528635,-84.119568),
new VELatLong(46.059891,-83.952026),
new VELatLong(46.120845,-83.825684),
new VELatLong(45.99887,-83.432922),
new VELatLong(45.775186,-83.636169),
new VELatLong(45.771355,-83.482361),
new VELatLong(45.338633,-82.518311),
new VELatLong(43.58238,-82.120056),
new VELatLong(43.002639,-82.408447), //samia
new VELatLong(42.813537,-82.482605),
new VELatLong(42.763146,-82.466125),
new VELatLong(42.616781,-82.515564),
new VELatLong(42.54701,-82.610321),
new VELatLong(42.554092,-82.637787),
new VELatLong(42.37072,-82.831421),
new VELatLong(42.31997,-83.049774),
new VELatLong(42.126747,-83.118439), //Grosse lle
new VELatLong(42.039094,-83.148651),
new VELatLong(41.957448,-83.114319), //bottom right-ish
new VELatLong(41.731355,-83.416443),
new VELatLong(41.733 ,-83.454),
new VELatLong(41.696 ,-84.806),
new VELatLong(41.76 ,-84.806), //right of IN border
new VELatLong(41.76 ,-86.825)
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Michigan');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Minnesota
points = [
new VELatLong(43.5 ,-96.453), //bottom left
new VELatLong(45.301 ,-96.453),
new VELatLong(45.606 ,-96.857),
new VELatLong(45.817 ,-96.585),
new VELatLong(45.935 ,-96.562), //top of SD border
new VELatLong(46.316 ,-96.596),
new VELatLong(46.709 ,-96.788),
new VELatLong(46.72 ,-96.785),
new VELatLong(47.598 ,-96.851),
new VELatLong(48.143 ,-97.146),
new VELatLong(48.563 ,-97.174),
new VELatLong(48.686 ,-97.094),
new VELatLong(49 ,-97.229), //top left
new VELatLong(49.000042,-95.155334),
new VELatLong(49.377008,-95.152588),
new VELatLong(49.321542,-94.817505),
new VELatLong(48.871941,-94.680176),
new VELatLong(48.830374,-94.699402),
new VELatLong(48.776103,-94.691162),
new VELatLong(48.694586,-94.441223),
new VELatLong(48.631093,-93.856201),
new VELatLong(48.523881,-93.815002),
new VELatLong(48.589326,-93.46344),
new VELatLong(48.640169,-93.210754),
new VELatLong(48.631093,-92.949829),
new VELatLong(48.545705,-92.636719), //leatherdale landing
new VELatLong(48.412796,-92.455444),
new VELatLong(48.222843,-92.367554),
new VELatLong(48.246626,-92.271423),
new VELatLong(48.352599,-92.25769),
new VELatLong(48.359899,-92.054443),
new VELatLong(48.199049,-91.71936),
new VELatLong(48.067068,-91.450195),
new VELatLong(48.244797,-90.884399), //saganaga lake
new VELatLong(48.092757,-90.75531),
new VELatLong(48.085419,-90.027466),
new VELatLong(47.986245,-89.87915),
new VELatLong(48.011975,-89.489136), //top right
new VELatLong(47.290408,-89.958801),
new VELatLong(47.309034,-90.653687),
new VELatLong(46.702202,-92.015991),
new VELatLong(46.748801,-92.088432), //superior
new VELatLong(46.664 ,-92.291),
new VELatLong(46.074 ,-92.293),
new VELatLong(45.891 ,-92.712),
new VELatLong(45.707 ,-92.87),
new VELatLong(45.574 ,-92.882),
new VELatLong(45.438 ,-92.645),
new VELatLong(45.289 ,-92.761),
new VELatLong(44.751 ,-92.808),
new VELatLong(44.569 ,-92.549),
new VELatLong(44.363 ,-91.965),
new VELatLong(44.2 ,-91.875),
new VELatLong(43.996 ,-91.431),
new VELatLong(43.776 ,-91.245),
new VELatLong(43.501 ,-91.217) //bottom right
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Minnesota');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Mississippi
points = [
new VELatLong(30.216 ,-89.604), //bottom left
new VELatLong(30.664 ,-89.848),
new VELatLong(31.004 ,-89.733),
new VELatLong(30.999 ,-91.637),
new VELatLong(31.054 ,-91.559),
new VELatLong(31.257 ,-91.653),
new VELatLong(31.278 ,-91.513),
new VELatLong(31.407 ,-91.577),
new VELatLong(31.373 ,-91.472),
new VELatLong(31.524 ,-91.521),
new VELatLong(31.573 ,-91.406),
new VELatLong(31.63 ,-91.515),
new VELatLong(31.619 ,-91.403),
new VELatLong(31.746 ,-91.369),
new VELatLong(31.754 ,-91.262),
new VELatLong(31.76 ,-91.363),
new VELatLong(31.847 ,-91.341),
new VELatLong(31.813 ,-91.254),
new VELatLong(32.011 ,-91.08),
new VELatLong(32.074 ,-91.156),
new VELatLong(32.145 ,-91.004),
new VELatLong(32.134 ,-91.167),
new VELatLong(32.197 ,-91.163),
new VELatLong(32.193 ,-90.994),
new VELatLong(32.367 ,-90.877),
new VELatLong(32.354 ,-90.994),
new VELatLong(32.436 ,-90.967),
new VELatLong(32.481 ,-91.115),
new VELatLong(32.547 ,-91.095),
new VELatLong(32.494 ,-90.987),
new VELatLong(32.543 ,-91.072),
new VELatLong(32.64 ,-91.013),
new VELatLong(32.618 ,-91.152),
new VELatLong(32.719 ,-91.053),
new VELatLong(32.778 ,-91.163),
new VELatLong(32.905 ,-91.063),
new VELatLong(32.989 ,-91.105),
new VELatLong(32.916 ,-91.209),
new VELatLong(33.004 ,-91.166), //top of LA Border
new VELatLong(33.059 ,-91.121),
new VELatLong(33.125 ,-91.201),
new VELatLong(33.136 ,-91.093),
new VELatLong(33.275 ,-91.043),
new VELatLong(33.301 ,-91.141),
new VELatLong(33.449 ,-91.059),
new VELatLong(33.378 ,-91.148),
new VELatLong(33.407 ,-91.209),
new VELatLong(33.473 ,-91.125),
new VELatLong(33.437 ,-91.231),
new VELatLong(33.561 ,-91.23),
new VELatLong(33.607 ,-91.129),
new VELatLong(33.69 ,-91.222),
new VELatLong(33.681 ,-91.037),
new VELatLong(33.726 ,-91.14),
new VELatLong(33.783 ,-90.986),
new VELatLong(33.967 ,-91.09),
new VELatLong(34.026 ,-90.893),
new VELatLong(34.164 ,-90.927),
new VELatLong(34.159 ,-90.809),
new VELatLong(34.238 ,-90.934),
new VELatLong(34.207 ,-90.848),
new VELatLong(34.364 ,-90.762),
new VELatLong(34.314 ,-90.661),
new VELatLong(34.418 ,-90.573),
new VELatLong(34.689 ,-90.569),
new VELatLong(34.624 ,-90.535),
new VELatLong(34.684 ,-90.461),
new VELatLong(34.711 ,-90.567),
new VELatLong(34.785 ,-90.547),
new VELatLong(34.737 ,-90.459),
new VELatLong(34.892 ,-90.464),
new VELatLong(34.848 ,-90.306),
new VELatLong(34.924 ,-90.241),
new VELatLong(34.995 ,-90.308), //top left
new VELatLong(34.995 ,-88.2), //top right
new VELatLong(34.892 ,-88.097),
new VELatLong(32.747 ,-88.368 ),
new VELatLong(32.732 ,-88.37 ),
new VELatLong(31.894 ,-88.473 ),
new VELatLong(30.348 ,-88.394) //bottom right
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Mississippi');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Missouri
points = [
new VELatLong(36.625 ,-89.366),
new VELatLong(36.567 ,-89.236),
new VELatLong(36.666 ,-89.159),
new VELatLong(36.982 ,-89.133), //bottom of IL border
new VELatLong(37.072 ,-89.254),
new VELatLong(36.989 ,-89.276),
new VELatLong(37.038 ,-89.376),
new VELatLong(37.261 ,-89.522),
new VELatLong(37.387 ,-89.421),
new VELatLong(37.693 ,-89.517),
new VELatLong(37.903 ,-89.839),
new VELatLong(37.88 ,-89.949),
new VELatLong(37.958 ,-89.925),
new VELatLong(38.212 ,-90.351),
new VELatLong(38.326 ,-90.373),
new VELatLong(38.844 ,-90.109),
new VELatLong(38.967 ,-90.451),
new VELatLong(38.888 ,-90.625),
new VELatLong(39.257 ,-90.731),
new VELatLong(39.728 ,-91.367),
new VELatLong(40.125 ,-91.51),
new VELatLong(40.378 ,-91.419), //top right
new VELatLong(40.4 ,-91.5),
new VELatLong(40.403 ,-91.505),
new VELatLong(40.614 ,-91.728),
new VELatLong(40.585 ,-95.765), //top left
new VELatLong(40.538 ,-95.652),
new VELatLong(40.311 ,-95.656),
new VELatLong(40.242 ,-95.477),
new VELatLong(40.041 ,-95.415),
new VELatLong(40 ,-95.307), //top of KS border
new VELatLong(39.874 ,-95.13),
new VELatLong(39.887 ,-94.928),
new VELatLong(39.744 ,-94.861),
new VELatLong(39.741 ,-94.962),
new VELatLong(39.542 ,-95.109),
new VELatLong(39.386 ,-94.882),
new VELatLong(39.213 ,-94.827),
new VELatLong(39.148 ,-94.588),
new VELatLong(36.998 ,-94.618), //top of OK border
new VELatLong(36.499 ,-94.617), //bottom left
new VELatLong(36.499 ,-90.802),
new VELatLong(36.499 ,-90.789),
new VELatLong(36.497 ,-90.151),
new VELatLong(36.303 ,-90.064),
new VELatLong(35.996 ,-90.377),
new VELatLong(36.001 ,-89.733), //bottom right
new VELatLong(36.134 ,-89.592),
new VELatLong(36.25 ,-89.698),
new VELatLong(36.25 ,-89.537),
new VELatLong(36.323 ,-89.62),
new VELatLong(36.356 ,-89.514),
new VELatLong(36.498 ,-89.539),
new VELatLong(36.578868,-89.520378),
new VELatLong(36.497 ,-89.485),
new VELatLong(36.457464,-89.469223),
new VELatLong(36.499 ,-89.417) //top of TN border
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Missouri');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Montana
points = [
new VELatLong(49 ,-104.047), //top right
new VELatLong(45.944 ,-104.045), //top of SD border
new VELatLong(44.998 ,-104.057), //bottom right
new VELatLong(45.001 ,-111.054),
new VELatLong(44.475 ,-111.052), //left side of WY border
new VELatLong(44.755 ,-111.383),
new VELatLong(44.643 ,-111.514),
new VELatLong(44.541 ,-111.471),
new VELatLong(44.569 ,-112.284),
new VELatLong(44.45 ,-112.383),
new VELatLong(44.485 ,-112.778),
new VELatLong(44.359 ,-112.854),
new VELatLong(44.453 ,-113.004),
new VELatLong(44.774 ,-113.135),
new VELatLong(44.864 ,-113.451),
new VELatLong(45.058 ,-113.45),
new VELatLong(45.26 ,-113.689),
new VELatLong(45.603 ,-113.807),
new VELatLong(45.696 ,-113.937),
new VELatLong(45.459 ,-114.332),
new VELatLong(45.558 ,-114.563),
new VELatLong(45.704 ,-114.495),
new VELatLong(45.777 ,-114.562),
new VELatLong(45.885 ,-114.386),
new VELatLong(46.147 ,-114.525),
new VELatLong(46.172 ,-114.444),
new VELatLong(46.647 ,-114.319),
new VELatLong(46.7 ,-114.769),
new VELatLong(47.253 ,-115.317),
new VELatLong(47.427 ,-115.756),
new VELatLong(47.48 ,-115.627),
new VELatLong(47.55 ,-115.754),
new VELatLong(47.696 ,-115.723),
new VELatLong(47.978 ,-116.047),
new VELatLong(49 ,-116.048) //top left
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Montana');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Nebraska
points = [
new VELatLong(43.002 ,-104.056), //top left
new VELatLong(42.998 ,-98.499),
new VELatLong(42.762 ,-98.013),
new VELatLong(42.858 ,-97.874),
new VELatLong(42.851 ,-97.232),
new VELatLong(42.489 ,-96.443), //top right
new VELatLong(42.167 ,-96.347),
new VELatLong(41.798 ,-96.066),
new VELatLong(41.608 ,-96.116),
new VELatLong(41.601 ,-96.113),
new VELatLong(41.452 ,-95.919),
new VELatLong(41.346 ,-95.957),
new VELatLong(41.302 ,-95.872),
new VELatLong(41.201 ,-95.927),
new VELatLong(41.177 ,-95.841),
new VELatLong(40.895 ,-95.809),
new VELatLong(40.734 ,-95.888),
new VELatLong(40.585 ,-95.765), //top of MO border
new VELatLong(40.538 ,-95.652),
new VELatLong(40.311 ,-95.656),
new VELatLong(40.242 ,-95.477),
new VELatLong(40.041 ,-95.415),
new VELatLong(40 ,-95.307), //bottom right
new VELatLong(40.003 ,-102.051), //left of KS border
new VELatLong(41.002,-102.051),
new VELatLong(41.001 ,-104.053) //bottom left
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Nebraska');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Nevada
points = [
new VELatLong(37 ,-114.049), //bottom of UT
new VELatLong(41.994 ,-114.04), //top right
new VELatLong(42.002 ,-117.024), //right of oregan
new VELatLong(41.995 ,-119.998), //top left
new VELatLong(39 ,-120),
new VELatLong(36.972 ,-117.166),
new VELatLong(35.001 ,-114.632), //bottom tip
new VELatLong(35.181 ,-114.568),
new VELatLong(35.79 ,-114.698),
new VELatLong(35.804 ,-114.71),
new VELatLong(36.103 ,-114.735),
new VELatLong(36.142 ,-114.369),
new VELatLong(36.142 ,-114.369),
new VELatLong(36.016 ,-114.21),
new VELatLong(36.194 ,-114.045),
new VELatLong(37 ,-114.049) //top of AZ section
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Nevada');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//New Hampshire
points = [
new VELatLong(45.013 ,-71.502), //top left
new VELatLong(44.752 ,-71.632),
new VELatLong(44.588 ,-71.535),
new VELatLong(44.506 ,-71.58),
new VELatLong(44.319 ,-72.032),
new VELatLong(44.081 ,-72.033),
new VELatLong(43.574 ,-72.38),
new VELatLong(43.005 ,-72.445),
new VELatLong(42.872 ,-72.555),
new VELatLong(42.727 ,-72.459), //bottom left
new VELatLong(42.697 ,-71.295),
new VELatLong(42.859 ,-71.031),
new VELatLong(42.869 ,-70.828), //bottom right
new VELatLong(43.016697,-70.675049), //bottom left of Maine
new VELatLong(43.055844,-70.698395),
new VELatLong(43.129052,-70.827484),
new VELatLong(43.228194,-70.811005), //rollinsford
new VELatLong(43.335167,-70.9552),
new VELatLong(43.478833,-70.97168),
new VELatLong(43.574422,-70.973053), // Great East Lake
new VELatLong(44.76258,-71.038113), //umbagog lake
new VELatLong(45.306286,-71.08429), //top right
new VELatLong(45.241053,-71.143341),
new VELatLong(45.302905,-71.28479),
new VELatLong(45.237185,-71.442719),
new VELatLong(45.078369,-71.496277)
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('New Hampshire');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//New Jersey (TODO: need coast border)
points = [
new VELatLong(38.78781,-75.012589), //bottom of DE border
new VELatLong(39.057584,-75.168457),
new VELatLong(39.076776,-75.18837),
new VELatLong(39.250334,-75.319519),
new VELatLong(39.384202,-75.478134),
new VELatLong(39.455282,-75.559845),
new VELatLong(39.496093,-75.559158),
new VELatLong(39.497153,-75.528259),
new VELatLong(39.541117,-75.532379),
new VELatLong(39.563353,-75.513153),
new VELatLong(39.606217,-75.557098),
new VELatLong(39.630019,-75.559845),
new VELatLong(39.697149,-75.506973),
new VELatLong(39.763158,-75.461655),
new VELatLong(39.777408,-75.448608),
new VELatLong(39.796403,-75.404663),
new VELatLong(39.802 ,-75.415), //bottom of PA border
new VELatLong(39.844 ,-75.343),
new VELatLong(39.846 ,-75.339),
new VELatLong(39.884 ,-75.147),
new VELatLong(39.95528,-75.132751),
new VELatLong(40.114 ,-74.831),
new VELatLong(40.119 ,-74.829),
new VELatLong(40.163 ,-74.724),
new VELatLong(40.412 ,-75.044),
new VELatLong(40.415 ,-75.051),
new VELatLong(40.54 ,-75.068),
new VELatLong(40.613 ,-75.201),
new VELatLong(40.75 ,-75.197),
new VELatLong(40.869 ,-75.051),
new VELatLong(40.986 ,-75.132),
new VELatLong(41.357 ,-74.695), //top point
new VELatLong(41.003 ,-73.908),
new VELatLong(40.917 ,-73.918),
new VELatLong(40.882 ,-73.934),
new VELatLong(40.644 ,-74.161),
new VELatLong(40.499 ,-74.259) //bottom of NY border
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('New Jersey');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//New Mexico
points = [
new VELatLong(36.999 ,-109.044), //top left
new VELatLong(36.002 ,-109.045),
new VELatLong(34.96 ,-109.045),
new VELatLong(31.332 ,-109.049), //bottom left
new VELatLong(31.33335,-108.208551),
new VELatLong(31.78356,-108.208337),
new VELatLong(31.784 ,-106.528), //bottom of TX border
new VELatLong(31.869 ,-106.634),
new VELatLong(32 ,-106.618),
new VELatLong(32 ,-103.064),
new VELatLong(36.500348,-103.041919),
new VELatLong(36.5 ,-103.001), //top of TX border
new VELatLong(37 ,-103.001) //top of OK border
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('New Mexico');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//New York (TODO: border around Island)
points = [
new VELatLong(42.049 ,-73.488), // top of CT border
new VELatLong(41.295 ,-73.551),
new VELatLong(41.212 ,-73.482),
new VELatLong(41.101 ,-73.728),
new VELatLong(40.991 ,-73.659), // bottom of CT border
//insert Island here
new VELatLong(40.499 ,-74.259), //bottom of NJ border
new VELatLong(40.644 ,-74.161),
new VELatLong(40.882 ,-73.934),
new VELatLong(40.917 ,-73.918),
new VELatLong(41.003 ,-73.908),
new VELatLong(41.357 ,-74.695), //right of PA border
new VELatLong(41.481 ,-74.984),
new VELatLong(41.812 ,-75.071),
new VELatLong(41.864 ,-75.261),
new VELatLong(42.006 ,-75.363),
new VELatLong(41.999 ,-79.761), //bottom left
new VELatLong(42.269 ,-79.762),
new VELatLong(42.515892,-79.762115), //top left
new VELatLong(42.805477,-78.997192),
new VELatLong(42.843751,-78.925781),
new VELatLong(42.953407,-78.931274),
new VELatLong(43.004647,-79.020538),
new VELatLong(43.055844,-78.999939),
new VELatLong(43.077916,-79.074097),
new VELatLong(43.121034,-79.067917),
new VELatLong(43.171633,-79.052124),
new VELatLong(43.262206,-79.070663), //Niagara-on-the-Lake
new VELatLong(43.44943,-79.199066),
new VELatLong(43.634584,-78.688202),
new VELatLong(43.632596,-78.373718),
new VELatLong(43.630111,-77.248993),
new VELatLong(43.629614,-76.775894),
new VELatLong(44.094983,-76.436691),
new VELatLong(44.134174,-76.352921), //Point Alexandria
new VELatLong(44.198944,-76.312408),
new VELatLong(44.20362,-76.285973),
new VELatLong(44.203374,-76.244774),
new VELatLong(44.214448,-76.205978),
new VELatLong(44.239542,-76.164093),
new VELatLong(44.280604,-76.161346),
new VELatLong(44.296333,-76.130791),
new VELatLong(44.299282,-76.097488),
new VELatLong(44.331216,-76.045647),
new VELatLong(44.347177,-76.000671),
new VELatLong(44.345704,-75.973892),
new VELatLong(44.343003,-75.970116),
new VELatLong(44.368533,-75.921707),
new VELatLong(44.367796,-75.912094),
new VELatLong(44.432309,-75.82077),
new VELatLong(44.471766,-75.807037),
new VELatLong(44.516093,-75.765495),
new VELatLong(44.543261,-75.72567), //hillcrest (canada side)
new VELatLong(44.60929,-75.634689),
new VELatLong(44.705022,-75.5056),
new VELatLong(44.756486,-75.423889),
new VELatLong(44.772087,-75.413589),
new VELatLong(44.773305,-75.396423),
new VELatLong(44.788414,-75.369301),
new VELatLong(44.808878,-75.343552),
new VELatLong(44.806442,-75.333252),
new VELatLong(44.826413,-75.30201),
new VELatLong(44.836882,-75.306816), //Iroquois Golf Club
new VELatLong(44.856842,-75.256004),
new VELatLong(44.866576,-75.241585),
new VELatLong(44.877282,-75.218925),
new VELatLong(44.89285,-75.165367),
new VELatLong(44.914736,-75.134125),
new VELatLong(44.926891,-75.096016),
new VELatLong(44.934426,-75.05928),
new VELatLong(44.958725,-75.004692),
new VELatLong(44.971356,-74.998512),
new VELatLong(44.983256,-74.971733),
new VELatLong(44.983256,-74.907532),
new VELatLong(44.999767,-74.887619),
new VELatLong(45.015787,-74.826508),
new VELatLong(45.014817,-74.801445),
new VELatLong(45.004622,-74.792519),
new VELatLong(45.005593,-74.76368),
new VELatLong(44.994911,-74.759216),
new VELatLong(44.990784,-74.730721),
new VELatLong(45.003166,-74.701195),
new VELatLong(45.000738,-74.672356),
new VELatLong(44.999767,-74.660683), // Saint-Regis
new VELatLong(44.996125,-74.437523),
new VELatLong(44.991755,-74.336929),
new VELatLong(44.991998,-74.222946),
new VELatLong(44.99127,-74.149475),
new VELatLong(45.000495,-73.884087),
new VELatLong(45.002923,-73.696632),
new VELatLong(45.007535,-73.479996),
new VELatLong(45.01069,-73.343697), //top right
new VELatLong(43.752 ,-73.363),
new VELatLong(43.588 ,-73.431),
new VELatLong(43.627 ,-73.304),
new VELatLong(43.533 ,-73.242),
new VELatLong(42.746 ,-73.265), //top of MA border
new VELatLong(42.086248,-73.508148),
new VELatLong(42.049675,-73.496861) //bottom of MA border
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('New York');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//North Carolina (TODO: Need better coastal border)
points = [
new VELatLong(36.55 ,-75.929), //top right
new VELatLong(36.55 ,-75.966),
new VELatLong(36.55 ,-75.884),
new VELatLong(36.55 ,-75.894),
new VELatLong(36.55 ,-75.988),
new VELatLong(36.55 ,-76.006),
new VELatLong(36.55 ,-76.035),
new VELatLong(36.55 ,-76.156),
new VELatLong(36.55 ,-76.161),
new VELatLong(36.542 ,-78.917),
new VELatLong(36.542 ,-79.138),
new VELatLong(36.588 ,-81.677), //top left
new VELatLong(36.338 ,-81.706),
new VELatLong(36.301 ,-81.908),
new VELatLong(36.12 ,-82.033),
new VELatLong(36.116 ,-82.354),
new VELatLong(35.955 ,-82.561),
new VELatLong(36.065 ,-82.638),
new VELatLong(35.944 ,-82.898),
new VELatLong(35.773 ,-82.993),
new VELatLong(35.562 ,-83.499),
new VELatLong(35.518 ,-83.881),
new VELatLong(35.274 ,-84.046),
new VELatLong(35.225 ,-84.29),
new VELatLong(34.988 ,-84.322), //left side of GA border
new VELatLong(35 ,-83.108),
new VELatLong(35.215 ,-82.394),
new VELatLong(35.149 ,-81.032),
new VELatLong(35.047 ,-81.043),
new VELatLong(35.107 ,-80.935),
new VELatLong(34.935 ,-80.782),
new VELatLong(34.819 ,-80.797),
new VELatLong(34.804 ,-79.675),
new VELatLong(33.856 ,-78.556), //bottom right
new VELatLong(33.838483,-77.961731),
new VELatLong(34.482788,-77.433701),
new VELatLong(34.580083,-76.533508),
new VELatLong(35.218697,-75.52002),
new VELatLong(35.588085,-75.451355),
new VELatLong(35.721988,-75.484314)
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('North Carolina');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//North Dakota
points = [
new VELatLong(49 ,-104.047), //top left
new VELatLong(45.944 ,-104.045), //bottm left
new VELatLong(45.935 ,-96.562), //bottom right
new VELatLong(46.316 ,-96.596),
new VELatLong(46.709 ,-96.788),
new VELatLong(46.72 ,-96.785),
new VELatLong(47.598 ,-96.851),
new VELatLong(48.143 ,-97.146),
new VELatLong(48.563 ,-97.174),
new VELatLong(48.686 ,-97.094),
new VELatLong(49 ,-97.229) //top right
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('North Dakota');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Ohio
points = [
new VELatLong(39.105 ,-84.819), //Bottom Left
new VELatLong(39.119 ,-84.451),
new VELatLong(38.808 ,-84.215),
new VELatLong(38.761 ,-83.869),
new VELatLong(38.626 ,-83.668),
new VELatLong(38.703 ,-83.526),
new VELatLong(38.596 ,-83.293),
new VELatLong(38.755 ,-82.889),
new VELatLong(38.59 ,-82.843),
new VELatLong(38.421 ,-82.594), //bottom of WV border
new VELatLong(38.445 ,-82.328),
new VELatLong(38.593 ,-82.274),
new VELatLong(38.596 ,-82.268),
new VELatLong(38.605 ,-82.176),
new VELatLong(38.787 ,-82.221),
new VELatLong(39.025 ,-82.037),
new VELatLong(38.875 ,-81.899),
new VELatLong(38.923 ,-81.766),
new VELatLong(39.077 ,-81.814),
new VELatLong(39.268 ,-81.686),
new VELatLong(39.268 ,-81.57),
new VELatLong(39.41 ,-81.453),
new VELatLong(39.342 ,-81.375),
new VELatLong(39.387 ,-81.217),
new VELatLong(39.625 ,-80.878),
new VELatLong(40.313 ,-80.602),
new VELatLong(40.584 ,-80.667),
new VELatLong(40.638 ,-80.519),
new VELatLong(41.977 ,-80.519),
new VELatLong(42.327141,-80.519829), //top right
new VELatLong(41.999815,-81.708755),
new VELatLong(41.677015,-82.398148),
new VELatLong(41.675989,-82.681046),
new VELatLong(41.863425,-83.069687),
new VELatLong(41.957448,-83.114319), //right of Michigan border
new VELatLong(41.731355,-83.416443),
new VELatLong(41.733 ,-83.454),
new VELatLong(41.696 ,-84.806) //top left
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Ohio');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Oklahoma
points = [
new VELatLong(36.999262 ,-103.001), //top left
new VELatLong(36.998166 ,-102.9879),
new VELatLong(36.998714 ,-102.747574),
new VELatLong(36.994875 ,-102.701569),
new VELatLong(36.993 ,-102.041), //left of KS border
new VELatLong(36.998 ,-94.618), //top right
new VELatLong(36.499 ,-94.617), //top of AK border
new VELatLong(35.398 ,-94.431),
new VELatLong(33.637 ,-94.485), //bottom right
new VELatLong(33.961 ,-95.227),
new VELatLong(33.873 ,-95.28),
new VELatLong(33.939 ,-95.6),
new VELatLong(33.845 ,-95.776),
new VELatLong(33.838 ,-96.147),
new VELatLong(33.687 ,-96.352),
new VELatLong(33.843 ,-96.625),
new VELatLong(33.894 ,-96.587),
new VELatLong(33.823 ,-96.758),
new VELatLong(33.955 ,-96.985),
new VELatLong(33.718 ,-97.135),
new VELatLong(33.914 ,-97.218),
new VELatLong(33.819 ,-97.427),
new VELatLong(33.991 ,-97.669),
new VELatLong(33.856 ,-97.84),
new VELatLong(33.881 ,-97.97),
new VELatLong(33.989 ,-97.946),
new VELatLong(34.011 ,-98.091),
new VELatLong(34.153 ,-98.117),
new VELatLong(34.148 ,-98.35),
new VELatLong(34.057 ,-98.458),
new VELatLong(34.161 ,-98.631),
new VELatLong(34.114 ,-98.741),
new VELatLong(34.213 ,-99.186),
new VELatLong(34.453 ,-99.361),
new VELatLong(34.373 ,-99.405),
new VELatLong(34.381 ,-99.71),
new VELatLong(34.579164,-99.94606),
new VELatLong(34.578104,-99.954386),
new VELatLong(34.561354,-99.976873),
new VELatLong(34.560506,-100.000305),
new VELatLong(36.5 ,-100.003),
new VELatLong(36.5 ,-103.001) //bottom left
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Oklahoma');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Oregan
points = [
new VELatLong(41.998 ,-124.215), //bottom left
new VELatLong(42.002 ,-117.024), //bottom right
new VELatLong(43.83 ,-117.031),
new VELatLong(44.17 ,-116.894),
new VELatLong(44.273 ,-117.196),
new VELatLong(44.393 ,-117.241),
new VELatLong(44.727 ,-117.06),
new VELatLong(44.881 ,-116.855),
new VELatLong(45.025 ,-116.844),
new VELatLong(45.603 ,-116.462),
new VELatLong(45.752 ,-116.547),
new VELatLong(45.824 ,-116.779),
new VELatLong(45.995 ,-116.914), //top right
new VELatLong(46 ,-118.985),
new VELatLong(45.699 ,-120.401),
new VELatLong(45.746 ,-120.633),
new VELatLong(45.606 ,-121.182),
new VELatLong(45.705 ,-121.336),
new VELatLong(45.707 ,-121.809),
new VELatLong(45.544 ,-122.295),
new VELatLong(45.657 ,-122.762),
new VELatLong(46.084 ,-122.902),
new VELatLong(46.161 ,-123.226),
new VELatLong(46.224 ,-123.426),
new VELatLong(46.262 ,-123.664),
new VELatLong(46.256 ,-123.951),
new VELatLong(46.267 ,-123.97),
new VELatLong(46.298 ,-124.028),
new VELatLong(46.267 ,-124.034) //top left
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Oregan');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Pennsylvania
points = [
new VELatLong(42.327141,-80.519829), //top left
new VELatLong(40.638 ,-80.519), //top of WV border
new VELatLong(39.721 ,-80.519), //bottom left
new VELatLong(39.721 ,-79.477), //right of WV border
new VELatLong(39.721 ,-75.789), //right of Maryland Border
new VELatLong(39.788 ,-75.721),
new VELatLong(39.807 ,-75.693),
new VELatLong(39.82304,-75.657692),
new VELatLong(39.83675,-75.59967),
new VELatLong(39.837805,-75.526886),
new VELatLong(39.820667,-75.454102),
new VELatLong(39.802 ,-75.415), //bottom of NJ border
new VELatLong(39.844 ,-75.343),
new VELatLong(39.846 ,-75.339),
new VELatLong(39.884 ,-75.147),
new VELatLong(39.95528,-75.132751),
new VELatLong(40.114 ,-74.831),
new VELatLong(40.119 ,-74.829),
new VELatLong(40.163 ,-74.724),
new VELatLong(40.412 ,-75.044),
new VELatLong(40.415 ,-75.051),
new VELatLong(40.54 ,-75.068),
new VELatLong(40.613 ,-75.201),
new VELatLong(40.75 ,-75.197),
new VELatLong(40.869 ,-75.051),
new VELatLong(40.986 ,-75.132),
new VELatLong(41.357 ,-74.695), //top point of NJ
new VELatLong(41.481 ,-74.984),
new VELatLong(41.812 ,-75.071),
new VELatLong(41.864 ,-75.261),
new VELatLong(42.006 ,-75.363),
new VELatLong(41.999 ,-79.761),
new VELatLong(42.269 ,-79.762),
new VELatLong(42.515892,-79.762115) //top right
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Pennsylvania');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Rhode Island
points = [
new VELatLong(41.423 ,-71.798), // bottom left
new VELatLong(42.008 ,-71.8), // top left
new VELatLong(42.018 ,-71.381),
new VELatLong(41.776 ,-71.318),
new VELatLong(41.775 ,-71.316),
new VELatLong(41.763 ,-71.287),
new VELatLong(41.759 ,-71.279),
new VELatLong(41.718 ,-71.232),
new VELatLong(41.674 ,-71.195),
new VELatLong(41.66 ,-71.136),
new VELatLong(41.647 ,-71.134),
new VELatLong(41.496 ,-71.121) //bottom right
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Rhode Island');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//South Carolina
points = [
new VELatLong(33.183537,-79.170227),
new VELatLong(32.99945,-79.354248),
new VELatLong(32.669437,-79.881592),
new VELatLong(32.032964,-80.837059), //coast ( bottom tip of SC )
new VELatLong(32.099299,-81.081333), //savannah area
new VELatLong(32.226 ,-81.144),
new VELatLong(32.464 ,-81.186),
new VELatLong(32.628 ,-81.418),
new VELatLong(33.01 ,-81.495),
new VELatLong(33.147 ,-81.751),
new VELatLong(33.347 ,-81.94),
new VELatLong(33.465 ,-81.929),
new VELatLong(33.945 ,-82.557),
new VELatLong(34.474 ,-82.877),
new VELatLong(34.682 ,-83.342),
new VELatLong(35 ,-83.108), //top left
new VELatLong(35.215 ,-82.394),
new VELatLong(35.149 ,-81.032),
new VELatLong(35.047 ,-81.043),
new VELatLong(35.107 ,-80.935),
new VELatLong(34.935 ,-80.782),
new VELatLong(34.819 ,-80.797),
new VELatLong(34.804 ,-79.675),
new VELatLong(33.856 ,-78.556) //top right
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('South Carolina');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//South Dakota
points = [
new VELatLong(45.944 ,-104.045), //top left
new VELatLong(44.998 ,-104.057), //bottom of MT border
new VELatLong(43.002 ,-104.056), //bottom left
new VELatLong(42.998 ,-98.499),
new VELatLong(42.762 ,-98.013),
new VELatLong(42.858 ,-97.874),
new VELatLong(42.851 ,-97.232),
new VELatLong(42.489 ,-96.443), //bottom right
new VELatLong(42.737 ,-96.637),
new VELatLong(43.12 ,-96.436),
new VELatLong(43.269 ,-96.585),
new VELatLong(43.385 ,-96.52),
new VELatLong(43.5 ,-96.598),
new VELatLong(43.5 ,-96.453), //top of IA border
new VELatLong(45.301 ,-96.453),
new VELatLong(45.606 ,-96.857),
new VELatLong(45.817 ,-96.585),
new VELatLong(45.935 ,-96.562) //top right
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('South Dakota');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Tennessee
points = [
new VELatLong(36.588 ,-81.677), //top right
new VELatLong(36.338 ,-81.706),
new VELatLong(36.301 ,-81.908),
new VELatLong(36.12 ,-82.033),
new VELatLong(36.116 ,-82.354),
new VELatLong(35.955 ,-82.561),
new VELatLong(36.065 ,-82.638),
new VELatLong(35.944 ,-82.898),
new VELatLong(35.773 ,-82.993),
new VELatLong(35.562 ,-83.499),
new VELatLong(35.518 ,-83.881),
new VELatLong(35.274 ,-84.046),
new VELatLong(35.225 ,-84.29),
new VELatLong(34.988 ,-84.322), //bottom right
new VELatLong(34.984 ,-85.605), //right of AL border
new VELatLong(34.995 ,-88.2), //right of MS border
new VELatLong(34.995 ,-90.308), //bottom left
new VELatLong(35.139 ,-90.065),
new VELatLong(35.265 ,-90.16),
new VELatLong(35.277 ,-90.168),
new VELatLong(35.386 ,-90.08),
new VELatLong(35.421 ,-90.169),
new VELatLong(35.429 ,-90.002),
new VELatLong(35.547 ,-90.04),
new VELatLong(35.514 ,-89.916),
new VELatLong(35.592 ,-89.955),
new VELatLong(35.639 ,-89.853),
new VELatLong(35.729 ,-89.957),
new VELatLong(35.814 ,-89.71),
new VELatLong(35.909 ,-89.742),
new VELatLong(35.892 ,-89.642),
new VELatLong(36.001 ,-89.733), //bottom of Missouri border
new VELatLong(36.134 ,-89.592),
new VELatLong(36.25 ,-89.698),
new VELatLong(36.25 ,-89.537),
new VELatLong(36.323 ,-89.62),
new VELatLong(36.356 ,-89.514),
new VELatLong(36.498 ,-89.539),
new VELatLong(36.497 ,-89.485),
new VELatLong(36.457464,-89.469223),
new VELatLong(36.499 ,-89.417), //top left
new VELatLong(36.499 ,-89.417),
new VELatLong(36.497 ,-88.053),
new VELatLong(36.678 ,-88.07),
new VELatLong(36.601 ,-83.675) //left of VA Border
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Tennessee');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Texas
points = [
new VELatLong(29.999 ,-93.769), //bottom right
new VELatLong(30.137 ,-93.691),
new VELatLong(30.538 ,-93.739),
new VELatLong(31.031 ,-93.508),
new VELatLong(31.509 ,-93.712),
new VELatLong(31.585 ,-93.834),
new VELatLong(31.777 ,-93.825),
new VELatLong(31.992 ,-94.041),
new VELatLong(33.019 ,-94.042), //bottom of AK border
new VELatLong(33.551 ,-94.043),
new VELatLong(33.545 ,-94.386),
new VELatLong(33.637 ,-94.485), //right of OK border
new VELatLong(33.961 ,-95.227),
new VELatLong(33.873 ,-95.28),
new VELatLong(33.939 ,-95.6),
new VELatLong(33.845 ,-95.776),
new VELatLong(33.838 ,-96.147),
new VELatLong(33.687 ,-96.352),
new VELatLong(33.843 ,-96.625),
new VELatLong(33.894 ,-96.587),
new VELatLong(33.823 ,-96.758),
new VELatLong(33.955 ,-96.985),
new VELatLong(33.718 ,-97.135),
new VELatLong(33.914 ,-97.218),
new VELatLong(33.819 ,-97.427),
new VELatLong(33.991 ,-97.669),
new VELatLong(33.856 ,-97.84),
new VELatLong(33.881 ,-97.97),
new VELatLong(33.989 ,-97.946),
new VELatLong(34.011 ,-98.091),
new VELatLong(34.153 ,-98.117),
new VELatLong(34.148 ,-98.35),
new VELatLong(34.057 ,-98.458),
new VELatLong(34.161 ,-98.631),
new VELatLong(34.114 ,-98.741),
new VELatLong(34.213 ,-99.186),
new VELatLong(34.453 ,-99.361),
new VELatLong(34.373 ,-99.405),
new VELatLong(34.381 ,-99.71),
new VELatLong(34.579164,-99.94606),
new VELatLong(34.578104,-99.954386),
new VELatLong(34.561354,-99.976873),
new VELatLong(34.560506,-100.000305),
new VELatLong(36.5 ,-100.003),
new VELatLong(36.5 ,-103.001), //top left
new VELatLong(36.500348,-103.041919),
new VELatLong(32 ,-103.064),
new VELatLong(32 ,-106.618),
new VELatLong(31.869 ,-106.634),
new VELatLong(31.784 ,-106.528), //bottom of NM Border
//Mexican Border
new VELatLong(31.461468,-106.199341),
new VELatLong(30.272707,-104.761505),
new VELatLong(29.910901,-104.676361),
new VELatLong(29.632879,-104.508605),
new VELatLong(29.392346,-104.16481), //el Mulato
new VELatLong(28.972104,-103.154755),
new VELatLong(28.985394,-103.115015),
new VELatLong(29.224096,-102.866364),
new VELatLong(29.760801,-102.386742),
new VELatLong(29.782556,-101.929436),
new VELatLong(29.332951,-100.940666), //acuna (ciudad acuna)
new VELatLong(26.397559,-99.08432),
new VELatLong(25.836977,-97.394314),
new VELatLong(25.956347,-97.146091), //south tip
//Coastal Border
new VELatLong(26.145268,-97.166862),
new VELatLong(26.225679,-97.177162),
new VELatLong(26.290645,-97.190895),
new VELatLong(26.410936,-97.219391),
new VELatLong(26.809364,-97.349167),
new VELatLong(27.045367,-97.378693),
new VELatLong(27.205938,-97.365303), //Yarborough
new VELatLong(27.83456,-97.044575),
new VELatLong(28.334604,-96.415329),
new VELatLong(28.93305,-95.292664), //freeport
new VELatLong(29.683281,-93.834229),
new VELatLong(29.764377,-93.891907),
new VELatLong(29.795368,-93.927612)
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Texas');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Utah
points = [
new VELatLong(41.994 ,-114.04), //top left
new VELatLong(37 ,-114.049), //bottom left
new VELatLong(36.999,-109.044), //bottom right
new VELatLong(41 ,-109.049), //top right
new VELatLong(41 ,-111.045),
new VELatLong(42.001 ,-111.045) //top of Wyoming
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Utah');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Vermont
points = [
new VELatLong(42.727 ,-72.459), //bottom right
new VELatLong(42.872 ,-72.555),
new VELatLong(43.005 ,-72.445),
new VELatLong(43.574 ,-72.38),
new VELatLong(44.081 ,-72.033),
new VELatLong(44.319 ,-72.032),
new VELatLong(44.506 ,-71.58),
new VELatLong(44.588 ,-71.535),
new VELatLong(44.752 ,-71.632),
new VELatLong(45.013 ,-71.502), //top right
new VELatLong(45.01069,-73.343697), //top left
new VELatLong(43.752 ,-73.363),
new VELatLong(43.588 ,-73.431),
new VELatLong(43.627 ,-73.304),
new VELatLong(43.533 ,-73.242),
new VELatLong(42.746 ,-73.265) //bottom left
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Vermont');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Virginia
points = [
new VELatLong(38.015 ,-75.387), //top right
new VELatLong(37.979 ,-75.632),
new VELatLong(37.883 ,-76.234),
new VELatLong(37.993 ,-76.576),
new VELatLong(38.042 ,-76.512),
new VELatLong(38.144 ,-76.616),
new VELatLong(38.155 ,-76.705),
new VELatLong(38.065 ,-76.691),
new VELatLong(38.164 ,-76.774),
new VELatLong(38.195 ,-76.989),
new VELatLong(38.4 ,-77.05),
new VELatLong(38.351 ,-77.363),
new VELatLong(38.357 ,-77.29),
new VELatLong(38.438 ,-77.37),
new VELatLong(38.394 ,-77.312),
new VELatLong(38.659 ,-77.243),
new VELatLong(38.72 ,-77.045),
new VELatLong(38.911 ,-77.101),
new VELatLong(38.934 ,-77.12),
new VELatLong(39.077 ,-77.463),
new VELatLong(39.14 ,-77.526),
new VELatLong(39.225 ,-77.458),
new VELatLong(39.307 ,-77.636),
new VELatLong(39.31 ,-77.648),
new VELatLong(39.321 ,-77.719), //right of WV border
new VELatLong(39.132 ,-77.828),
new VELatLong(39.465 ,-78.347),
new VELatLong(39.166 ,-78.405),
new VELatLong(38.762 ,-78.869),
new VELatLong(38.846 ,-78.999),
new VELatLong(38.421 ,-79.28),
new VELatLong(38.591 ,-79.649),
new VELatLong(38.271 ,-79.788),
new VELatLong(37.689 ,-80.307),
new VELatLong(37.627 ,-80.221),
new VELatLong(37.508 ,-80.299),
new VELatLong(37.426 ,-80.466),
new VELatLong(37.429 ,-80.859),
new VELatLong(37.317 ,-80.896),
new VELatLong(37.234 ,-81.225),
new VELatLong(37.337 ,-81.362),
new VELatLong(37.201 ,-81.677),
new VELatLong(37.359 ,-81.927),
new VELatLong(37.538 ,-81.968), //left of WV border
new VELatLong(37.121 ,-82.721),
new VELatLong(36.897 ,-82.873),
new VELatLong(36.852 ,-83.074),
new VELatLong(36.745 ,-83.133),
new VELatLong(36.601 ,-83.675), //bottom left
new VELatLong(36.588 ,-81.677), //right of TN border
new VELatLong(36.542 ,-79.138),
new VELatLong(36.542 ,-78.917),
new VELatLong(36.55 ,-76.161),
new VELatLong(36.55 ,-76.156),
new VELatLong(36.55 ,-76.035),
new VELatLong(36.55 ,-76.006),
new VELatLong(36.55 ,-75.988),
new VELatLong(36.55 ,-75.894),
new VELatLong(36.55 ,-75.884),
new VELatLong(36.55 ,-75.966),
new VELatLong(36.55 ,-75.929) //bottom right
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Virginia');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Washington (TODO: better coastline)
points = [
new VELatLong(48.499318,-124.744263), //top left
new VELatLong(48.224673,-123.53714),
new VELatLong(48.283193,-123.244629),
new VELatLong(48.422821,-123.11142),
new VELatLong(48.691867,-123.270721),
new VELatLong(48.766147,-123.005676),
new VELatLong(48.831278,-123.00705),
new VELatLong(49.001619,-123.32119),
new VELatLong(49.00252,-122.497902),
new VELatLong(48.997339,-121.755638),
new VELatLong(49.000042,-121.385193),
new VELatLong(49.000042,-120.669022),
new VELatLong(48.999366,-120.051727),
new VELatLong(49.000042,-119.621887),
new VELatLong(49.000042,-119.102097),
new VELatLong(49.000042,-118.652687),
new VELatLong(49.000267,-118.22216),
new VELatLong(48.999817,-117.933769),
new VELatLong(49.000493,-117.635765),
new VELatLong(48.9991,-117.0323), //top right
new VELatLong(48.999 ,-117.031),
new VELatLong(46.354 ,-117.06),
new VELatLong(46.168 ,-116.921),
new VELatLong(46.088 ,-116.981),
new VELatLong(45.995 ,-116.914), //bottom right
new VELatLong(46 ,-118.985),
new VELatLong(45.699 ,-120.401),
new VELatLong(45.746 ,-120.633),
new VELatLong(45.606 ,-121.182),
new VELatLong(45.705 ,-121.336),
new VELatLong(45.707 ,-121.809),
new VELatLong(45.544 ,-122.295),
new VELatLong(45.657 ,-122.762),
new VELatLong(46.084 ,-122.902),
new VELatLong(46.161 ,-123.226),
new VELatLong(46.224 ,-123.426),
new VELatLong(46.262 ,-123.664),
new VELatLong(46.256 ,-123.951),
new VELatLong(46.267 ,-123.97),
new VELatLong(46.298 ,-124.028),
new VELatLong(46.267 ,-124.034) //bottom left
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Washington');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//West Virginia
points = [
new VELatLong(39.321 ,-77.719), //right of virginia border
new VELatLong(39.132 ,-77.828),
new VELatLong(39.465 ,-78.347),
new VELatLong(39.166 ,-78.405),
new VELatLong(38.762 ,-78.869),
new VELatLong(38.846 ,-78.999),
new VELatLong(38.421 ,-79.28),
new VELatLong(38.591 ,-79.649),
new VELatLong(38.271 ,-79.788),
new VELatLong(37.689 ,-80.307),
new VELatLong(37.627 ,-80.221),
new VELatLong(37.508 ,-80.299),
new VELatLong(37.426 ,-80.466),
new VELatLong(37.429 ,-80.859),
new VELatLong(37.317 ,-80.896),
new VELatLong(37.234 ,-81.225),
new VELatLong(37.337 ,-81.362),
new VELatLong(37.201 ,-81.677),
new VELatLong(37.359 ,-81.927),
new VELatLong(37.538 ,-81.968), //left of virigina border
new VELatLong(37.678 ,-82.304),
new VELatLong(37.93 ,-82.5),
new VELatLong(37.98 ,-82.464),
new VELatLong(38.162 ,-82.643),
new VELatLong(38.421 ,-82.594), //top of Kentucky Border
new VELatLong(38.445 ,-82.328),
new VELatLong(38.593 ,-82.274),
new VELatLong(38.596 ,-82.268),
new VELatLong(38.605 ,-82.176),
new VELatLong(38.787 ,-82.221),
new VELatLong(39.025 ,-82.037),
new VELatLong(38.875 ,-81.899),
new VELatLong(38.923 ,-81.766),
new VELatLong(39.077 ,-81.814),
new VELatLong(39.268 ,-81.686),
new VELatLong(39.268 ,-81.57),
new VELatLong(39.41 ,-81.453),
new VELatLong(39.342 ,-81.375),
new VELatLong(39.387 ,-81.217),
new VELatLong(39.625 ,-80.878),
new VELatLong(40.313 ,-80.602),
new VELatLong(40.584 ,-80.667),
new VELatLong(40.638 ,-80.519), //top point
new VELatLong(39.721 ,-80.519),
new VELatLong(39.721 ,-79.477), //right of Pennsylvania border
new VELatLong(39.202 ,-79.473),
new VELatLong(39.474 ,-79.105),
new VELatLong(39.441 ,-78.958),
new VELatLong(39.645 ,-78.776),
new VELatLong(39.544 ,-78.687),
new VELatLong(39.516 ,-78.468),
new VELatLong(39.624 ,-78.428),
new VELatLong(39.696 ,-78.174),
new VELatLong(39.603 ,-77.834),
new VELatLong(39.552 ,-77.887),
new VELatLong(39.496 ,-77.766),
new VELatLong(39.321 ,-77.719) //top of virginia
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('West Virginia');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Wisconsin
points = [
new VELatLong(43.501 ,-91.217), //top of Iowa border
new VELatLong(43.353 ,-91.206),
new VELatLong(43.258 ,-91.062),
new VELatLong(43.252 ,-91.059),
new VELatLong(43.125 ,-91.178),
new VELatLong(42.751 ,-91.065),
new VELatLong(42.634 ,-90.707),
new VELatLong(42.508 ,-90.64), //bottom left
new VELatLong(42.493365,-87.020302), //bottom right
new VELatLong(42.73264,-87.053947),
new VELatLong(43.378602,-87.147331),
new VELatLong(43.499507,-87.137032),
new VELatLong(43.670355,-87.125359),
new VELatLong(43.733399,-87.114029),
new VELatLong(43.999483,-87.046051),
new VELatLong(44.130232,-87.013092),
new VELatLong(44.161273,-87.000046),
new VELatLong(44.499934,-86.85482),
new VELatLong(44.881661,-86.685219),
new VELatLong(45.081036,-86.499481),
new VELatLong(45.236218,-86.250916), //
new VELatLong(45.437008,-86.750793),
new VELatLong(45.437008,-87.102356),
new VELatLong(45.205263,-87.40448),
new VELatLong(45.0774,-87.442932),
new VELatLong(45.096 ,-87.585), //marionette
new VELatLong(45.175 ,-87.735),
new VELatLong(45.369 ,-87.66),
new VELatLong(45.353 ,-87.884),
new VELatLong(45.685 ,-87.783),
new VELatLong(45.81 ,-88.131),
new VELatLong(45.921 ,-88.103),
new VELatLong(46.272 ,-89.8),
new VELatLong(46.3 ,-89.929),
new VELatLong(46.566 ,-90.417), //top of wi right land border
new VELatLong(47.290408,-89.958801),
new VELatLong(47.309034,-90.653687),
new VELatLong(46.702202,-92.015991),
new VELatLong(46.748801,-92.088432), //superior
new VELatLong(46.664 ,-92.291),
new VELatLong(46.074 ,-92.293),
new VELatLong(45.891 ,-92.712),
new VELatLong(45.707 ,-92.87),
new VELatLong(45.574 ,-92.882),
new VELatLong(45.438 ,-92.645),
new VELatLong(45.289 ,-92.761),
new VELatLong(44.751 ,-92.808),
new VELatLong(44.569 ,-92.549),
new VELatLong(44.363 ,-91.965),
new VELatLong(44.2 ,-91.875),
new VELatLong(43.996 ,-91.431),
new VELatLong(43.776 ,-91.245),
new VELatLong(43.501 ,-91.217) //bottom right
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Wisconsin');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
//Wyoming
points = [
new VELatLong(41.001 ,-104.053), //bottom right
new VELatLong(43.002 ,-104.056), //top of NE border
new VELatLong(44.998 ,-104.057), //top right
new VELatLong(45.001 ,-111.054), //top left
new VELatLong(44.475 ,-111.052), //left side of WY border
new VELatLong(42.001 ,-111.045), //bottom of Idaho border
new VELatLong(41 ,-111.045) //bottom left
];
shape = new VEShape(VEShapeType.Polygon ,points);
shape.SetTitle('Wyoming');
shape.SetDescription('# of offices/agents/properties.');
shape.HideIcon();
shape.SetFillColor(invisColor);
shape.SetLineColor(invisColor);
map.AddShape(shape);
}