Repository navigation
Mapbox Studio Add Data
hzuellig edited this page Oct 22, 2020
·
13 revisions
A tileset is a collection of raster or vector data broken up into a uniform grid of square tiles at 22 preset zoom levels.
How to create tilesets
Click New tileset to upload your data. Mapbox renders vector tiles from your data so you can create styles from it.
How to use tilesets
Once your vector tiles are ready, you can add them to a new or existing style. First open your style in the style editor. Next, you can either create a new layer with this tileset as the source, or you can change an existing layer's data source to this tileset.
- Create new tileset
- Upload your gpx track File
- Embed track within style:
- Go to Style or Create a style
- Add new layer
- Select source, select track
- Chose line as type (default fill)
- Go to style and edit style
Embed style example: [https://github.com/digitalideation/studio_webmobile1_2020/blob/master/mapbox-standalone-examples/exp-5.html](https://github.com/digitalideation/studio_webmobile1_2020/blob/master/mapbox-standalone-examples/exp-5.html)
Read the track from the file and embed it using the API: [https://github.com/digitalideation/studio_webmobile1_2020/blob/master/mapbox-standalone-examples/exp-6.html](https://github.com/digitalideation/studio_webmobile1_2020/blob/master/mapbox-standalone-examples/exp-6.html)
Studio Web Mobile 1 – 2020 ©Digital Ideation, HSLU, Maria Husmann und Hanna Züllig