Optional
adapterOptional
attributionString to be shown in the attribution control. It describes the layer data and is often a legal obligation towards copyright holders and tile providers.
Optional
baselayerIndicate on a cartographic base layer.
Optional
crossParameter added when forming a request for layer data. This is needed if you want to access tile pixel data. Refer to CORS Settings for valid String values.
Optional
fitFit map to layer extent
false
Optional
formatOptional
headersOptional
idUnique Layer ID. If not specified, will be added automatically.
If the layer adapter is asynchronous, its id will be assigned only after the promise is resolved. While adapter is loading, methods for obtaining layers will ignore the added layer.
Optional
layersOptional
maxTODO: replace by maxZoom
use maxZoom instead
Optional
maxMaximum zoom level of the map.
Optional
minTODO: replace by minZoom
use minZoom instead
Optional
minMinimum zoom level of the map.
Optional
nameNon-unique name of the layer. Can be used for user interfaces.
Optional
nativeMap and layer adapter base options Use with care. There may be a conflict in the addLayer method by the adapter of the NextGIS Frontend library
Optional
onOptional
opacityLayer transparency. From 0-transparent to 1-visible
1
Optional
orderIndicates the map layers display sequence. A layer with a larger order value overlaps smaller ones. Zero value used to indicate baselayer. If the value is not specified explicitly, it will be assigned automatically with an increase of one for each new layer.
Optional
propsAny properties to save in layer. May be useful to get additional info from layer event.
Optional
ratioOptional
resourceuse params
option instead
Optional
setExperimental option to set the map loading delay when changing position
Optional
srsExperimental only for Ol yet
Optional
subdomainsOptional
tileOptional
transparentOptional
typeType for geometries painting, for each layer may be only one of: point
, polygon
or line
.
Optional
updateOptional
versionOptional
visibilityShow layer on the map immediately after adding. Such layers are always under others. Only one base layer can be displayed on the map at a time.
TODO: replace by show
true
Optional
waitWait until the layer data is fully loaded before allowing added to the map.
If true, addLayer promise resolve only after data loading. This is useful for GeoJson vector layer adapters when you need to process downloaded data before displaying.
Generated using TypeDoc
Parameters that can be used to create any map layer adapter.