Class: MVT

ol.layer. MVT

A layer that use a vector style json file


new MVT(options)

Parameters:
Name Type Description
options Object
Properties
Name Type Argument Description
url string <optional>

source style url

title string <optional>

layer title, default use the style layer name

Source:
layer/MVT.js
Fires:
  • style:load
  • style:apply

Extends

Members


defaultIgnStyle

Default IGN style

Inherited From:
Overrides:
Source:
layer/VectorTile.js

getIgnStyle

Get ignStyle for the layer or a feature

Inherited From:
Overrides:
Source:
layer/VectorTile.js

getPopupContent

Get popupcontent of the layer

Inherited From:
Overrides:
Source:
layer/VectorTile.js

selectable

Check if layer is selectable

Inherited From:
Overrides:
Source:
layer/VectorTile.js

setIgnStyle

Set default ignStyle for a layer

Inherited From:
Overrides:
Source:
layer/VectorTile.js

setPopupContent

Set popupcontent of the layer

Inherited From:
Overrides:
Source:
layer/VectorTile.js

Methods


applyStyle(glStyle [, source])

Apply style

Parameters:
Name Type Argument Description
glStyle Object
source string <optional>

source key, default use the first source in the style object

Inherited From:
Overrides:
Source:
layer/MVT.js

loadMapboxStyle(options)

Load a mapbox style file and apply it to the layer

Parameters:
Name Type Description
options Object
Properties
Name Type Argument Description
url string

styleUrl

source string <optional>

source key, default use the first source in the style object

useTitle boolean <optional>

get the layer name in the glStyle

Inherited From:
Overrides:
Source:
layer/MVT.js