Class: render3D

ol. render3D

ol.render3D 3D vector layer rendering


new render3D(options)

Parameters:
Name Type Description
options olx.render3DOption

masResolution {number} max resolution to render 3D

    - defaultHeight {number} default height if none is return by a propertie
    - height {function|string|Number} a height function (return height giving a feature) or a popertie name for the height or a fixed value

Methods


animate(options)

Animate rendering

Parameters:
Name Type Description
options olx.render3D.animateOptions

height {string|function|number} an attribute name or a function returning height of a feature or a fixed value

    - durtion {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

drawFeature3D_()


getFeature3D_()


getFeatureHeight()


getHfn(a)

Create a function that return height of a feature

Parameters:
Name Type Description
a function | string | number

height function or a popertie name or a fixed value

Returns:

function(f) return height of the feature f

Type
function

hvector_()


onPostcompose_()

Calculate 3D at potcompose


setLayer()

Set layer to render 3D