Class: Immediate

ol.render.webgl.Immediate

Extends

Methods

drawFeature(feature, style)

src/ol/render/webgl/immediate.js, line 179
Name Type Description
feature ol.Feature

Feature.

style ol.style.Style

Style.

drawGeometry(geometry)

src/ol/render/webgl/immediate.js, line 142

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

Name Type Description
geometry ol.geom.Geometry | ol.render.Feature

The geometry to render.

setStyle(style)

src/ol/render/webgl/immediate.js, line 127

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 ol.style.Style

The rendering style.