Class: Vector3D

ol.layer. Vector3D

3D vector layer rendering


new Vector3D(options)

Parameters:
Name Type Description
options Object
Properties
Name Type Description
source ol.layer.Vector

the source to display in 3D

styler ol.style.Style

drawing style

maxResolution number

max resolution to render 3D

defaultHeight number

default height if none is return by a propertie

height function | string | Number

a height function (returns height giving a feature) or a popertie name for the height or a fixed value

center Array.<number>

center of the view, default [.5,1]

Extends

  • pl.layer.Image

Methods


animate(options)

Animate rendering

Parameters:
Name Type Description
options *
Properties
Name Type Description
height string | function | number

an attribute name or a function returning height of a feature or a fixed value

duration number

the duration of the animatioin ms, default 1000

easing ol.easing

an ol easing function


animating()

Check if animation is on

Returns:
Type
bool

getStyle()

Get style associated with the layer

Returns:
Type
ol.style.Style

setHeight(height)

Set the height function for the layer

Parameters:
Name Type Description
height function | string | Number

a height function (returns height giving a feature) or a popertie name or a fixed value


setStyle(s)

Set style associated with the layer

Parameters:
Name Type Description
s ol.style.Style