Members
-
module:ol/render/canvas.labelCache{?}
-
The label cache for text rendering. To change the default cache size of 2048 entries, use
module:ol/structs/LRUCache#setSize. Deprecated - there is no label cache any more.- Deprecated
- Yes
Type Definitions
-
DeclutterGroup{Array.<*>}
-
Container for decluttered replay instructions that need to be rendered or omitted together, i.e. when styles render both an image and text, or for the characters that form text along lines. The basic elements of this array are
[minX, minY, maxX, maxY, count], where the first four entries are the rendered extent of the group in pixel space.countis the number of styles in the group, i.e. 2 when an image and a text are grouped, or 1 otherwise. In addition to these four elements, declutter instruction arrays (i.e. the arguments tomodule:ol/render/canvas~drawImageare appended to the array. -
DeclutterGroups{Array.<module:ol/render/canvas~DeclutterGroup>}
-
Declutter groups for support of multi geometries.
-
FillState{Object}
-
Properties:
Name Type Description fillStylemodule:ol/colorlike~ColorLike -
FillStrokeState{Object}
-
Properties:
Name Type Argument Description currentFillStylemodule:ol/colorlike~ColorLike <optional>
currentStrokeStylemodule:ol/colorlike~ColorLike <optional>
currentLineCapCanvasLineCap <optional>
currentLineDashArray.<number> currentLineDashOffsetnumber <optional>
currentLineJoinCanvasLineJoin <optional>
currentLineWidthnumber <optional>
currentMiterLimitnumber <optional>
lastStrokenumber <optional>
fillStylemodule:ol/colorlike~ColorLike <optional>
strokeStylemodule:ol/colorlike~ColorLike <optional>
lineCapCanvasLineCap <optional>
lineDashArray.<number> lineDashOffsetnumber <optional>
lineJoinCanvasLineJoin <optional>
lineWidthnumber <optional>
miterLimitnumber <optional>
-
Label
-
Properties:
Name Type Description widthnumber heightnumber contextInstructionsArray.<(string|number)> -
StrokeState{Object}
-
Properties:
Name Type Description lineCapCanvasLineCap lineDashArray.<number> lineDashOffsetnumber lineJoinCanvasLineJoin lineWidthnumber miterLimitnumber strokeStylemodule:ol/colorlike~ColorLike -
TextState{Object}
-
Properties:
Name Type Argument Description fontstring textAlignstring <optional>
textBaselinestring placementstring <optional>
maxAnglenumber <optional>
overflowboolean <optional>
backgroundFillmodule:ol/style/Fill~Fill <optional>
backgroundStrokemodule:ol/style/Stroke~Stroke <optional>
scalenumber <optional>
paddingArray.<number> <optional>
OpenLayers