function updateLiveData(){ $('status').innerHTML = 'Offline'; $('lastupdate').innerHTML = '2010-09-04 19:52:01'; mapobj = new VEMap('map'); mapobj.LoadMap(); mapobj.SetMapStyle(VEMapStyle.Hybrid); mapobj.SetCenterAndZoom(new VELatLong(41.854650, 15.344010), 14); var shape = new VEShape(VEShapeType.Pushpin, mapobj.GetCenter()); shape.SetTitle('Actual position at 2010-09-04 19:52:01'); shape.SetCustomIcon(''); mapobj.AddShape(shape); var track = new VEShape(VEShapeType.Polyline, [ new VELatLong(41.854650,15.344010), new VELatLong(41.854630,15.344010), new VELatLong(41.854630,15.344010), new VELatLong(41.854610,15.344060), new VELatLong(41.854560,15.344060), new VELatLong(41.854580,15.344050), new VELatLong(41.854150,15.333310), new VELatLong(41.853900,15.331750), new VELatLong(41.853780,15.328300), new VELatLong(41.854010,15.326830), new VELatLong(41.856610,15.325060), new VELatLong(41.856930,15.324850), new VELatLong(41.854560,15.344010), new VELatLong(41.854450,15.343550), new VELatLong(41.854200,15.341900) ]); 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'; }