Extends
Methods
-
drawAsync(zIndex, callback) experimental
src/ol/render/canvas/canvasimmediate.js, line 417 -
Register a function to be called for rendering at a given zIndex. The function will be called asynchronously. The callback will receive a reference to
ol.render.canvas.Immediatecontext for drawing.Name Type Description zIndexnumber Z index.
callbackfunction Callback.
-
drawCircleGeometry(circleGeometry, feature) experimental
src/ol/render/canvas/canvasimmediate.js, line 436 -
Render a circle geometry into the canvas. Rendering is immediate and uses the current fill and stroke styles.
Name Type Description circleGeometryol.geom.Circle Circle geometry.
featureol.Feature Feature,
-
drawFeature(feature, style) experimental
src/ol/render/canvas/canvasimmediate.js, line 481 -
Render a feature into the canvas. In order to respect the zIndex of the style this method draws asynchronously and thus after calls to drawXxxxGeometry have been finished, effectively drawing the feature on top of everything else. You probably should be using an
ol.layer.Vectorinstead of calling this method directly.Name Type Description featureol.Feature Feature.
styleol.style.Style Style.
-
drawLineStringGeometry(lineStringGeometry, feature) experimental
src/ol/render/canvas/canvasimmediate.js, line 579 -
Render a LineString into the canvas. Rendering is immediate and uses the current style.
Name Type Description lineStringGeometryol.geom.LineString | ol.FlyweightFeature Line string geometry.
featureol.Feature | ol.FlyweightFeature Feature.
-
drawMultiLineStringGeometry(multiLineStringGeometry, feature) experimental
src/ol/render/canvas/canvasimmediate.js, line 609 -
Render a MultiLineString geometry into the canvas. Rendering is immediate and uses the current style.
Name Type Description multiLineStringGeometryol.geom.MultiLineString | ol.FlyweightFeature MultiLineString geometry.
featureol.Feature | ol.FlyweightFeature Feature.
-
drawMultiPointGeometry(multiPointGeometry, feature) experimental
src/ol/render/canvas/canvasimmediate.js, line 557 -
Render a MultiPoint geometry into the canvas. Rendering is immediate and uses the current style.
Name Type Description multiPointGeometryol.geom.MultiPoint | ol.FlyweightFeature MultiPoint geometry.
featureol.Feature | ol.FlyweightFeature Feature.
-
drawMultiPolygonGeometry(multiPolygonGeometry, feature) experimental
src/ol/render/canvas/canvasimmediate.js, line 683 -
Render MultiPolygon geometry into the canvas. Rendering is immediate and uses the current style.
Name Type Description multiPolygonGeometryol.geom.MultiPolygon MultiPolygon geometry.
featureol.Feature Feature.
-
drawPointGeometry(pointGeometry, feature) experimental
src/ol/render/canvas/canvasimmediate.js, line 535 -
Render a Point geometry into the canvas. Rendering is immediate and uses the current style.
Name Type Description pointGeometryol.geom.Point | ol.FlyweightFeature Point geometry.
featureol.Feature | ol.FlyweightFeature Feature.
-
drawPolygonGeometry(polygonGeometry, feature) experimental
src/ol/render/canvas/canvasimmediate.js, line 646 -
Render a Polygon geometry into the canvas. Rendering is immediate and uses the current style.
Name Type Description polygonGeometryol.geom.Polygon | ol.FlyweightFeature Polygon geometry.
featureol.Feature | ol.FlyweightFeature Feature.
-
setFillStrokeStyle(fillStyle, strokeStyle) experimental
src/ol/render/canvas/canvasimmediate.js, line 857 -
Set the fill and stroke style for subsequent draw operations. To clear either fill or stroke styles, pass null for the appropriate parameter.
Name Type Description fillStyleol.style.Fill Fill style.
strokeStyleol.style.Stroke Stroke style.
-
setImageStyle(imageStyle) experimental
src/ol/render/canvas/canvasimmediate.js, line 902 -
Set the image style for subsequent draw operations. Pass null to remove the image style.
Name Type Description imageStyleol.style.Image Image style.
-
setTextStyle(textStyle) experimental
src/ol/render/canvas/canvasimmediate.js, line 942 -
Set the text style for subsequent draw operations. Pass null to remove the text style.
Name Type Description textStyleol.style.Text Text style.
OpenLayers 3