Extends
Methods
-
drawAsync(zIndex, callback) experimental
-
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, data) experimental
-
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.
dataObject Opaque data object,
-
drawFeature(feature, style) experimental
-
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
ol.FeatureOverlayinstead of calling this method directly.Name Type Description featureol.Feature Feature.
styleol.style.Style Style.
-
drawLineStringGeometry(lineStringGeometry, data) experimental
-
Render a LineString into the canvas. Rendering is immediate and uses the current style.
Name Type Description lineStringGeometryol.geom.LineString Line string geometry.
dataObject Opaque data object.
-
drawMultiLineStringGeometry(multiLineStringGeometry, data) experimental
-
Render a MultiLineString geometry into the canvas. Rendering is immediate and uses the current style.
Name Type Description multiLineStringGeometryol.geom.MultiLineString MultiLineString geometry.
dataObject Opaque data object.
-
drawMultiPointGeometry(multiPointGeometry, data) experimental
-
Render a MultiPoint geometry into the canvas. Rendering is immediate and uses the current style.
Name Type Description multiPointGeometryol.geom.MultiPoint MultiPoint geometry.
dataObject Opaque data object.
-
drawMultiPolygonGeometry(multiPolygonGeometry, data) experimental
-
Render MultiPolygon geometry into the canvas. Rendering is immediate and uses the current style.
Name Type Description multiPolygonGeometryol.geom.MultiPolygon MultiPolygon geometry.
dataObject Opaque data object.
-
drawPointGeometry(pointGeometry, data) experimental
-
Render a Point geometry into the canvas. Rendering is immediate and uses the current style.
Name Type Description pointGeometryol.geom.Point Point geometry.
dataObject Opaque data object.
-
drawPolygonGeometry(polygonGeometry, data) experimental
-
Render a Polygon geometry into the canvas. Rendering is immediate and uses the current style.
Name Type Description polygonGeometryol.geom.Polygon Polygon geometry.
dataObject Opaque data object.
-
setFillStrokeStyle(fillStyle, strokeStyle) experimental
-
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
-
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
-
Set the text style for subsequent draw operations. Pass null to remove the text style.
Name Type Description textStyleol.style.Text Text style.