﻿/// <reference path="VeJavaScriptIntellisenseHelper.js" />
var map = null;

function GetMap() {
    map = new VEMap("mapContainer");
    map.SetDashboardSize(VEDashboardSize.Small);
    var mo = new VEMapOptions();
    mo.EnableBirdseye = false;
    mo.EnableDashboardLabels = false;
    map.LoadMap(new VELatLong(30.602892, -96.075745), 13, VEMapStyle.Road, false, VEMapMode.Mode2D, false, 0, mo);
    var myPushpin = new VEShape(VEShapeType.Pushpin, new VELatLong(30.596603074729696, -96.08066707849503));
    myPushpin.SetTitle("Gibbons Creek Resevoir Entrance");
    myPushpin.SetDescription("Turn at this sign near Yankee\'s Tavern to access GCR");
    myPushpin.SetPhotoURL(picPath);
    myPushpin.SetCustomIcon(iconPath);
    map.AddShape(myPushpin);
    map.SetShapesAccuracy(VEShapeAccuracy.Pushpin);
}   