Gist 1096899d107604614879ac8aa7853933
✓ Published0🌍 Public
Aandybak
Last edited May 12, 2019
Created on May 12, 2019
This example shows how to extract contour line geometry from Mapbox vector tiles and log the coordinates of each point in every polygon. It queries the "contour" layer from the mapbox.terrain-v2 tileset at a specific latitude, longitude, and zoom level using Mapbox Unity. The code instantiates a VectorTile, initializes it with tile parameters, and iterates through the layer’s features, printing geometry type and point coordinates via Debug.Log. It relies on Mapbox.Map.VectorTile and Mapbox.Unity.Utilities.Conversions to convert geographic coordinates to tile IDs.
AI-generated description