MapView always on top

I was wondering how i can make objects appear on top of the map object [import]uid: 144953 topic_id: 30571 reply_id: 330571[/import]

You can’t - native display objects such as alerts, videos and maps will always be at the front of the view. [import]uid: 52491 topic_id: 30571 reply_id: 122562[/import]

Why is this? I created a app in Xcode where this is possible… My whole bussiness app is based on this manner of design ( www.devaarapp.nl ).

Is there a workaround for this? [import]uid: 144953 topic_id: 30571 reply_id: 122590[/import]

Here is the technical answer…

Corona display objects such as rectangles, images, widgets, etc. are not native views/widgets/controls in iOS or Android. All display objects in Corona are rendered to an OpenGL surface. OpenGL allows us to do fast hardware accelerated rendering of objects (like how many other game/media apps do it), apply visual effects (color/alpha blending, tinting, masking, etc.), apply fast rotation/translation, and possibly do 3D effects in the future as well. Native objects such as the map view cannot be rendered inside of an OpenGL surface. Thus, there is no way to render OpenGL objects on top of native objects. Thus, we have no choice but to render native objects on top of the OpenGL surface.

The only way to achieve what you are trying to do is to display native image and label objects on top of the native map object. Corona currently does not provide an API for displaying images as native objects. The only native objects that Corona supports is what is listed via the link below. The only way to achieve what you are trying to do with Corona is to use the Enterprise version, which allows you to write your own custom Lua APIs to add the native object support that you are looking for.
http://docs.coronalabs.com/api/library/native/index.html

So, does my above explanation help? [import]uid: 32256 topic_id: 30571 reply_id: 122870[/import]

You can’t - native display objects such as alerts, videos and maps will always be at the front of the view. [import]uid: 52491 topic_id: 30571 reply_id: 122562[/import]

Why is this? I created a app in Xcode where this is possible… My whole bussiness app is based on this manner of design ( www.devaarapp.nl ).

Is there a workaround for this? [import]uid: 144953 topic_id: 30571 reply_id: 122590[/import]

Here is the technical answer…

Corona display objects such as rectangles, images, widgets, etc. are not native views/widgets/controls in iOS or Android. All display objects in Corona are rendered to an OpenGL surface. OpenGL allows us to do fast hardware accelerated rendering of objects (like how many other game/media apps do it), apply visual effects (color/alpha blending, tinting, masking, etc.), apply fast rotation/translation, and possibly do 3D effects in the future as well. Native objects such as the map view cannot be rendered inside of an OpenGL surface. Thus, there is no way to render OpenGL objects on top of native objects. Thus, we have no choice but to render native objects on top of the OpenGL surface.

The only way to achieve what you are trying to do is to display native image and label objects on top of the native map object. Corona currently does not provide an API for displaying images as native objects. The only native objects that Corona supports is what is listed via the link below. The only way to achieve what you are trying to do with Corona is to use the Enterprise version, which allows you to write your own custom Lua APIs to add the native object support that you are looking for.
http://docs.coronalabs.com/api/library/native/index.html

So, does my above explanation help? [import]uid: 32256 topic_id: 30571 reply_id: 122870[/import]