I see that this property is now deprecated, and has moved to AGSGeoView selectionProperties.
But I have several Graphic overlays that draw in different colors (to add contrast) . Is it not possible anymore to have multiple selectionColors anymore?
Hello,
You are right, AGSGraphicsOverlay.selectionColor has been marked deprecated in the latest released SDK version 100.4 but will still continue to work with 100.4. The new property added is AGSGeoView:selectionProperties. With next release of the SDK, AGSGraphicsOverlay.selectionColorproperty will not work. This has been done to achieve higher rendering performance benefits that come with applying selection color at geoview level. It uses a selection highlight mechanism that can be rendered on the GPU without being dependent on symbol properties or rendering mode and hence is much faster,efficient and performant, especially for dynamic rendering modes.
> Is it not possible anymore to have multiple selectionColors?
At least for released SDK version 100.4, if you use the new property it is not possible to add multiple selection colors.
Let us know if you have any questions or concerns,
Preeti
Armand, also, it be very useful if you explain your use case for using multiple selection color for different graphic overlays?
Thanks for your answer. Yes we have a specific need for multiple selection colors. Our clients have several layers with in each layer a different color of shapes. So when they select something from a layer, I have a selectionColor "opposite" of what the shape color is, so it really stands out what is selected.
What if I can only select one selection color, say blue, and the object itself is also blue? Can I change the global selection color just before or after the selection has been made?
>Can I change the global selection color just before or after the selection has been made?
Yes you can change the selection color before or after the selection has been made but note that features that were previously selected will have the new selection color also.