Example application on GitHub
You can find additional examples for the Maps SDK v10 release candidate on GitHub. Clone the repository and run the example application following the instructions in the README.
Show the user's location on the map
Show the user's location on a map using the default location indicator.
Add a marker to the map
Use the Mapbox Annotations API's PointAnnotationManager to add a single red marker pin to the map.
Add a marker symbol
Add a blue teardrop-shaped marker image to a style and display it on the map using a SymbolLayer.
Add animated weather data
Load a raster image to a style using ImageSource and display it on a map as animated weather data using RasterLayer.
Display building extrusions
Extrude the building layer in the Mapbox Light style using FillExtrusionLayer and set up the light position.
Display multiple icon images in a symbol layer
Add point data and several images to a style and use the switchCase and get expressions to choose which image to display at each point in a SymbolLayer based on a data property.
Draw a GeoJSON line
Load a polyline to a style using GeoJsonSource and display it on a map using LineLayer.
Style circles categorically
Add point data to a style from a vector tileset and use the match and get expressions to assign the color of each point in a Circle Layer based on a data property.
Tint a fill layer
Add an image to a style and use it to display a pattern in the landuse FillLayer in the Mapbox Streets style.