new GeoportalMapBox(options, settings)
OpenLayers/Layers/LayerMapBox.js, line 41
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object |
options for function call.
|
|||||||||||||||
settings | Object |
optional
other options for ol.layer.VectorTile function (see ol.layer.VectorTile) |
Example
var LayerMapBox = new ol.layer.GeoportalMapBox({
layer : "PLAN.IGN",
[style : "classique",]
[source : "plan_ign",]
[ssl: true]
}, {
opacity
visible
extent
declutter
...
});
Extends
- ol.layer.VectorTile
Methods
-
onStyleMapBoxError(error)
OpenLayers/Layers/LayerMapBox.js, line 358 -
Error
Name Type Description error * message
-
onStyleMapBoxLoad(style)
OpenLayers/Layers/LayerMapBox.js, line 284 -
Add Style
Name Type Description style * json style