Class: MVT

ol.format.MVT

Feature format for reading data in the Mapbox MVT format.

new ol.format.MVT(opt_options) experimental

src/ol/format/mvtformat.js, line 36
Name Type Description
options

Options.

Name Type Description
flyweight boolean | undefined experimental

Return ol.FlyweightFeature instead of ol.Feature instances when reading features. Note that flyweight features cannot be reprojected and have a limited API. Default is false.

geometryName string | undefined experimental

Geometry name to use when creating features. Default is 'geometry'.

layerName string | undefined experimental

Name of the feature attribute that holds the layer name. Default is 'layer'.

layers Array.<string> | undefined experimental

Layers to read features from. If not provided, features will be read from all layers.

Extends

Methods

setLayers(layers) experimental

src/ol/format/mvtformat.js, line 206

Sets the layers that features will be read from.

Name Type Description
layers Array.<string>

Layers.