new render3D(param)
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
param |
Object |
Properties
|
||||||
options.style |
ol.style.Style | drawing style |
||||||
param.active |
function | boolean | a function that returns a boolean or a boolean ,default true |
||||||
param.ghost |
boolean | use ghost 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
-
getActive()
-
Get active
Returns:
- Type
- boolean
-
getFeatureHeight(f)
-
Get feature height
Parameters:
Name Type Description f
ol.Feature -
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
-
setActive(active)
-
Set active
Parameters:
Name Type Description active
function | boolean -
setLayer()
-
Set layer to render 3D
-
setStyle(s)
-
Set style associated with the renderer
Parameters:
Name Type Description s
ol.style.Style