﻿// JScript File
      var map = null;
      var pinid=0;
      var mapev;

             
      function AddPushpin(titl,desc,mlong,mlat){
        var x = new VELatLong(mlong, mlat);

        var shape = new VEShape(VEShapeType.Pushpin, x);
        shape.SetTitle(titl);
        shape.SetDescription(desc);
        pinid++;
        map.AddShape(shape);

     }           

      function GetMap()

      {
        map = new VEMap('myMap');
        map.LoadMap(new VELatLong(51.199, 1.01), 12,'r' ,false);         
        //AddPushpin('Petham Church','All Saints Church',51.221117,1.049554);
        //AddPushpin('Waltham Church','St Bartholomews',51.196248,1.022297);
        //AddPushpin('Petham Village Hall','For bookings',51.22246,1.048223);
        //AddPushpin('Waltham Village Hall','Newly refurbished and available for hire',51.19799,1.01639);
        //AddPushpin('The Chequers Inn','Blackboard specials every day,Sunday carvery, 01227 700734',51.216804,1.06);
      }   


