Class: MVT

ol/format/MVT~MVT


import MVT from 'ol/format/MVT';

Feature format for reading data in the Mapbox MVT format.

new MVT(opt_options)

format/MVT.js, line 47
Name Type Description
options

Options.

Name Type Default Description
featureClass function | function

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

geometryName string 'geometry'

Geometry name to use when creating features.

layerName string 'layer'

Name of the feature attribute that holds the layer name.

layers Array.<string>

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

Methods

getLastExtent()

format/MVT.js, line 235

readFeatures()

format/MVT.js, line 250

readProjection()

format/MVT.js, line 277

setLayers(layers)

format/MVT.js, line 286

Sets the layers that features will be read from.

Name Type Description
layers Array.<string>

Layers.