12 Jul 2021 07:37
RadMap: Layers.HitTest method overloads should all consider whether the layer is visible or not
The RadMap.Layers collection offers several overloads for the HitTest method:
- HitTest(PointG location)
- HitTest(PointL point)
- HitTest(Point location)
However, if the layer is not visible, its IsVisible property is set to false, the HitTest(PointL point) will not return the clicked pin, but the HitTest(PointG point) method will return it. This behavior is not consistent and all overloads should consider whether the layer is visible or not.