I have a question how to set a Marker: TTMSFNCGoogleMapsMarker above the OverlayView: TTMSFNCGoogleMapsOverlayView for GoogleMap: TTMSFNCGoogleMaps?
I have currently inserted a map fragment in png as OverlayViews[0] on GoogleMap (red dots with numbers 1, 2, 3). Then, based on the visible png map, I would like to add characteristic points on the map (set markers).
The problem is that Markers always 'hide under' the OverlayViews[0]. The Marker has the Zindex property, while the OverlayViews does not. How can I call a command similar to BringToBack for the OverlayViews?
In order to make OverlayViews clickable they need to be displayed on top of Markers.
This is a limitation of the Google Maps API which we have no control over.
However, this is a good suggestion and the following improvement was made to the OverlayViews behavior:
The OverlayView will now be displayed below the Markers, if OverlayViews[].Clickable is set to False. If set to True the OverlayView will still be displayed on top of the Markers.
The update will be available with the next TMS FNC Maps release.
By the way, I have a question, is it possible to block the display of Title for Marker? I would like to store other information (MyPoint ID) in the Title property and it is suitable for this. The problem is that I would need the following functionality: GoogleMap.Markers[0].Title.Visible := False;
Or is there another way to give the value of Title but block the display?
Instead of using the Markers[].Title property, it is recommended to add internal data related to the Marker in the Markers[].DataString or Markers[].DataInteger property.