Optional
accessOptional
accessAccess token param. For internal use.
Optional
getFunction that returns an image for an icon name. If the result is an HTMLImageElement, it must already be loaded. The layer can be used to call layer.changed() when the loading and processing of the image has finished. This function be used for icons not in the sprite or to override sprite icons.
Optional
projectionOnly useful when working with non-standard projections.
Code of a projection registered with OpenLayers. All sources of the style must be provided in this
projection. The projection must also have a valid extent defined, which will be used to determine the
origin and resolutions of the tile grid for all tiled sources of the style. When provided, the bbox
placeholder in tile and geojson urls changes: the default is {bbox-epsg-3857}
, when projection is e.g.
set to EPSG:4326
, the bbox placeholder will be {bbox-epsg-4326}
.
Optional
resolutionsOnly useful when working with non-standard projections.
Resolutions for mapping resolution to the zoom
used in the Mapbox/MapLibre style.
Optional
styleURL of the Mapbox GL style. Required for styles that were provided as object, when they contain a relative sprite url, or sources referencing data by relative url.
Optional
transformFunction for controlling how ol-mapbox-style
fetches resources. Can be used for modifying
the url, adding headers or setting credentials options. Called with the url and the resource
type as arguments, this function is supposed to return a Request
or a url string
, or a promise tehereof.
Without a return value the original request will not be modified.
Optional
webfontsTemplate for resolving webfonts. Can be used to specify where to fetch
web fonts when no ol:webfonts
metadata is set in the style object. See getFonts()
and the
"Font handling" section in README.md
for details.
Access token for 'mapbox://' urls.