mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
customMapStyleUrl should end with style.json and should not have any trailing slash.
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@ internal class MapTilerTileServerStyleUriBuilder(
|
|||||||
val mapId = if (darkMode) darkMapId else lightMapId
|
val mapId = if (darkMode) darkMapId else lightMapId
|
||||||
append("$baseUrl/$mapId/style.json")
|
append("$baseUrl/$mapId/style.json")
|
||||||
} else {
|
} else {
|
||||||
append(customMapStyleUrl.removeSuffix("/"))
|
append(customMapStyleUrl)
|
||||||
}
|
}
|
||||||
append("?key=$apiKey")
|
append("?key=$apiKey")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user