Class: WebGLImmediateRenderer

ol/render/webgl/Immediate~WebGLImmediateRenderer


Extends

Methods

drawFeature(feature, style)

render/webgl/Immediate.js, line 167
Name Type Description
feature module:ol/Feature~Feature

Feature.

style module:ol/style/Style~Style

Style.

drawGeometry(geometry)

render/webgl/Immediate.js, line 131

Render a geometry into the canvas. Call ol/render/webgl/Immediate#setStyle first to set the rendering style.

Name Type Description
geometry module:ol/geom/Geometry~Geometry | module:ol/render/Feature~RenderFeature

The geometry to render.

setStyle(style)

render/webgl/Immediate.js, line 117

Set the rendering style. Note that since this is an immediate rendering API, any zIndex on the provided style will be ignored.

Name Type Description
style module:ol/style/Style~Style

The rendering style.