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),
)
}
}
}
Environment
Observed behavior and steps to reproduce
Imported style using
addStyleImportFromURI
oraddStyleImportFromJSON
are always shown below main style loaded usingloadStyle
, SettingImportPosition
when usingaddStyleImportFromURI
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?