I have a FeatureCollectionLayer that contains point features. In the screenshot there are 2 features with the same location, symbolized with a circle. The renderer for the layer is Unique values, and the 2 features in the screenshot actually have different color - the bottom one is red (you can see a bit of a red halo under the yellow).
What is problematic is that the (yellow) symbol is for the top feature, but the label that is shown belongs to the feature in the bottom. Does anyone have any pointers on how to fix it?
Code sample: https://github.com/viktor-safar-geodata/ArcGIS.Net.OverlappingSymbols
Solved! Go to Solution.
Hi,
The repro for your question is perfect, thanks for putting that together!
Because your features are coincident, you might consider using clusters to indicate the number of coincident features, or alternatively if you just want more control over the labels then check the properties of the label definition. e.g. setting the Property DeconflictionStrategy to Dynamic will display both labels (I was quickly able to test this thanks to your repro), or you might even consider DynamicNeverRemove depending on what other layers you have. If you have multiple layers then you'll want to set Property Priority.
Dynamic
Place the label in the preferred location, but move to an alternative location to not overlap higher priority labels or point feature/graphic symbols. This label is placed only if it can be moved to a location that will not overlap a higher priority label.
DynamicNeverRemove
Place the label in the preferred location, but move to an alternative location to minimize overlapping higher priority labels or point feature/graphic symbols. This label is always placed, even if it overlaps a higher priority label.
Also see Configure clusters | ArcGIS Maps SDK for .NET | Esri Developer.
Thanks
If it is not vital for these data to display an exact location with certain accuracy, I typically will disperse the markers by 15-20 feet to allow for a reasonable display.
Hi,
The repro for your question is perfect, thanks for putting that together!
Because your features are coincident, you might consider using clusters to indicate the number of coincident features, or alternatively if you just want more control over the labels then check the properties of the label definition. e.g. setting the Property DeconflictionStrategy to Dynamic will display both labels (I was quickly able to test this thanks to your repro), or you might even consider DynamicNeverRemove depending on what other layers you have. If you have multiple layers then you'll want to set Property Priority.
Dynamic
Place the label in the preferred location, but move to an alternative location to not overlap higher priority labels or point feature/graphic symbols. This label is placed only if it can be moved to a location that will not overlap a higher priority label.
DynamicNeverRemove
Place the label in the preferred location, but move to an alternative location to minimize overlapping higher priority labels or point feature/graphic symbols. This label is always placed, even if it overlaps a higher priority label.
Also see Configure clusters | ArcGIS Maps SDK for .NET | Esri Developer.
Thanks
Thanks. Setting DeconflictionStrategy worked well.