function updateLiveData(){ $('status').innerHTML = 'Offline'; $('lastupdate').innerHTML = '2008-11-01 18:46:01'; mapobj = new VEMap('map'); mapobj.LoadMap(); mapobj.SetMapStyle(VEMapStyle.Hybrid); mapobj.SetCenterAndZoom(new VELatLong(41.855030, 15.343350), 14); var shape = new VEShape(VEShapeType.Pushpin, mapobj.GetCenter()); shape.SetTitle('Actual position at 2008-11-01 18:46:01'); shape.SetCustomIcon(''); mapobj.AddShape(shape); var track = new VEShape(VEShapeType.Polyline, [ new VELatLong(41.855030,15.343350), new VELatLong(41.854800,15.343480), new VELatLong(41.854630,15.344050), new VELatLong(41.854630,15.344030), new VELatLong(41.854630,15.344030), new VELatLong(41.854630,15.344030), new VELatLong(41.854610,15.344080), new VELatLong(41.854610,15.344060), new VELatLong(41.854600,15.344280), new VELatLong(41.854710,15.345110), new VELatLong(41.854880,15.346200), new VELatLong(41.855050,15.346560), new VELatLong(41.856250,15.347830), new VELatLong(41.856930,15.348650), new VELatLong(41.857630,15.349510) ]); 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'; }