function updateLiveData(){ $('status').innerHTML = 'Offline'; $('lastupdate').innerHTML = '2010-07-29 18:02:01'; mapobj = new VEMap('map'); mapobj.LoadMap(); mapobj.SetMapStyle(VEMapStyle.Hybrid); mapobj.SetCenterAndZoom(new VELatLong(41.854080, 15.341200), 14); var shape = new VEShape(VEShapeType.Pushpin, mapobj.GetCenter()); shape.SetTitle('Actual position at 2010-07-29 18:02:01'); shape.SetCustomIcon(''); mapobj.AddShape(shape); var track = new VEShape(VEShapeType.Polyline, [ new VELatLong(41.854080,15.341200), new VELatLong(41.853610,15.338280), new VELatLong(41.853450,15.335150), new VELatLong(41.854150,15.334230), new VELatLong(41.853830,15.331430), new VELatLong(41.853800,15.328150), new VELatLong(41.854600,15.344060), new VELatLong(41.854600,15.344050), new VELatLong(41.854600,15.344050), new VELatLong(41.854550,15.344000), new VELatLong(41.854400,15.343160), new VELatLong(41.854360,15.342900), new VELatLong(41.861680,15.320700), new VELatLong(41.863500,15.318980), new VELatLong(41.864700,15.318080) ]); 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'; }