function updateLiveData(){ $('status').innerHTML = 'Offline'; $('lastupdate').innerHTML = '2011-11-02 12:52:01'; mapobj = new VEMap('map'); mapobj.LoadMap(); mapobj.SetMapStyle(VEMapStyle.Hybrid); mapobj.SetCenterAndZoom(new VELatLong(41.854610, 15.343800), 14); var shape = new VEShape(VEShapeType.Pushpin, mapobj.GetCenter()); shape.SetTitle('Actual position at 2011-11-02 12:52:01'); shape.SetCustomIcon(''); mapobj.AddShape(shape); var track = new VEShape(VEShapeType.Polyline, [ new VELatLong(41.854610,15.343800), new VELatLong(41.854580,15.343860), new VELatLong(41.854610,15.344080), new VELatLong(41.854600,15.344030), new VELatLong(41.854600,15.344010), new VELatLong(41.854580,15.344000), new VELatLong(41.853780,15.331200), new VELatLong(41.853710,15.330110), new VELatLong(41.853930,15.326950), new VELatLong(41.854410,15.326580), new VELatLong(41.855980,15.325410), new VELatLong(41.855480,15.324400), new VELatLong(41.854150,15.341760), new VELatLong(41.853900,15.340260), new VELatLong(41.853410,15.337210) ]); track.SetCustomIcon('
Track
'); track.SetTitle('Track'); track.SetLineColor(new VEColor(255,0,0,1)); track.SetLineWidth(4); mapobj.AddShape(track); } /*document.onload=setTimeout('updateLiveData();', 500);*/ function showOnRoadCorner(){ $('corner_lt').innerHTML = 'Live Bike Tracking - Now On road'; }