-
Notifications
You must be signed in to change notification settings - Fork 502
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set the map style to a local asset in iOS (#306)
* Try to load a style from a local asset if styleString does not start with http(s):// or mapbox:// * Add style.json asset for testing. * Update map_ui so that we can toggle through different map styles. * Added similar implementation on Android for parity. * Added some documentation on the usage of map styles.
- Loading branch information
1 parent
e97051b
commit d2a4b37
Showing
6 changed files
with
68 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"version": 8, | ||
"name": "Example taken from https://docs.mapbox.com/ios/maps/examples/source-custom-vector/", | ||
"sources": { | ||
"mapillary": { | ||
"type": "vector", | ||
"tiles": [ | ||
"https://d25uarhxywzl1j.cloudfront.net/v0.1/{z}/{x}/{y}.mvt" | ||
], | ||
"attribution": "<a href=\"https://www.mapillary.com\" target=\"_blank\">© Mapillary, CC BY</a>", | ||
"maxzoom": 14 | ||
} | ||
}, | ||
"layers": [{ | ||
"id": "background", | ||
"type": "background", | ||
"paint": { | ||
"background-color": "#485E77" | ||
} | ||
}, | ||
{ | ||
"id": "mapillary-sequences", | ||
"type": "line", | ||
"source": "mapillary", | ||
"source-layer": "mapillary-sequences", | ||
"filter": [ | ||
"==", | ||
"$type", | ||
"LineString" | ||
], | ||
"paint": { | ||
"line-color": "#F56745" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters