-
Hello, I am looking for a way to easily allow adding and removing of Layers to a VTM Map using z-index (which on flat map view would decide in which order elements are displayed). Basically I look for an easy equivalent of the zIndex option in Android Google Maps available in the various map element models (com.google.android.gms.maps.model.*, explained e.g. here: https://developers.google.com/maps/documentation/android-sdk/marker?hl=en#marker_z-index or https://developers.google.com/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/PolygonOptions?hl=en#zIndex(float) I am aware that layers have an order in VTM (like in Mapsforge) and are drawn in this order. However, it is hard to maintain a full priority order of elements across a whole application. I am looking for some utilities/helpers to ease the burden here. I noticed that class
If VTM does not support z-index and is not interested in enhancement I would start building an own workaround solution for our app (c:geo). |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Layer z-index in Mapsforge and VTM works similarly:
The methods are not supposed to be mixed, better select and use one of them.
We add and maintain the groups, so we know them? |
Beta Was this translation helpful? Give feedback.
-
Event layer has special use and works at the bottom.
It is not mandatory to use the default methods (like Regular methods exist since Mapsforge / VTM beginning.
Sorry, it is still not clear?
What does removing layers have to do with groups? They are completely different entities. Maybe not being used in the right way or expect them to work differently?
I am always available for Mapsforge / VTM improvements!
Sure, |
Beta Was this translation helpful? Give feedback.
-
Hi @eddiemuc!
See #1033 and mapsforge/mapsforge#1405 and if something else is needed.
It is not yet clear its need or what such an internal automation solves? Also I am afraid that it will change the way the library works internally
Exactly and this is extremely important (in relation to the point above). Mapsforge / VTM always had excellent compatibility with updates, |
Beta Was this translation helpful? Give feedback.
Hi @eddiemuc!
See #1033 and mapsforge/mapsforge#1405 and if something else is needed.
(also the throw statements were replaced)
containsGroup
was added in #1032 and mapsforge/mapsforge#1404.It is not yet cle…