Class: render3D

ol. render3D

ol.render3D 3D vector layer rendering


new render3D(param)

Parameters:
Name Type Description
param Object
Properties
Name Type Description
layer ol.layer.Vector

the layer to display in 3D

options.styler ol.style.Style

drawing style

param.maxResolution number

max resolution to render 3D

param.defaultHeight number

default height if none is return by a propertie

param.height function | string | Number

a height function (returns 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
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


setLayer()

Set layer to render 3D


setStyle(s)

Set style associated with the renderer

Parameters:
Name Type Description
s ol.style.Style