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 34
Name Type Description
options

Options.

Name Type Description
featureClass undefined | function | function experimental

Class for features returned by ol.format.MVT#readFeatures. Set to ol.Feature to get full editing and geometry support at the cost of decreased rendering performance. The default is ol.render.Feature, which is optimized for rendering and hit detection.

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 194

Sets the layers that features will be read from.

Name Type Description
layers Array.<string>

Layers.