Members
-
module:ol/render/canvas.labelCache{?}
-
The label cache for text rendering. To change the default cache size of 2048 entries, use
cache.setSize(). Deprecated - there is no label cache any more.- Deprecated
- Yes
Type Definitions
-
DeclutterImageWithText{Object.<number, module:ol/render/canvas/Executor~ReplayImageOrLabelArgs>}
-
-
FillState{Object}
-
Properties:
Name Type Description fillStylemodule:ol/colorlike~ColorLike FillStyle.
-
FillStrokeState{Object}
-
Properties:
Name Type Argument Description currentFillStylemodule:ol/colorlike~ColorLike <optional>
Current FillStyle.
currentStrokeStylemodule:ol/colorlike~ColorLike <optional>
Current StrokeStyle.
currentLineCapCanvasLineCap <optional>
Current LineCap.
currentLineDashArray.<number> Current LineDash.
currentLineDashOffsetnumber <optional>
Current LineDashOffset.
currentLineJoinCanvasLineJoin <optional>
Current LineJoin.
currentLineWidthnumber <optional>
Current LineWidth.
currentMiterLimitnumber <optional>
Current MiterLimit.
lastStrokenumber <optional>
Last stroke.
fillStylemodule:ol/colorlike~ColorLike <optional>
FillStyle.
strokeStylemodule:ol/colorlike~ColorLike <optional>
StrokeStyle.
lineCapCanvasLineCap <optional>
LineCap.
lineDashArray.<number> LineDash.
lineDashOffsetnumber <optional>
LineDashOffset.
lineJoinCanvasLineJoin <optional>
LineJoin.
lineWidthnumber <optional>
LineWidth.
miterLimitnumber <optional>
MiterLimit.
-
Label
-
Properties:
Name Type Description widthnumber Width.
heightnumber Height.
contextInstructionsArray.<(string|number)> ContextInstructions.
-
SerializableInstructions{Object}
-
Properties:
Name Type Argument Description instructionsArray.<*> The rendering instructions.
hitDetectionInstructionsArray.<*> The rendering hit detection instructions.
coordinatesArray.<number> The array of all coordinates.
textStatesObject.<string, module:ol/render/canvas~TextState> <optional>
The text states (decluttering).
fillStatesObject.<string, module:ol/render/canvas~FillState> <optional>
The fill states (decluttering).
strokeStatesObject.<string, module:ol/render/canvas~StrokeState> <optional>
The stroke states (decluttering).
-
StrokeState{Object}
-
Properties:
Name Type Description lineCapCanvasLineCap LineCap.
lineDashArray.<number> LineDash.
lineDashOffsetnumber LineDashOffset.
lineJoinCanvasLineJoin LineJoin.
lineWidthnumber LineWidth.
miterLimitnumber MiterLimit.
strokeStylemodule:ol/colorlike~ColorLike StrokeStyle.
-
TextState{Object}
-
Properties:
Name Type Argument Description fontstring Font.
textAlignstring <optional>
TextAlign.
textBaselinestring TextBaseline.
placementstring <optional>
Placement.
maxAnglenumber <optional>
MaxAngle.
overflowboolean <optional>
Overflow.
backgroundFillmodule:ol/style/Fill~Fill <optional>
BackgroundFill.
backgroundStrokemodule:ol/style/Stroke~Stroke <optional>
BackgroundStroke.
scalemodule:ol/size~Size <optional>
Scale.
paddingArray.<number> <optional>
Padding.
OpenLayers