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 577 -
Render a LineString into the canvas. Rendering is immediate and uses the current style.
Name Type Description lineStringGeometryol.geom.LineString Line string geometry.
featureol.Feature Feature.
-
drawMultiLineStringGeometry(multiLineStringGeometry, feature) experimental
src/ol/render/canvas/canvasimmediate.js, line 607 -
Render a MultiLineString geometry into the canvas. Rendering is immediate and uses the current style.
Name Type Description multiLineStringGeometryol.geom.MultiLineString MultiLineString geometry.
featureol.Feature Feature.
-
drawMultiPointGeometry(multiPointGeometry, feature) experimental
src/ol/render/canvas/canvasimmediate.js, line 556 -
Render a MultiPoint geometry into the canvas. Rendering is immediate and uses the current style.
Name Type Description multiPointGeometryol.geom.MultiPoint MultiPoint geometry.
featureol.Feature Feature.
-
drawMultiPolygonGeometry(multiPolygonGeometry, feature) experimental
src/ol/render/canvas/canvasimmediate.js, line 680 -
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 Point geometry.
featureol.Feature Feature.
-
drawPolygonGeometry(polygonGeometry, feature) experimental
src/ol/render/canvas/canvasimmediate.js, line 643 -
Render a Polygon geometry into the canvas. Rendering is immediate and uses the current style.
Name Type Description polygonGeometryol.geom.Polygon Polygon geometry.
featureol.Feature Feature.
-
setFillStrokeStyle(fillStyle, strokeStyle) experimental
src/ol/render/canvas/canvasimmediate.js, line 854 -
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 899 -
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 939 -
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