I am a bit confused with usage and purpose of Features and Markers. They seem to have same purpose. When one should use Features and when Markers? What is difference between usage of layers InMemoryMarkerOverlay and InMemoryFeatureLayer ? Are there any performance differences? I see in your sample “Dynamic Shapes\EfficientlyMoveAPlaneImage.cs” you are using InMemoryFeatureLayer for moving point. Can I use Markers for same purpose?
When to use Features vs. Markers?
Hello mark,
Thanks for your post, for your questions:
1. Marker is a special pointshape feature that we package it with some more function, like tooltip, images, then user can use this special point much easier. So any place you can use marker, you can use pointshape instead of it, marker is just easier.
2. The InMemoryMarkerOverlay is that we package the layer and marker to help user use marker easier, the biggest difference between InMemoryFeatureLayer and InMemoryMarkerOverlay is InMemoryFeatureLayer is a static layer, that means it does not have event like InMemoryMarkverOverlay, and event is very common when user want to use marker(like popup, hover)
3. The performance is almost the same.
4. Yes, anything pointshape can do, the marker can do it too.
Please let us know your queries.
Regards,
Gary