mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 08:15:24 +00:00
Refactor map styles for forking (#1364)
* Add MapLibreStyle * Refactor url builders * Add doc * Add UTs * Rename style * Improve doc * Update project * Amend doc * Improve documentation
This commit is contained in:
+12
-1
@@ -29,4 +29,15 @@ One way to avoid pushing the API key by mistake is running on your machine the c
|
||||
```
|
||||
git update-index assume-unchanged secrets.xcconfig
|
||||
```
|
||||
this will prevent pushing any update of the file`secrets.xcconfig`.
|
||||
this will prevent pushing any update of the file`secrets.xcconfig`.
|
||||
|
||||
Finally you need to setup your map styles overriding the values you find in the code:
|
||||
|
||||
```swift
|
||||
enum MapTilerStyle: String {
|
||||
case light = “your_style_id_light”
|
||||
case dark = “your_style_id_dark”
|
||||
}
|
||||
```
|
||||
|
||||
You aren’t required to use custom styles here. You can use already available styles like `basic-v2` and `basic-v2-dark`
|
||||
Reference in New Issue
Block a user