M/layer/MVT~MVT


import MVT from 'M/layer/MVT';

Main constructor of the class. Creates a MVT layer with parameters specified by the user

new MVT()

facade/js/layer/MVT.js, line 30

Members

module:M/layer/MVT~MVT.DEFAULT_OPTIONS_STYLE{object}

Style options by default for this layer

module:M/layer/MVT~MVT.DEFAULT_PARAMS_STYLE{object}

Params options by default for MVT layer *

type

type

Methods

calculateMaxExtent()

facade/js/layer/MVT.js, line 102

This method calculates the maxExtent of this layer:

  1. Check if the user specified a maxExtent parameter
  2. Gets the map maxExtent
  3. Sets the maxExtent from the map projection Async version of getMaxExtent

clearStyle()

facade/js/layer/MVT.js, line 168

Removes the style of the layer, both at layer and at feature level

getFeatures(){Array.<M.RenderFeature>}

facade/js/layer/MVT.js, line 155

Returns all features.

Returns:
Features

getGeometryType(){string}

facade/js/layer/MVT.js, line 135

Gets the geometry type of the layer.

Returns:
geometry type of layer

getMaxExtent()

facade/js/layer/MVT.js, line 81

This method calculates the maxExtent of this layer:

  1. Check if the user specified a maxExtent parameter
  2. Gets the map maxExtent
  3. Sets the maxExtent from the map projection

getProjection()

facade/js/layer/MVT.js, line 124

This function gets the projection of the map.

setTileLoadFunction(func)

facade/js/layer/MVT.js, line 68

This function sets the tileLoadFunction On the implementation

Name Type Description
func function

Function to override