There's a lot of pieces to this to make it all work. You need to have some
sort of server-side process that receives the GPS data and populates your
table. This is dependent on how you are receiving those coordinates from
your GPS service provider. This is independent process from anything you
are doing in MapGuide.
Once this process is in place, create a SQL view that displays only the
latest point data for each vehicle. Reference this view as a MapGuide point
layer. Each time you refresh your layer, your points will move to the
latest lat and lon since you are referencing the SQL view.
To refresh a layer, in your main map embed page, use the JavaScript
setTimeout() method to fire another function at your set time interval.
This other function needs to call the MapGuide API. Something like:
function layerRefresh(yourLayer)
{
MyMap.setAutoRefresh(false);
MyMap=getMyMap();
var layer=MyMap.getMapLayer(yourLayer);
layer.setRebuild(true);
MyMap.setAutoRefresh(true);
MyMap.refresh();
}
If you haven't worked with the MapGuide API, the best place to start is with
the API Help documentation and there are several examples in there that
should get you going.
--
Andy Morsell, P.E.
Spatial Integrators, Inc.
http://www.SpatialGIS.com
wrote in message news:5112550@discussion.autodesk.com...
Dear all,
I have a vehicle table layer having fields like vehicle
ID, Lat, Long. I am receiving a SQL table having updating new Lat/Long of
the vehicle through GPS.
1) How can i change my vehicle BMP lat/Long with my latest received lat/long
of GPS.
2) how can i refresh my vehicle layer data
Regards
Anil Dhiman