Hi,
I’ve 3 layers (inmemorylayers) with label’s attribute set to LabelOverlappingRule.NoOverlapping.
accordingly, labels from each layer are not overlapping within the same layer.
BUT, labels from layer A are overlapping labels from layer 2 (see attachement)
any idea ?
thank you
Patrick.
temp.png (3.97 KB)
Label overlapping
Hi Patrick,
The LabelOverlappingRule only takes effects on one overlay. In other words, only the labels from the same overlay can be rendered no overlapping. Are the “layer A” and the “layer 2” in the same overlay? if not, please add them into the same overlay.
Here attached is the sample shows the LabelOverlappingRule.NoOverlapping in the same overlay.
Thanks,
Peter
LabelOverlapping.zip (11 KB)
Ok, I understand.
btw, is there a way to define labels priority ?
let me clarify, in my overlay, I’ve 3 layers (A, B, C); C is on top.
A, B, C have NoOverlapping defined.
when there is a conflit, I’d like label from layer C to be displayed.
thank you for your help.
Patrick.
Hi Patrick,
Just change the order of the layer C to the first element in overlay.
Thanks,
Peter