This project has moved. For the latest updates, please go here.

Map marker (object)

Topics: Data Access, SharpMap v2.0, WinForms Controls
Dec 26, 2012 at 1:34 PM

Hello! ) I have interesting question.

On my map must move trains. I want to make the marker (moving object) or a point, but instead of the point I will have a small individual icon. For example a small steam engine or an arrow that when updating coordinates will change its location.

I want to do this:

-considered latitude longitude in one variable to another variable;

- Timer these variables will be updated from the database;

- The next step is to put the point to the individual icons on the map. This step I do not know how to do. Advice please. I would be very grateful!

Dec 27, 2012 at 12:34 PM

You can use the VariableLayers on the MapBox to add layers that should be redrawn with a specific time interval.

For custom Icons you can use the Theme of the VectorLayer and make your own getStyle delegate that returns the correct icon for each feature.

Jan 9, 2013 at 2:13 PM

Very thanks! )