I'm developing an MFC C++ application that uses the MappointControl OCX.
One of the functionalities I need to cover is to show a vehicle route. The route can be made even of thousand of positions in the map.
I tried to draw the route creating pushpins for the different vehicle locations and drawing lines between one position and the next one.
For 3000 positions my application hang up for 1'20'' (1 minute and 20 seconds). This is a bug for my customer-)
I tried using shapes instead of pushpins, but the problem remains.
I finally tried using a polyline: that does work, the route is drawn in an acceptable time, but I still have the problem to show a given symbol at every location (vehicle position).
Obviously I'm able to retrieve the polyline vertices, but I still got the problem of a 3000 loop cycle for shapes creation, so the bottle-of-neck remains.
Is there a way to draw thousand of shapes (or maybe pushpins?!) at given locations in an acceptable time (max 10 seconds) ?
thanx in advance for the help you can provide to me