customMapStyleUrl should end with style.json and should not have any trailing slash.

This commit is contained in:
Benoit Marty
2026-05-27 09:59:32 +02:00
parent 6984ab0393
commit c846f4eee2
@@ -34,7 +34,7 @@ internal class MapTilerTileServerStyleUriBuilder(
val mapId = if (darkMode) darkMapId else lightMapId
append("$baseUrl/$mapId/style.json")
} else {
append(customMapStyleUrl.removeSuffix("/"))
append(customMapStyleUrl)
}
append("?key=$apiKey")
}