Hi Thinkgeo,
Which is better (SimpleMarkerOverlay or InMemoryMarker ) to use when there are only few points (<10) to display?
Regards,
Anil
Hi Thinkgeo,
Which is better (SimpleMarkerOverlay or InMemoryMarker ) to use when there are only few points (<10) to display?
Regards,
Anil
Hi, Anil
If you only need to display so few points on the map, and I don't think there is any difference between them. The discussion about them please refer to the post below:
gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/12/aft/7989/afv/topic/Default.aspx#22576
To recap the differences between them when you need performance. I will outline as many as I can below.
First off, the InMemoryMarkerOverlay works with a better performance than SimpleMarkerOverlay, because the SimpleMarkerOverlay always loads all the markers no matter whether they are contained in the current extent, and that means all the makers you have added to SimpleMarkerOverlay will all be rendered on the map, but as for InMemeoryMarkerOverlay only loads the markers in current extent by sending request to our built-in server automatically via AJAX.
So I prefer to the InMemoryMarkerOverlay for your solution.
If you have any doubts about it, please let us know.
Thanks,
Khalil