﻿
var VMap = function(map) {

    //Declare private variables here
    var veMap = map;

    return {
        addGeoJSON: function(data, layer) {
            //var latLngs = new VELatLong(40.769656, -73.973533);
            var latLngs = new VELatLong(data.latlongs.lat, data.latlongs.longs);
            var shape = new VEShape(VEShapeType.Pushpin, latLngs);
            shape.SetTitle(data.Address);
            var initView = new VEMapViewSpecification(latLngs, 12, null, null, null);
            veMap.SetMapView(initView);
            veMap.AddShape(shape);
        }
    }
};

