Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: Best strategy to perform a map refresh

$
0
0
Hi all,

we've got a project where we show a map. This map is loaded from a shape file. To this we add an IMapPointLayer with a IFeatureSet.

In the bounds of the map another thread adds Points to the feature set. This can be some thousands or more. After the thread added a point, the map should be refreshed to show all points.
So we have many small changes within a small region per point.

Calling Map.Refresh() on after each change will get very slow after some points are added. And it's get slower and slower. It's clear that the Refresh method clears the buffer and fills it with updated data, which will get slow with many points.

We played around with Map.RefreshMap(Rectangle), but we get no update of the Map component. Maybe we missed something. As far as we understand, the method takes a rectangle (Screen coordinates?), in which bounds the buffer is updated.

So the question is, what can be the best strategy to achieve a better performance on map refresh. Is the RefreshMap-method the way to go and we missed something? Or is there something else we can use?

Thanks in advance

Marco

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>