跳到主要内容

flywave-mapview.textstylecache

Home > @flywave/flywave-mapview > TextStyleCache

TextStyleCache class

Signature:

export declare class TextStyleCache 

Constructors

Constructor

Modifiers

Description

(constructor)()

Constructs a new instance of the TextStyleCache class

Methods

Method

Modifiers

Description

createLayoutStyle(tile, technique)

Create the appropriate to use for a label. Depends heavily on the label's [[Technique]] and the current zoomLevel.

createRenderStyle(tile, technique)

Gets the appropriate to use for a label. Depends heavily on the label's [[Technique]] and the current zoomLevel.

getTextElementStyle(styleId)

Retrieves a TextElementStyle for 's [[TextStyle]] id.

updateTextCanvases(textCanvases)

updateTextStyles(textStyleDefinitions, defaultTextStyleDefinition)