What is the best way to update individual vehicle positions in a render list?

If you have 'Vehicle' objects in your application make them implement the IMapRenderer interface. This way they can draw themselves at the right location whenever the map is drawn. An example of how to implement IMapRenderer can be found here: IMapRenderer tutorial.

You can easily draw multiple objects (each object must implement the IMapRenderer interface) by adding each object to a RenderList object. Set the Renderer property of a MapCtrl object to the RenderList object.

 

Published, Oct 20th 2010, 14:59