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

Can't set style import position relative to main loaded style #2478

Open
SamYStudiO opened this issue Sep 10, 2024 · 0 comments
Open

Can't set style import position relative to main loaded style #2478

SamYStudiO opened this issue Sep 10, 2024 · 0 comments
Labels
bug 🪲 Something isn't working

Comments

@SamYStudiO
Copy link

SamYStudiO commented Sep 10, 2024

Environment

  • Android OS version:Any
  • Devices affected:Any
  • Maps SDK Version:Any

Observed behavior and steps to reproduce

Imported style using addStyleImportFromURI or addStyleImportFromJSON are always shown below main style loaded using loadStyle, Setting ImportPosition when using addStyleImportFromURI with null values to set it on top has no effect.

Is there any way to have imported style to be on top on main loaded style?

// Load main style
mapboxMap.loadStyle(styleUrl) {
        // Add new overlays over main style > are invisible beacause always show below main style....
        overlays.forEach { overlay ->
                mapboxMap.addStyleImportFromURI(
                    overlay.id,
                    overlay.styleUrl,
                    null,
                    ImportPosition(null, null, null),
                )
            }
        }
     }

@SamYStudiO SamYStudiO added the bug 🪲 Something isn't working label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant