VectorTileSource class

يصف مصدر الصور المصغرة الاتجاهية من الخريطة كيفية الوصول إلى طبقة الصور المصغرة الاتجاهية من الخريطة. يمكن استخدام مصادر تجانب المتجهات مع؛ SymbolLayer، LineLayer، PolygonLayer، BubbleLayer، HeatmapLayer و VectorTileLayer.

Extends

المنشئون

VectorTileSource(string, VectorTileSourceOptions)

الأساليب

getOptions()

الحصول على خيارات VectorTileSource.

getShape(string, Expression)

إرجاع كافة ميزات GeoJSON الموجودة في VectorTileSource والتي تفي بتعبير عامل التصفية المحدد.

الأساليب المتوارثة

getId()

الحصول على معرف مصدر البيانات

تفاصيل المنشئ

VectorTileSource(string, VectorTileSourceOptions)

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

المعلمات

id

string

تفاصيل الأسلوب

getOptions()

الحصول على خيارات VectorTileSource.

function getOptions(): VectorTileSourceOptions

المرتجعات

getShape(string, Expression)

إرجاع كافة ميزات GeoJSON الموجودة في VectorTileSource والتي تفي بتعبير عامل التصفية المحدد.

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

المعلمات

sourceLayer

string

مطلوب إذا كان المصدر هو VectorTileSource. يحدد الطبقة داخل VectorTileSource للاستعلام.

filter
Expression

عامل تصفية سيحد من الاستعلام.

المرتجعات

Array<Feature<Geometry, any>>

تفاصيل الأساليب المتوارثة

getId()

الحصول على معرف مصدر البيانات

function getId(): string

المرتجعات

string

موروث منSource.getId