1

On Android I have a TMapView in align Client. I want to put a TRectangle over the TMapView. Event if I call

Rectangle.BringToFront;

I never see it. The MapView stay on top I can't show anything over it. How to do it anyway ?

Bosshoss
  • 783
  • 6
  • 24
  • 1
    You cannot put an FMX rectangle over the top of TMapView because of "z-order" problems using FMX and native controls. There are a limited number of controls that do support proper z-order when using a ControlType value of Platform, here: http://docwiki.embarcadero.com/RADStudio/Sydney/en/FireMonkey_Native_Android_Controls. Is it just a plain rectangle you wanted to add, or were you planning on more? I ask because I am working on some controls that could be placed on a TMapView – Dave Nottage Jan 18 '21 at 18:19
  • Thanks you, I would like to put a layout and two rectangle to switch between plan and satellite view – Bosshoss Jan 19 '21 at 08:55
  • @DaveNottage I can't put objects over TMapView, ok. But why I can't do a Screenshot too ? MapView.MakeScreenshot didn't return a bitmap screenshot :( Thanks – Bosshoss Jan 21 '21 at 08:46
  • 1
    For TMapView you need to use the Snapshot method – Dave Nottage Jan 21 '21 at 20:37
  • I'm facing the same problem too where when i scroll up the form, the mapview overlapped my header bar on the top. How can I solve it? – Leong Feb 17 '22 at 01:50

0 Answers0