

MTS API endpoints if you want a language-agnostic format to integrate MTS into your own scripts or pipelines.Tilesets-cli if you want a versatile endpoint-by-endpoint approach.MTS Data Sync if you want a quick interface to generate configurations for you.There are a variety of tools available to publish a tileset with MTS: When you publish, MTS applies the recipe instructions to transform the data into a tileset that is hosted in your Mapbox account, where you can view size and property details and also preview the data. The recipe option `set` sets new attributes on features and the Mapbox expression coalesce gets the feature’s description if it exists or, if the property doesn’t exist, it sets the property with the default value, “ski trail”. In our recipe, we set a default value of “ski trail” for the `description` property if it does not exist in the data. Some features may have a `description` tag, but others may not.

Since the data is user-generated, there may be gaps from resort to resort and trail to trail. OpenStreetMap tags are not always consistent. “piste:status” - status of the run, such as open, closed, etc.“piste:type” - type of ski run, such as nordic, downhill, etc."piste:difficulty" - the difficulty of the run.The recipe option `allowed_output` lets you choose which feature properties to keep in your output tileset. There are over 77 feature attributes associated with ski trails in the example region we downloaded from OpenStreetMap, but not all those metadata are necessary for our trail map. In the example below, we can see the precision loss that happens in the tileset - zoom 5 on the left is jagged and simplified, while zoom 11 contains smooth high-resolution lines that mirror the contours of the ski trails. However, relying on overzoom may cause a loss in precision if you view a tileset beyond its `maxzoom`. Thanks to overzooming the maxzoom of your tileset does not need to match the highest zoom of your map. The `minzoom` and `maxzoom` describe the ‘zoom extent’ of your tiles. Let’s take a look at the settings used for our ski trails recipe and explain how and why you might want to adjust these. "description":, "ski trail"]Īny good recipe allows for some customization. "source": "mapbox://tileset-source/username/osm_trails",
