Anonymous
01-14-2005, 02:36 PM
Is it possible to use "Track position" feature with the MapPoint Active X control ?
Regards, Dag Petersson
Regards, Dag Petersson
Is it possible to use "Track position" feature witAnonymous 01-14-2005, 02:36 PM Is it possible to use "Track position" feature with the MapPoint Active X control ? Regards, Dag Petersson Wilfried 01-15-2005, 02:16 AM Hi, I dont know, but you can easy do it yourself. Advantage is that you have it in control and display in the map what you want, save what you want etc. Gps receiver is formatted ascii strings easy to get what you want from it. Anonymous 01-19-2005, 02:57 AM I've done one solution together with franson.biz GPSTools (it works fine), but when i do updates on MapPoint control it it a lot slower than the "interanal "Track Position" feature. This is the way i do it today: MapPoint.Location objLoc; // X, Y from GPS receiver MapPoint.Shape shpCar; objLoc = mp.ActiveMap.GetLocation(X,Y,100); objLoc.GoTo(); for (int i=0; i<5; i++) { mp.ActiveMap.ZoomIn(); } shpCar = mp.ActiveMap.Shapes.AddShape(MapPoint.GeoAutoShape Type.geoShapeOval,objLoc,0.05,0.05); shpCar.Line.ForeColor = 16711680; // Blue Wilfried 01-19-2005, 01:00 PM Hi, I think you can optimize for speed. Instead of ZoomIn a number of times you can decrease Altitude in the GetLocation call. This will gain a lot. Also I use PushPins instead of shapes, but did never compared the speed. If I remember right my program written in delphi5 running on a PII300 machine updates a fleet of around 30..40 vehicles in 3 seconds or so. It should be fast enough I think. Also there could be speed differences in: LocationObject.Goto(); PushPin.Goto(); Map.GotoLatLong(); But I dont know from the top of my head... | ||