Type Alias RasterSourceSpecification
attribution?: string;
bounds?: [number, number, number, number];
maxzoom?: number;
minzoom?: number;
scheme?: "xyz" | "tms";
tiles?: string[];
tileSize?: number;
type: "raster";
url?: string;
volatile?: boolean;
}
Properties
Optionalattribution
Optionalbounds
An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: [sw.lng, sw.lat, ne.lng, ne.lat]. When this property is included in a source, no tiles outside of the given bounds are requested by MapLibre.
Optionalmaxzoom
Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels.
Optionalminzoom
Minimum zoom level for which tiles are available, as in the TileJSON spec.
Optionalscheme
Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed.
Optionaltiles
An array of one or more tile source URLs, as in the TileJSON spec.
OptionaltileSize
The minimum visual size to display tiles for this layer. Only configurable for raster layers.
type
The type of the source.
Optionalurl
A URL to a TileJSON resource. Supported protocols are http: and https:.
Optionalvolatile
A setting to determine whether a source's tiles are cached locally.
Contains an attribution to be displayed when the map is shown to a user.