is it possible to use the TMS mapview on a standard fmx ttabcontrol?
Reason: the code should remain as standard as possible. Only the mapview is a requirement, and this should be the only part that should be changed when targetting other platforms in the future.
Problem: the map doesn't draw. The control is clearly inserted at the correct place, but it doesn't draw its map.
Everything in FireMonkey is drawn directly on the root view of the application. The MapView component is a real native iOS Control that is added as a subview of the rootview, so if you try to add it as a child of a FireMonkey control, the MapView will not be displayed.
What you can do, since the FireMonkey controls are drawn first, and the native iOS controls are placed on top of the root view drawing, is handling the Tab change and toggling the MapView visibility. the MapView need to be placed on top of the TabControl and the bounds set to match the bounds of the TabPage.
Upon application start I set the parent of the layoutcontrols of the subforms (B & C) to the tabitems on the mainform (A). This resulted in a nice interface, and clean code separation.
Form A also contained the mapview, which I set visible using the trick mentioned above, with bounds set to tabitem2. This setup worked flawless
In XE5 this functionality seems broken, the mapview will not show anymore in this setup. It still works when I remove the parenting trick, so it is related to this trick I think. I now merged my code into 1 big form. Less clean, but it works.