Skip to content

z-index of elements: usage of groups in org.oscim.map.Layers #1031

Answered by devemux86
eddiemuc asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @eddiemuc!

auto-add groups when they are first used in add(Layer layer, int group) (instead of throwing an exception when group doesn't exist)
add methods Set getGroups() which returns a list of all currently existing groups

See #1033 and mapsforge/mapsforge#1405 and if something else is needed.
(also the throw statements were replaced)

a method boolean hasGroup(int group) which returns true if the given group exists

containsGroup was added in #1032 and mapsforge/mapsforge#1404.

on first usage of add(Layer layer, int group), move all existing layers in a "default" group 0. From this point on forward, put all layers added with "normal" add into this default group

It is not yet cle…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@eddiemuc
Comment options

Comment options

You must be logged in to vote
1 reply
@eddiemuc
Comment options

Comment options

You must be logged in to vote
2 replies
@eddiemuc
Comment options

@devemux86
Comment options

Answer selected by devemux86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants