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.
Add view annotation to a point annotation
Add a ViewAnnotation to a MapView and anchor it to a point annotation.
Add view annotations connected to features
Add a ViewAnnotation to a MapView and anchor it to a feature in a symbol layer.
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.
Display the user's location
Display the user's location on a map with the default user location puck.
Draw a GeoJSON line
Load a polyline to a style using GeoJsonSource and display it on a map using LineLayer.
Fly-to camera animation
Animate the camera changes with the fly-to animation with map starting in Globe projection. This causes the camera to ease from a starting point to an end destination.
Restrict map panning
Restrict the map\'s viewport to a specified set of coordinates for gesture-based camera changes. The viewport can still be changed programmatically.
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.
Using custom camera animations
Animate the map camera to a new position using camera animators. Individual camera properties such as zoom, bearing, and center coordinate can be animated independently.