VectorTileSource class
يصف مصدر الصور المصغرة الاتجاهية من الخريطة كيفية الوصول إلى طبقة الصور المصغرة الاتجاهية من الخريطة. يمكن استخدام مصادر تجانب المتجهات مع؛ SymbolLayer، LineLayer، PolygonLayer، BubbleLayer، HeatmapLayer و VectorTileLayer.
- Extends
المنشئون
Vector |
الأساليب
get |
الحصول على خيارات VectorTileSource. |
get |
إرجاع كافة ميزات GeoJSON الموجودة في VectorTileSource والتي تفي بتعبير عامل التصفية المحدد. |
الأساليب المتوارثة
get |
الحصول على معرف مصدر البيانات |
تفاصيل المنشئ
VectorTileSource(string, VectorTileSourceOptions)
new VectorTileSource(id?: string, options?: VectorTileSourceOptions)
المعلمات
- id
-
string
- options
- VectorTileSourceOptions
تفاصيل الأسلوب
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
عامل تصفية سيحد من الاستعلام.