VectorTileSource class

벡터 타일 원본은 벡터 타일 레이어에 액세스하는 방법을 설명합니다. 벡터 타일 원본은 와 함께 사용할 수 있습니다. SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, HeatmapLayer 및 VectorTileLayer.

Extends

생성자

VectorTileSource(string, VectorTileSourceOptions)

메서드

getOptions()

VectorTileSource의 옵션을 가져옵니다.

getShape(string, Expression)

VectorTileSource에 있고 지정된 필터 식을 충족하는 모든 GeoJSON 기능을 반환합니다.

상속된 메서드

getId()

데이터 원본의 ID를 가져옵니다.

생성자 세부 정보

VectorTileSource(string, VectorTileSourceOptions)

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

매개 변수

id

string

메서드 세부 정보

getOptions()

VectorTileSource의 옵션을 가져옵니다.

function getOptions(): VectorTileSourceOptions

반환

getShape(string, Expression)

VectorTileSource에 있고 지정된 필터 식을 충족하는 모든 GeoJSON 기능을 반환합니다.

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

매개 변수

sourceLayer

string

원본이 VectorTileSource인 경우 필요합니다. 쿼리할 VectorTileSource 내의 계층을 지정합니다.

filter
Expression

쿼리를 제한하는 필터입니다.

반환

Array<Feature<Geometry, any>>

상속된 메서드 세부 정보

getId()

데이터 원본의 ID를 가져옵니다.

function getId(): string

반환

string

Source.getId에서 상속됨