Class: Vector3D

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 olx.render3D.animateOptions
param.height string | function | number

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

param.duration number

the duration of the animatioin ms, default 1000

param.easing ol.easing

an ol easing function


animating()

Check if animation is on

Returns:
Type
bool

drawFeature3D_()


getFeature3D_()


getFeatureHeight()


getHfn(h)

Create a function that return height of a feature

Parameters:
Name Type Description
h function | string | number

a height function or a popertie name or a fixed value

Returns:

function(f) return height of the feature f

Type
function

getStyle()

Get style associated with the renderer

Returns:
Type
ol.style.Style

hvector_()


onPostcompose_()

Calculate 3D at potcompose


setStyle(s)

Set style associated with the renderer

Parameters:
Name Type Description
s ol.style.Style