Sdílet prostřednictvím


VectorTileSource class

Zdroj vektorové dlaždice popisuje, jak získat přístup k vrstvě vektorové dlaždice. Zdroje vektorových dlaždic lze použít s; SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, HeatmapLayer a VectorTileLayer.

Extends

Konstruktory

VectorTileSource(string, VectorTileSourceOptions)

Metody

getOptions()

Získá možnosti VectorTileSource.

getShape(string, Expression)

Vrátí všechny funkce GeoJSON, které jsou v VectorTileSource a které vyhovují zadanému výrazu filtru.

Zděděné metody

getId()

Získá ID zdroje dat.

Podrobnosti konstruktoru

VectorTileSource(string, VectorTileSourceOptions)

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

Parametry

id

string

Podrobnosti metody

getOptions()

Získá možnosti VectorTileSource.

function getOptions(): VectorTileSourceOptions

Návraty

getShape(string, Expression)

Vrátí všechny funkce GeoJSON, které jsou v VectorTileSource a které vyhovují zadanému výrazu filtru.

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

Parametry

sourceLayer

string

Vyžaduje se, pokud je zdrojem VectorTileSource. Určuje vrstvu v rámci VectorTileSource, která se má dotazovat.

filter
Expression

Filtr, který omezí dotaz.

Návraty

Array<Feature<Geometry, any>>

Podrobnosti zděděných metod

getId()

Získá ID zdroje dat.

function getId(): string

Návraty

string

Zděděno zsource.getId