OpenLayers v4.0.1 API - Class: Immediate

# Class: Immediate

This documentation is for OpenLayers v4.0.1. The latest is v.

## ol.render.webgl.Immediate

### Extends

- ol.render.VectorContext

### Methods

#### drawFeature(feature, style)

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

  Name | Type | Description
  --- | --- | ---
  `feature` | ol.Feature | Feature.
  `style` | ol.style.Style | Style.

#### drawGeometry(geometry)

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

  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 93

  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.