Layers in Ionic 2

Can anyone advise whats the best strategy to do layers with Ionic 2 please.

If I write something that uses the css z-index to control the layer, will this work on iOS and Android devices?


p.s. I am looking to have a layer popup on the screen on a button click event. This layer needs to hold html (and javascript) of another page I have created (google maps implementation).

Ionic has elements that already provide that functionality. It sounds like you looking to use a modal which is build like a componen otherwise there are alerts. If you need to program something to happen on this layer modal would be the way to go. I can attest that z-index does work in at least android and would assume ios because I have used it to arrange elements in the page.


Here is a nice example. Thank you for your help.