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:
Alfonso Grillo
2023-07-20 17:09:50 +02:00
committed by GitHub
parent 0561bac46b
commit e92b2c94ed
10 changed files with 124 additions and 56 deletions
+12 -1
View File
@@ -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`