Hi, in my application, I create polygons and overlay views at runtime. With version 4.3.0.1, the overlay views are behind the polygons. Can I control the zIndex of overlayviews? Thanks.
Hi,
OverlayViews and Markers/Polygons are displayed on separate layers in Google Maps, so combining zIndex values isn't possible. Before version 4.3.0.1, OverlayViews were on top of Markers/Polygons, but this changed due to user feedback to display them behind, which is the intended behavior.
To handle click events on OverlayViews, they must be displayed on top of Markers/Polygons. Therefore, if the OnOverlayViewClick
event is assigned, OverlayViews will be displayed as before.
Unfortunately this is a limitation of the Google Maps API.
We will investigate whether it is possible to control if OverlayViews are displayed behind or on top of Markers/Polygons independently of the OnOverlayViewClick
event in a future version of TMS FNC Maps.
Thank you Bart, setting the property Clickable := True solves the problem (even without assigning the OnOverlayViewClick event).