﻿    var map = null;

    function GetMap() {
        map = new VEMap('myMap');
        map.SetCredentials("AukO8OqYbgS95ubfjs1BH9qyJwEPrL5hx0oMtMlRCJnmEV9kM2XjA8RCEKqAUx8Y");
        map.SetDashboardSize(VEDashboardSize.Tiny);
        map.LoadMap(new VELatLong(41.75, -89.5, 0, VEAltitudeMode.RelativeToGround), 4, VEMapStyle.Road, false, VEMapMode.Mode2D, true, 1);

        AddPin();
    }

    function AddPin() {
        // Mott Manufacturing LTD.
        var mottLTD = new VEShape(VEShapeType.Pushpin, (new VELatLong(43.16018457043976, -80.33139824867249)));
        mottLTD.SetTitle('Mott Manufacturing LTD. <br />Corporate Headquarters');
        mottLTD.SetDescription('452 Hardy Rd <br /> Brantford, ON, Canada N3T 5L8 <br /> T. 519.752.7825 <br /> F. 519.752.2895');
        map.AddShape(mottLTD);

        // Mott Manufacturing LLC.
        var mottLLC = new VEShape(VEShapeType.Pushpin, (new VELatLong(37.861611163629, -80.40109276771545)));
        mottLLC.SetTitle('Mott Manufacturing LLC. <br />Wood Casework Division');
        mottLLC.SetDescription('562 Industrial Park Rd <br /> P.O. Box 156 <br /> Maxwelton, WV, USA 24957 <br /> T. 304.497.2115');
        map.AddShape(mottLLC);
    }
