Share via


VectorTileSource class

Un'origine riquadro vettoriale descrive come accedere a un livello riquadro vettoriale. Le origini dei riquadri vettoriali possono essere usate con; SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, HeatmapLayer e VectorTileLayer.

Extends

Costruttori

VectorTileSource(string, VectorTileSourceOptions)

Metodi

getOptions()

Ottiene le opzioni di VectorTileSource.

getShape(string, Expression)

Restituisce tutte le funzionalità GeoJSON presenti in VectorTileSource e che soddisfano l'espressione di filtro specificata.

Metodi ereditati

getId()

Ottiene l'ID dell'origine dati

Dettagli costruttore

VectorTileSource(string, VectorTileSourceOptions)

new VectorTileSource(id?: string, options?: VectorTileSourceOptions)

Parametri

id

string

Dettagli metodo

getOptions()

Ottiene le opzioni di VectorTileSource.

function getOptions(): VectorTileSourceOptions

Restituisce

getShape(string, Expression)

Restituisce tutte le funzionalità GeoJSON presenti in VectorTileSource e che soddisfano l'espressione di filtro specificata.

function getShape(sourceLayer: string, filter?: Expression): Array<Feature<atlas.data.Geometry, any>>

Parametri

sourceLayer

string

Obbligatorio se l'origine è VectorTileSource. Specifica il livello all'interno di VectorTileSource per la query.

filter
Expression

Filtro che limita la query.

Restituisce

Array<Feature<Geometry, any>>

Dettagli dei metodi ereditati

getId()

Ottiene l'ID dell'origine dati

function getId(): string

Restituisce

string

Ereditato daSource.getId