Style topic
Visit the layers chapter in the documentation to learn more.
Classes
- BackgroundStyleLayer Style
- A simple background layer.
- CircleStyleLayer Style
- A layer that contains circles.
- FillExtrusionStyleLayer Style
- A layer that contains circles.
- FillStyleLayer Style
- A layer that contains polygons.
- GeoJsonSource Style
- A GeoJSON source. Data must be provided via a "data" property, whose value can be a URL or inline GeoJSON. When using in a browser, the GeoJSON data must be on the same domain as the map or served with CORS headers.
- HeatmapStyleLayer Style
- A layer that contains circles.
- HillshadeStyleLayer Style
- A layer that contains circles.
- ImageSource Style
- An image source. The url value contains the image location. The coordinates array contains Positions for the image corners listed in clockwise order: top left, top right, bottom right, bottom left.
- LineStyleLayer Style
- A layer that contains circles.
- RasterDemCustomEncoding Style
- Decodes tiles using the redFactor, blueFactor, greenFactor, baseShift parameters.
- RasterDemEncoding Style
- The encoding used by this source. Mapbox Terrain RGB is used by default.
- RasterDemMapboxEncoding Style
- Mapbox Terrain RGB tiles. See https://www.mapbox.com/help/access-elevation-data/#mapbox-terrain-rgb for more info.
- RasterDemSource Style
- A raster DEM source. Only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.
- RasterDemTerrariumEncoding Style
- Terrarium format PNG tiles. See https://aws.amazon.com/es/public-datasets/terrain/ for more info.
- RasterSource Style
- A raster tile source.
- RasterStyleLayer Style
- A layer that contains markers.
- Source Style
- The base Source class that can't be used directly.
- StyleLayer Style
- The base Layer class that can't be used directly.
- StyleLayerWithSource Style
- A StyleLayer that pulls its data from a Source. Basically every layer except BackgroundStyleLayer.
- SymbolStyleLayer Style
- A layer that contains markers.
- VectorSource Style
- A vector tile source. Tiles must be in Mapbox Vector Tile format. All geometric coordinates in vector tiles must be between -1 * extent and (extent * 2) - 1 inclusive. All layers that use a vector source must specify a source-layer value.
- VideoSource Style
- A video source. The urls value is an array. For each URL in the array, a video element source will be created. To support the video across browsers, supply URLs in multiple formats.
Enums
- TileScheme Style
- Influences the y direction of the tile coordinates.
Typedefs
- StyleLoadedCallback = void Function(StyleController style) Basic Style
- Callback that fires once the map style has successfully loaded. It provides the StyleController to the user.