Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circle always on top of Symbols #483

Closed
mayouf opened this issue Dec 14, 2020 · 2 comments · Fixed by #588
Closed

Circle always on top of Symbols #483

mayouf opened this issue Dec 14, 2020 · 2 comments · Fixed by #588
Labels
enhancement New feature or request

Comments

@mayouf
Copy link

mayouf commented Dec 14, 2020

Hi there,

I update a circle color (from transparent to visible) when a user type on symbol.

It works perfectly.

But, the Circle appears always on top of Symbol...no matter Zindex it is on SymbolOptions...or in which order I added the symbol and Circle.

My objective here is to set the circle behind/under the simbol...

is there any workaround to make it work ?

The @orourkedd tips is only for IOS, but how to reproduce it on Android ?

@tobrun
Copy link
Collaborator

tobrun commented Dec 24, 2020

zindex only affects the order of the symbols themselves. The issue is that the annotation manager classes are added in a fixed order. If you would change the order they are instantiated that would resolve it. On the Android SDK you have the ability to control this more granular and add multiple managers but that isn't the case for the plugin.

@tobrun tobrun added the enhancement New feature or request label Dec 24, 2020
@hwolber
Copy link
Contributor

hwolber commented Feb 10, 2021

Here is an Merge Request resolving this issue and letting developers choose the order of annotation displayed in the map widget.
MR => #523

Here is an example of how to use it:

...
annotationOrder: const <AnnotationType>[
        AnnotationType.polygone,
        AnnotationType.line,
        AnnotationType.circle,
        AnnotationType.symbol,
],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants