Class: RenderEvent

ol/render/Event~RenderEvent


Extends

Members

context{CanvasRenderingContext2D} {WebGLRenderingContext} {undefined}

Canvas context. Not available when the event is dispatched by the map. For Canvas 2D layers, the context will be the 2D rendering context. For WebGL layers, the context will be the WebGL context.

frameState{module:ol/PluggableMap~FrameState} {undefined}

An object representing the current render frame state.

inversePixelTransform{module:ol/transform~Transform} {undefined}

Transform from CSS pixels (relative to the top-left corner of the map viewport) to rendered pixels on this event's context. Only available when a Canvas renderer is used, null otherwise.

target{Object}

The event target.

type{string}

The event type.

Methods

preventDefault() inherited

Prevent default. This means that no emulated click, singleclick or doubleclick events will be fired.

stopPropagation() inherited

Stop event propagation.

Events

Generic change event. Triggered when the revision counter is increased.

Generic error event. Triggered when an error occurs.

Triggered after layers are composed. When dispatched by the map, the event object will not have a context set. When dispatched by a layer, the event object will have a context set. Only WebGL layers currently dispatch this event.

Triggered after a layer is rendered.

Triggered before layers are composed. When dispatched by the map, the event object will not have a context set. When dispatched by a layer, the event object will have a context set. Only WebGL layers currently dispatch this event.

Triggered before a layer is rendered.

rendercomplete

Triggered when rendering is complete, i.e. all sources and tiles have finished loading for the current viewport, and all tiles are faded in. The event object will not have a context set.