﻿var map = null;
var zoomLevel = 15;
var center = new VELatLong(25.852616398758858, -80.157840140347);
var initView = new VEMapViewSpecification(center, zoomLevel, 1000, -90, 0);


function AddPin() {
var pin = new VEPushpin(
    "PinID1",
    new VELatLong(25.852771731886307, -80.1578137278557),
    "Images/maps/Eloquence.png",
    "<table cellspacing='4' cellpadding='0'><tr><td><p><img alt='Eloquence on the Bay' src='Images/maps/Eloquencelogo.png' width='82' height='16' /><br /><span class='maptxtstyle'>Sales center:<br />7928 East Drive<br /> Unit 106<br />North Bay Village, FL 33141<br />Phones: <br />305-758-7523 or<br />305-758-7524</span></span></p></td><td valign='top'><img alt='Eloquence on the Bay' src='Images/maps/extimg.jpg' width='65' height='71' /></td></tr></table>"
);

map.AddPushpin(pin);
}

function GetMap()
{
 var options = new VEMapOptions();
 options.EnableBirdseye = false;
 options.EnableDashboardLabels = false;

 map = new VEMap('EloquenceMap');

 map.LoadMap(null, null, null, null, null, null, null, options);

 map.Show3DBirdseye(false);
 map.SetMapMode(VEMapMode.Mode2D);
 map.SetMapStyle(VEMapStyle.Aerial);
 map.SetMapView(initView);

 AddPin();
}