Class: VectorTile

ol.layer. VectorTile

Extend Vector tile

  • add layer in features attributes
  • add layer ignStyle
  • add selectable

new VectorTile()

Source:
layer/VectorTile.js

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

setSource(source)

Set source to add layer in features attributes when loaded

Parameters:
Name Type Description
source *
Source:
layer/VectorTile.js