@maplibre/maplibre-react-native 8.6.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +3 -0
- package/.eslintrc.js +158 -0
- package/.gitattributes +1 -0
- package/.nvmrc +1 -0
- package/.prettierrc.js +7 -0
- package/.sonarcloud.properties +15 -0
- package/CHANGELOG.md +367 -0
- package/CODE_OF_CONDUCT.md +2 -0
- package/CONTRIBUTING.md +34 -0
- package/LICENSE.md +9 -0
- package/README.md +224 -0
- package/RELEASE.md +30 -0
- package/android/build.gradle +34 -0
- package/android/install.md +16 -0
- package/android/rctmgl/.settings/org.eclipse.buildship.core.prefs +2 -0
- package/android/rctmgl/build.gradle +61 -0
- package/android/rctmgl/proguard-rules.pro +25 -0
- package/android/rctmgl/src/main/AndroidManifest.xml +4 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/RCTMGLPackage.java +99 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/AbstractEvent.java +35 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/AbstractEventEmitter.java +80 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/AbstractMapFeature.java +19 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/MarkerView.java +23 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/MarkerViewManager.java +67 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLCallout.java +15 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLCalloutManager.java +22 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerView.java +112 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerViewManager.java +45 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLPointAnnotation.java +360 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLPointAnnotationManager.java +88 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/CameraStop.java +249 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/CameraUpdateItem.java +125 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/CameraUpdateQueue.java +73 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/RCTMGLCamera.java +530 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/RCTMGLCameraManager.java +101 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/constants/CameraMode.java +22 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/images/RCTMGLImages.java +234 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/images/RCTMGLImagesManager.java +103 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/location/LocationComponentManager.java +149 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/location/RCTMGLNativeUserLocation.java +66 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/location/RCTMGLNativeUserLocationManager.java +35 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/LayerSourceInfo.java +59 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLAndroidTextureMapView.java +16 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLAndroidTextureMapViewManager.java +31 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.java +1527 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLMapViewManager.java +353 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/helpers/CameraChangeTracker.java +41 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyle.java +83 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyleFactory.java +2242 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyleFunctionParser.java +108 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyleValue.java +212 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTLayer.java +287 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLBackgroundLayer.java +27 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLBackgroundLayerManager.java +64 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLCircleLayer.java +55 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLCircleLayerManager.java +77 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillExtrusionLayer.java +55 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillExtrusionLayerManager.java +80 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillLayer.java +55 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillLayerManager.java +80 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLHeatmapLayer.java +55 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLHeatmapLayerManager.java +77 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLLineLayer.java +55 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLLineLayerManager.java +79 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLRasterLayer.java +27 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLRasterLayerManager.java +64 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLSymbolLayer.java +55 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLSymbolLayerManager.java +75 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/light/RCTMGLLight.java +65 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/light/RCTMGLLightManager.java +29 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLImageSource.java +81 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLImageSourceManager.java +72 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLRasterSource.java +45 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLRasterSourceManager.java +44 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLShapeSource.java +302 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLShapeSourceManager.java +227 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLTileSource.java +97 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLTileSourceManager.java +80 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLVectorSource.java +64 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLVectorSourceManager.java +84 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTSource.java +244 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/AbstractEvent.java +66 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/AndroidCallbackEvent.java +38 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/EventEmitter.java +45 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/FeatureClickEvent.java +79 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/IEvent.java +18 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/ImageMissingEvent.java +42 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/LocationEvent.java +100 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/MapChangeEvent.java +47 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/MapClickEvent.java +51 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/MapUserTrackingModeEvent.java +36 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/OfflineEvent.java +29 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/PointAnnotationClickEvent.java +46 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/PointAnnotationDragEvent.java +51 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/constants/EventKeys.java +39 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/constants/EventTypes.java +51 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/http/CustomHeadersInterceptor.java +38 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/location/LocationManager.java +168 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/location/UserLocation.java +63 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/location/UserLocationVerticalAlignment.java +11 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/location/UserTrackingMode.java +63 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/location/UserTrackingState.java +19 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLLocationModule.java +158 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLLogging.java +140 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLModule.java +348 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLOfflineModule.java +597 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLSnapshotModule.java +139 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/BitmapUtils.java +129 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/ConvertUtils.java +257 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/DownloadMapImageTask.java +159 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/ExpressionParser.java +74 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/GeoJSONUtils.java +209 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/GeoViewport.java +38 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/ImageEntry.java +25 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/ResourceUtils.java +30 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/SimpleEventCallback.java +30 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/SphericalMercator.java +69 -0
- package/android/rctmgl/src/main/res/drawable/empty.xml +5 -0
- package/android/rctmgl/src/main/res/drawable/empty_drawable.png +0 -0
- package/android/rctmgl/src/main/res/drawable-xxhdpi/red_marker.png +0 -0
- package/android/rctmgl/src/main/res/layout/annotation.xml +17 -0
- package/android/rctmgl/src/main/res/values/strings.xml +3 -0
- package/android/settings.gradle +1 -0
- package/app.plugin.js +1 -0
- package/assets/heading.png +0 -0
- package/assets/heading@2x.png +0 -0
- package/assets/heading@3x.png +0 -0
- package/assets/indoor_building_map_android.png +0 -0
- package/assets/indoor_building_map_ios.png +0 -0
- package/assets/mapbox_logo.png +0 -0
- package/babel.config.js +9 -0
- package/docs/Annotation.md +39 -0
- package/docs/Annotations.md +17 -0
- package/docs/BackgroundLayer.md +166 -0
- package/docs/Callout.md +15 -0
- package/docs/Camera.md +162 -0
- package/docs/CircleLayer.md +453 -0
- package/docs/CustomHttpHeaders.md +87 -0
- package/docs/FillExtrusionLayer.md +327 -0
- package/docs/FillLayer.md +293 -0
- package/docs/GettingStarted.md +72 -0
- package/docs/HeadingIndicator.md +10 -0
- package/docs/HeatmapLayer.md +215 -0
- package/docs/ImageSource.md +12 -0
- package/docs/Images.md +12 -0
- package/docs/Light.md +159 -0
- package/docs/LineLayer.md +567 -0
- package/docs/Logger.md +23 -0
- package/docs/MapView.md +211 -0
- package/docs/MapboxGL.md +65 -0
- package/docs/MarkerView.md +14 -0
- package/docs/NativeUserLocation.md +11 -0
- package/docs/OfflineManager.md +246 -0
- package/docs/PointAnnotation.md +34 -0
- package/docs/RasterLayer.md +357 -0
- package/docs/RasterSource.md +17 -0
- package/docs/ShapeSource.md +100 -0
- package/docs/Style.md +10 -0
- package/docs/StyleSheet.md +430 -0
- package/docs/SymbolLayer.md +1658 -0
- package/docs/UserLocation.md +39 -0
- package/docs/VectorSource.md +48 -0
- package/docs/docs.json +6093 -0
- package/docs/snapshotManager.md +53 -0
- package/index.d.ts +953 -0
- package/ios/RCTMGL/CameraMode.h +18 -0
- package/ios/RCTMGL/CameraMode.m +18 -0
- package/ios/RCTMGL/CameraStop.h +26 -0
- package/ios/RCTMGL/CameraStop.m +83 -0
- package/ios/RCTMGL/CameraUpdateItem.h +18 -0
- package/ios/RCTMGL/CameraUpdateItem.m +178 -0
- package/ios/RCTMGL/CameraUpdateQueue.h +21 -0
- package/ios/RCTMGL/CameraUpdateQueue.m +74 -0
- package/ios/RCTMGL/FilterParser.h +14 -0
- package/ios/RCTMGL/FilterParser.m +22 -0
- package/ios/RCTMGL/MGLCustomHeaders.h +20 -0
- package/ios/RCTMGL/MGLCustomHeaders.m +98 -0
- package/ios/RCTMGL/MGLFaux3DUserLocationAnnotationView.h +23 -0
- package/ios/RCTMGL/MGLFaux3DUserLocationAnnotationView.m +474 -0
- package/ios/RCTMGL/MGLModule.h +13 -0
- package/ios/RCTMGL/MGLModule.m +269 -0
- package/ios/RCTMGL/MGLOfflineModule.h +19 -0
- package/ios/RCTMGL/MGLOfflineModule.m +516 -0
- package/ios/RCTMGL/MGLSnapshotModule.h +13 -0
- package/ios/RCTMGL/MGLSnapshotModule.m +80 -0
- package/ios/RCTMGL/MGLUserLocationHeadingArrowLayer.h +11 -0
- package/ios/RCTMGL/MGLUserLocationHeadingArrowLayer.m +57 -0
- package/ios/RCTMGL/MGLUserLocationHeadingBeamLayer.h +11 -0
- package/ios/RCTMGL/MGLUserLocationHeadingBeamLayer.m +102 -0
- package/ios/RCTMGL/MGLUserLocationHeadingIndicator.h +10 -0
- package/ios/RCTMGL/RCTConvert+Mapbox.h +16 -0
- package/ios/RCTMGL/RCTConvert+Mapbox.m +32 -0
- package/ios/RCTMGL/RCTMGL.h +13 -0
- package/ios/RCTMGL/RCTMGL.m +13 -0
- package/ios/RCTMGL/RCTMGLBackgroundLayer.h +14 -0
- package/ios/RCTMGL/RCTMGLBackgroundLayer.m +27 -0
- package/ios/RCTMGL/RCTMGLBackgroundLayerManager.h +13 -0
- package/ios/RCTMGL/RCTMGLBackgroundLayerManager.m +35 -0
- package/ios/RCTMGL/RCTMGLCallout.h +15 -0
- package/ios/RCTMGL/RCTMGLCallout.m +74 -0
- package/ios/RCTMGL/RCTMGLCalloutManager.h +13 -0
- package/ios/RCTMGL/RCTMGLCalloutManager.m +21 -0
- package/ios/RCTMGL/RCTMGLCamera.h +39 -0
- package/ios/RCTMGL/RCTMGLCamera.m +258 -0
- package/ios/RCTMGL/RCTMGLCameraManager.h +13 -0
- package/ios/RCTMGL/RCTMGLCameraManager.m +52 -0
- package/ios/RCTMGL/RCTMGLCircleLayer.h +13 -0
- package/ios/RCTMGL/RCTMGLCircleLayer.m +34 -0
- package/ios/RCTMGL/RCTMGLCircleLayerManager.h +13 -0
- package/ios/RCTMGL/RCTMGLCircleLayerManager.m +39 -0
- package/ios/RCTMGL/RCTMGLEvent.h +21 -0
- package/ios/RCTMGL/RCTMGLEvent.m +47 -0
- package/ios/RCTMGL/RCTMGLEventProtocol.h +16 -0
- package/ios/RCTMGL/RCTMGLEventTypes.h +50 -0
- package/ios/RCTMGL/RCTMGLEventTypes.m +49 -0
- package/ios/RCTMGL/RCTMGLFillExtrusionLayer.h +14 -0
- package/ios/RCTMGL/RCTMGLFillExtrusionLayer.m +32 -0
- package/ios/RCTMGL/RCTMGLFillExtrusionLayerManager.h +13 -0
- package/ios/RCTMGL/RCTMGLFillExtrusionLayerManager.m +39 -0
- package/ios/RCTMGL/RCTMGLFillLayer.h +14 -0
- package/ios/RCTMGL/RCTMGLFillLayer.m +33 -0
- package/ios/RCTMGL/RCTMGLFillLayerManager.h +13 -0
- package/ios/RCTMGL/RCTMGLFillLayerManager.m +37 -0
- package/ios/RCTMGL/RCTMGLHeatmapLayer.h +12 -0
- package/ios/RCTMGL/RCTMGLHeatmapLayer.m +30 -0
- package/ios/RCTMGL/RCTMGLHeatmapLayerManager.h +12 -0
- package/ios/RCTMGL/RCTMGLHeatmapLayerManager.m +38 -0
- package/ios/RCTMGL/RCTMGLImageQueue.h +19 -0
- package/ios/RCTMGL/RCTMGLImageQueue.m +57 -0
- package/ios/RCTMGL/RCTMGLImageQueueOperation.h +17 -0
- package/ios/RCTMGL/RCTMGLImageQueueOperation.m +138 -0
- package/ios/RCTMGL/RCTMGLImageSource.h +16 -0
- package/ios/RCTMGL/RCTMGLImageSource.m +60 -0
- package/ios/RCTMGL/RCTMGLImageSourceManager.h +13 -0
- package/ios/RCTMGL/RCTMGLImageSourceManager.m +25 -0
- package/ios/RCTMGL/RCTMGLImages.h +25 -0
- package/ios/RCTMGL/RCTMGLImages.m +126 -0
- package/ios/RCTMGL/RCTMGLImagesManager.h +5 -0
- package/ios/RCTMGL/RCTMGLImagesManager.m +21 -0
- package/ios/RCTMGL/RCTMGLLayer.h +52 -0
- package/ios/RCTMGL/RCTMGLLayer.m +236 -0
- package/ios/RCTMGL/RCTMGLLight.h +17 -0
- package/ios/RCTMGL/RCTMGLLight.m +46 -0
- package/ios/RCTMGL/RCTMGLLightManager.h +13 -0
- package/ios/RCTMGL/RCTMGLLightManager.m +23 -0
- package/ios/RCTMGL/RCTMGLLineLayer.h +14 -0
- package/ios/RCTMGL/RCTMGLLineLayer.m +33 -0
- package/ios/RCTMGL/RCTMGLLineLayerManager.h +13 -0
- package/ios/RCTMGL/RCTMGLLineLayerManager.m +40 -0
- package/ios/RCTMGL/RCTMGLLocation.h +19 -0
- package/ios/RCTMGL/RCTMGLLocation.m +32 -0
- package/ios/RCTMGL/RCTMGLLocationManager.h +30 -0
- package/ios/RCTMGL/RCTMGLLocationManager.m +180 -0
- package/ios/RCTMGL/RCTMGLLocationManagerDelegate.h +20 -0
- package/ios/RCTMGL/RCTMGLLocationModule.h +15 -0
- package/ios/RCTMGL/RCTMGLLocationModule.m +99 -0
- package/ios/RCTMGL/RCTMGLLogging.h +18 -0
- package/ios/RCTMGL/RCTMGLLogging.m +132 -0
- package/ios/RCTMGL/RCTMGLMapTouchEvent.h +25 -0
- package/ios/RCTMGL/RCTMGLMapTouchEvent.m +77 -0
- package/ios/RCTMGL/RCTMGLMapView.h +91 -0
- package/ios/RCTMGL/RCTMGLMapView.m +536 -0
- package/ios/RCTMGL/RCTMGLMapViewManager.h +17 -0
- package/ios/RCTMGL/RCTMGLMapViewManager.m +625 -0
- package/ios/RCTMGL/RCTMGLNativeUserLocation.h +18 -0
- package/ios/RCTMGL/RCTMGLNativeUserLocation.m +49 -0
- package/ios/RCTMGL/RCTMGLNativeUserLocationManager.h +5 -0
- package/ios/RCTMGL/RCTMGLNativeUserLocationManager.m +25 -0
- package/ios/RCTMGL/RCTMGLPointAnnotation.h +41 -0
- package/ios/RCTMGL/RCTMGLPointAnnotation.m +251 -0
- package/ios/RCTMGL/RCTMGLPointAnnotationManager.h +13 -0
- package/ios/RCTMGL/RCTMGLPointAnnotationManager.m +36 -0
- package/ios/RCTMGL/RCTMGLRasterLayer.h +14 -0
- package/ios/RCTMGL/RCTMGLRasterLayer.m +30 -0
- package/ios/RCTMGL/RCTMGLRasterLayerManager.h +13 -0
- package/ios/RCTMGL/RCTMGLRasterLayerManager.m +35 -0
- package/ios/RCTMGL/RCTMGLRasterSource.h +16 -0
- package/ios/RCTMGL/RCTMGLRasterSource.m +35 -0
- package/ios/RCTMGL/RCTMGLRasterSourceManager.h +13 -0
- package/ios/RCTMGL/RCTMGLRasterSourceManager.m +32 -0
- package/ios/RCTMGL/RCTMGLShapeSource.h +52 -0
- package/ios/RCTMGL/RCTMGLShapeSource.m +180 -0
- package/ios/RCTMGL/RCTMGLShapeSourceManager.h +14 -0
- package/ios/RCTMGL/RCTMGLShapeSourceManager.m +205 -0
- package/ios/RCTMGL/RCTMGLSource.h +35 -0
- package/ios/RCTMGL/RCTMGLSource.m +143 -0
- package/ios/RCTMGL/RCTMGLStyle.h +219 -0
- package/ios/RCTMGL/RCTMGLStyle.m +1654 -0
- package/ios/RCTMGL/RCTMGLStyleValue.h +27 -0
- package/ios/RCTMGL/RCTMGLStyleValue.m +167 -0
- package/ios/RCTMGL/RCTMGLSymbolLayer.h +19 -0
- package/ios/RCTMGL/RCTMGLSymbolLayer.m +121 -0
- package/ios/RCTMGL/RCTMGLSymbolLayerManager.h +13 -0
- package/ios/RCTMGL/RCTMGLSymbolLayerManager.m +40 -0
- package/ios/RCTMGL/RCTMGLTileSource.h +22 -0
- package/ios/RCTMGL/RCTMGLTileSource.m +31 -0
- package/ios/RCTMGL/RCTMGLUserLocation.h +15 -0
- package/ios/RCTMGL/RCTMGLUserLocation.m +38 -0
- package/ios/RCTMGL/RCTMGLUtils.h +31 -0
- package/ios/RCTMGL/RCTMGLUtils.m +218 -0
- package/ios/RCTMGL/RCTMGLVectorLayer.h +15 -0
- package/ios/RCTMGL/RCTMGLVectorLayer.m +59 -0
- package/ios/RCTMGL/RCTMGLVectorSource.h +16 -0
- package/ios/RCTMGL/RCTMGLVectorSource.m +28 -0
- package/ios/RCTMGL/RCTMGLVectorSourceManager.h +14 -0
- package/ios/RCTMGL/RCTMGLVectorSourceManager.m +79 -0
- package/ios/RCTMGL/RNMBImageUtils.h +17 -0
- package/ios/RCTMGL/RNMBImageUtils.m +31 -0
- package/ios/RCTMGL/ViewManager.h +16 -0
- package/ios/RCTMGL/ViewManager.m +63 -0
- package/ios/RCTMGL/index.d.ts +1164 -0
- package/ios/RCTMGL.xcodeproj/project.pbxproj +774 -0
- package/ios/install.md +44 -0
- package/javascript/components/AbstractLayer.js +75 -0
- package/javascript/components/AbstractSource.js +15 -0
- package/javascript/components/BackgroundLayer.js +97 -0
- package/javascript/components/Callout.js +139 -0
- package/javascript/components/Camera.js +665 -0
- package/javascript/components/CircleLayer.js +101 -0
- package/javascript/components/FillExtrusionLayer.js +98 -0
- package/javascript/components/FillLayer.js +94 -0
- package/javascript/components/HeadingIndicator.js +31 -0
- package/javascript/components/HeatmapLayer.js +99 -0
- package/javascript/components/ImageSource.js +82 -0
- package/javascript/components/Images.js +119 -0
- package/javascript/components/Light.js +47 -0
- package/javascript/components/LineLayer.js +94 -0
- package/javascript/components/MapView.js +817 -0
- package/javascript/components/MarkerView.js +87 -0
- package/javascript/components/NativeBridgeComponent.js +86 -0
- package/javascript/components/NativeUserLocation.js +41 -0
- package/javascript/components/PointAnnotation.js +216 -0
- package/javascript/components/RasterLayer.js +95 -0
- package/javascript/components/RasterSource.js +124 -0
- package/javascript/components/ShapeSource.js +357 -0
- package/javascript/components/Style.js +264 -0
- package/javascript/components/SymbolLayer.js +120 -0
- package/javascript/components/UserLocation.js +273 -0
- package/javascript/components/VectorSource.js +200 -0
- package/javascript/components/annotations/Annotation.js +122 -0
- package/javascript/index.js +153 -0
- package/javascript/modules/location/locationManager.js +101 -0
- package/javascript/modules/offline/OfflineCreatePackOptions.js +46 -0
- package/javascript/modules/offline/OfflinePack.js +40 -0
- package/javascript/modules/offline/offlineManager.js +378 -0
- package/javascript/modules/snapshot/SnapshotOptions.js +67 -0
- package/javascript/modules/snapshot/snapshotManager.js +62 -0
- package/javascript/utils/BridgeValue.js +81 -0
- package/javascript/utils/Logger.js +114 -0
- package/javascript/utils/animated/Animated.js +39 -0
- package/javascript/utils/animated/AnimatedCoordinatesArray.js +191 -0
- package/javascript/utils/animated/AnimatedExtractCoordinateFromArray.js +43 -0
- package/javascript/utils/animated/AnimatedPoint.js +126 -0
- package/javascript/utils/animated/AnimatedRouteCoordinatesArray.js +124 -0
- package/javascript/utils/animated/AnimatedShape.js +72 -0
- package/javascript/utils/deprecation.js +25 -0
- package/javascript/utils/filterUtils.js +7 -0
- package/javascript/utils/geoUtils.js +73 -0
- package/javascript/utils/index.js +113 -0
- package/javascript/utils/styleMap.js +1901 -0
- package/maplibre-react-native.podspec +79 -0
- package/package.json +120 -0
- package/plugin/build/withMapbox.d.ts +12 -0
- package/plugin/build/withMapbox.js +119 -0
- package/plugin/install.md +32 -0
- package/react-native.config.js +10 -0
- package/scripts/autogenHelpers/DocJSONBuilder.js +458 -0
- package/scripts/autogenHelpers/JSDocNodeTree.js +131 -0
- package/scripts/autogenHelpers/MarkdownBuilder.js +29 -0
- package/scripts/autogenHelpers/globals.js +507 -0
- package/scripts/autogenerate.js +374 -0
- package/scripts/download-style-spec.sh +15 -0
- package/scripts/templates/RCTMGLStyle.h.ejs +33 -0
- package/scripts/templates/RCTMGLStyle.m.ejs +97 -0
- package/scripts/templates/RCTMGLStyleFactory.java.ejs +107 -0
- package/scripts/templates/component.md.ejs +122 -0
- package/scripts/templates/index.d.ts.ejs +56 -0
- package/scripts/templates/styleMap.js.ejs +115 -0
- package/setup-jest.js +121 -0
- package/style-spec/v8.json +5798 -0
- package/tsconfig.json +65 -0
|
@@ -0,0 +1,1658 @@
|
|
|
1
|
+
<!-- This file was autogenerated from SymbolLayer.js do not modify -->
|
|
2
|
+
## <MapboxGL.SymbolLayer />
|
|
3
|
+
### SymbolLayer is a style layer that renders icon and text labels at points or along lines on the map.
|
|
4
|
+
|
|
5
|
+
### props
|
|
6
|
+
| Prop | Type | Default | Required | Description |
|
|
7
|
+
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
|
+
| id | `string` | `none` | `true` | A string that uniquely identifies the source in the style to which it is added. |
|
|
9
|
+
| sourceID | `string` | `MapboxGL.StyleSource.DefaultSourceID` | `false` | The source from which to obtain the data to style.<br/>If the source has not yet been added to the current style, the behavior is undefined.<br/>Inferred from parent source only if the layer is a direct child to it. |
|
|
10
|
+
| sourceLayerID | `string` | `none` | `false` | Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style. |
|
|
11
|
+
| aboveLayerID | `string` | `none` | `false` | Inserts a layer above aboveLayerID. |
|
|
12
|
+
| belowLayerID | `string` | `none` | `false` | Inserts a layer below belowLayerID |
|
|
13
|
+
| layerIndex | `number` | `none` | `false` | Inserts a layer at a specified index |
|
|
14
|
+
| filter | `array` | `none` | `false` | Filter only the features in the source layer that satisfy a condition that you define |
|
|
15
|
+
| minZoomLevel | `number` | `none` | `false` | The minimum zoom level at which the layer gets parsed and appears. |
|
|
16
|
+
| maxZoomLevel | `number` | `none` | `false` | The maximum zoom level at which the layer gets parsed and appears. |
|
|
17
|
+
| style | `union` | `none` | `false` | Customizable style attributes |
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### styles
|
|
21
|
+
|
|
22
|
+
* <a href="#name">symbolPlacement</a><br/>
|
|
23
|
+
* <a href="#name-1">symbolSpacing</a><br/>
|
|
24
|
+
* <a href="#name-2">symbolAvoidEdges</a><br/>
|
|
25
|
+
* <a href="#name-3">symbolSortKey</a><br/>
|
|
26
|
+
* <a href="#name-4">symbolZOrder</a><br/>
|
|
27
|
+
* <a href="#name-5">iconAllowOverlap</a><br/>
|
|
28
|
+
* <a href="#name-6">iconIgnorePlacement</a><br/>
|
|
29
|
+
* <a href="#name-7">iconOptional</a><br/>
|
|
30
|
+
* <a href="#name-8">iconRotationAlignment</a><br/>
|
|
31
|
+
* <a href="#name-9">iconSize</a><br/>
|
|
32
|
+
* <a href="#name-10">iconTextFit</a><br/>
|
|
33
|
+
* <a href="#name-11">iconTextFitPadding</a><br/>
|
|
34
|
+
* <a href="#name-12">iconImage</a><br/>
|
|
35
|
+
* <a href="#name-13">iconRotate</a><br/>
|
|
36
|
+
* <a href="#name-14">iconPadding</a><br/>
|
|
37
|
+
* <a href="#name-15">iconKeepUpright</a><br/>
|
|
38
|
+
* <a href="#name-16">iconOffset</a><br/>
|
|
39
|
+
* <a href="#name-17">iconAnchor</a><br/>
|
|
40
|
+
* <a href="#name-18">iconPitchAlignment</a><br/>
|
|
41
|
+
* <a href="#name-19">textPitchAlignment</a><br/>
|
|
42
|
+
* <a href="#name-20">textRotationAlignment</a><br/>
|
|
43
|
+
* <a href="#name-21">textField</a><br/>
|
|
44
|
+
* <a href="#name-22">textFont</a><br/>
|
|
45
|
+
* <a href="#name-23">textSize</a><br/>
|
|
46
|
+
* <a href="#name-24">textMaxWidth</a><br/>
|
|
47
|
+
* <a href="#name-25">textLineHeight</a><br/>
|
|
48
|
+
* <a href="#name-26">textLetterSpacing</a><br/>
|
|
49
|
+
* <a href="#name-27">textJustify</a><br/>
|
|
50
|
+
* <a href="#name-28">textRadialOffset</a><br/>
|
|
51
|
+
* <a href="#name-29">textVariableAnchor</a><br/>
|
|
52
|
+
* <a href="#name-30">textAnchor</a><br/>
|
|
53
|
+
* <a href="#name-31">textMaxAngle</a><br/>
|
|
54
|
+
* <a href="#name-32">textWritingMode</a><br/>
|
|
55
|
+
* <a href="#name-33">textRotate</a><br/>
|
|
56
|
+
* <a href="#name-34">textPadding</a><br/>
|
|
57
|
+
* <a href="#name-35">textKeepUpright</a><br/>
|
|
58
|
+
* <a href="#name-36">textTransform</a><br/>
|
|
59
|
+
* <a href="#name-37">textOffset</a><br/>
|
|
60
|
+
* <a href="#name-38">textAllowOverlap</a><br/>
|
|
61
|
+
* <a href="#name-39">textIgnorePlacement</a><br/>
|
|
62
|
+
* <a href="#name-40">textOptional</a><br/>
|
|
63
|
+
* <a href="#name-41">visibility</a><br/>
|
|
64
|
+
* <a href="#name-42">iconOpacity</a><br/>
|
|
65
|
+
* <a href="#name-43">iconColor</a><br/>
|
|
66
|
+
* <a href="#name-44">iconHaloColor</a><br/>
|
|
67
|
+
* <a href="#name-45">iconHaloWidth</a><br/>
|
|
68
|
+
* <a href="#name-46">iconHaloBlur</a><br/>
|
|
69
|
+
* <a href="#name-47">iconTranslate</a><br/>
|
|
70
|
+
* <a href="#name-48">iconTranslateAnchor</a><br/>
|
|
71
|
+
* <a href="#name-49">textOpacity</a><br/>
|
|
72
|
+
* <a href="#name-50">textColor</a><br/>
|
|
73
|
+
* <a href="#name-51">textHaloColor</a><br/>
|
|
74
|
+
* <a href="#name-52">textHaloWidth</a><br/>
|
|
75
|
+
* <a href="#name-53">textHaloBlur</a><br/>
|
|
76
|
+
* <a href="#name-54">textTranslate</a><br/>
|
|
77
|
+
* <a href="#name-55">textTranslateAnchor</a><br/>
|
|
78
|
+
|
|
79
|
+
___
|
|
80
|
+
|
|
81
|
+
#### Name
|
|
82
|
+
`symbolPlacement`
|
|
83
|
+
|
|
84
|
+
#### Description
|
|
85
|
+
Label placement relative to its geometry.
|
|
86
|
+
|
|
87
|
+
#### Type
|
|
88
|
+
`enum`
|
|
89
|
+
#### Default Value
|
|
90
|
+
`point`
|
|
91
|
+
|
|
92
|
+
#### Supported Values
|
|
93
|
+
**point** - The label is placed at the point where the geometry is located.<br />
|
|
94
|
+
**line** - The label is placed along the line of the geometry. Can only be used on `LineString` and `Polygon` geometries.<br />
|
|
95
|
+
**line-center** - The label is placed at the center of the line of the geometry. Can only be used on `LineString` and `Polygon` geometries. Note that a single feature in a vector tile may contain multiple line geometries.<br />
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
#### Expression
|
|
99
|
+
|
|
100
|
+
Parameters: `zoom`
|
|
101
|
+
|
|
102
|
+
___
|
|
103
|
+
|
|
104
|
+
#### Name
|
|
105
|
+
`symbolSpacing`
|
|
106
|
+
|
|
107
|
+
#### Description
|
|
108
|
+
Distance between two symbol anchors.
|
|
109
|
+
|
|
110
|
+
#### Type
|
|
111
|
+
`number`
|
|
112
|
+
#### Default Value
|
|
113
|
+
`250`
|
|
114
|
+
|
|
115
|
+
#### Units
|
|
116
|
+
`pixels`
|
|
117
|
+
|
|
118
|
+
#### Minimum
|
|
119
|
+
`1`
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
#### Expression
|
|
123
|
+
|
|
124
|
+
Parameters: `zoom`
|
|
125
|
+
|
|
126
|
+
___
|
|
127
|
+
|
|
128
|
+
#### Name
|
|
129
|
+
`symbolAvoidEdges`
|
|
130
|
+
|
|
131
|
+
#### Description
|
|
132
|
+
If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer. When using a client that supports global collision detection, like Mapbox GL JS version 0.42.0 or greater, enabling this property is not needed to prevent clipped labels at tile boundaries.
|
|
133
|
+
|
|
134
|
+
#### Type
|
|
135
|
+
`boolean`
|
|
136
|
+
#### Default Value
|
|
137
|
+
`false`
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
#### Expression
|
|
141
|
+
|
|
142
|
+
Parameters: `zoom`
|
|
143
|
+
|
|
144
|
+
___
|
|
145
|
+
|
|
146
|
+
#### Name
|
|
147
|
+
`symbolSortKey`
|
|
148
|
+
|
|
149
|
+
#### Description
|
|
150
|
+
Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key when they overlap. Features with a lower sort key will have priority over other features when doing placement.
|
|
151
|
+
|
|
152
|
+
#### Type
|
|
153
|
+
`number`
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
#### Expression
|
|
157
|
+
|
|
158
|
+
Parameters: `zoom, feature`
|
|
159
|
+
|
|
160
|
+
___
|
|
161
|
+
|
|
162
|
+
#### Name
|
|
163
|
+
`symbolZOrder`
|
|
164
|
+
|
|
165
|
+
#### Description
|
|
166
|
+
Controls the order in which overlapping symbols in the same layer are rendered
|
|
167
|
+
|
|
168
|
+
#### Type
|
|
169
|
+
`enum`
|
|
170
|
+
#### Default Value
|
|
171
|
+
`auto`
|
|
172
|
+
|
|
173
|
+
#### Supported Values
|
|
174
|
+
**auto** - If `symbol-sort-key` is set, sort based on that. Otherwise sort symbols by their y-position relative to the viewport.<br />
|
|
175
|
+
**viewport-y** - Symbols will be sorted by their y-position relative to the viewport.<br />
|
|
176
|
+
**source** - Symbols will be rendered in the same order as the source data with no sorting applied.<br />
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
#### Expression
|
|
180
|
+
|
|
181
|
+
Parameters: `zoom`
|
|
182
|
+
|
|
183
|
+
___
|
|
184
|
+
|
|
185
|
+
#### Name
|
|
186
|
+
`iconAllowOverlap`
|
|
187
|
+
|
|
188
|
+
#### Description
|
|
189
|
+
If true, the icon will be visible even if it collides with other previously drawn symbols.
|
|
190
|
+
|
|
191
|
+
#### Type
|
|
192
|
+
`boolean`
|
|
193
|
+
#### Default Value
|
|
194
|
+
`false`
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
#### Requires
|
|
198
|
+
`iconImage`
|
|
199
|
+
|
|
200
|
+
#### Expression
|
|
201
|
+
|
|
202
|
+
Parameters: `zoom`
|
|
203
|
+
|
|
204
|
+
___
|
|
205
|
+
|
|
206
|
+
#### Name
|
|
207
|
+
`iconIgnorePlacement`
|
|
208
|
+
|
|
209
|
+
#### Description
|
|
210
|
+
If true, other symbols can be visible even if they collide with the icon.
|
|
211
|
+
|
|
212
|
+
#### Type
|
|
213
|
+
`boolean`
|
|
214
|
+
#### Default Value
|
|
215
|
+
`false`
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
#### Requires
|
|
219
|
+
`iconImage`
|
|
220
|
+
|
|
221
|
+
#### Expression
|
|
222
|
+
|
|
223
|
+
Parameters: `zoom`
|
|
224
|
+
|
|
225
|
+
___
|
|
226
|
+
|
|
227
|
+
#### Name
|
|
228
|
+
`iconOptional`
|
|
229
|
+
|
|
230
|
+
#### Description
|
|
231
|
+
If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.
|
|
232
|
+
|
|
233
|
+
#### Type
|
|
234
|
+
`boolean`
|
|
235
|
+
#### Default Value
|
|
236
|
+
`false`
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
#### Requires
|
|
240
|
+
`iconImage, textField`
|
|
241
|
+
|
|
242
|
+
#### Expression
|
|
243
|
+
|
|
244
|
+
Parameters: `zoom`
|
|
245
|
+
|
|
246
|
+
___
|
|
247
|
+
|
|
248
|
+
#### Name
|
|
249
|
+
`iconRotationAlignment`
|
|
250
|
+
|
|
251
|
+
#### Description
|
|
252
|
+
In combination with `symbolPlacement`, determines the rotation behavior of icons.
|
|
253
|
+
|
|
254
|
+
#### Type
|
|
255
|
+
`enum`
|
|
256
|
+
#### Default Value
|
|
257
|
+
`auto`
|
|
258
|
+
|
|
259
|
+
#### Supported Values
|
|
260
|
+
**map** - When `symbol-placement` is set to `point`, aligns icons east-west. When `symbol-placement` is set to `line` or `line-center`, aligns icon x-axes with the line.<br />
|
|
261
|
+
**viewport** - Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`.<br />
|
|
262
|
+
**auto** - When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`.<br />
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
#### Requires
|
|
266
|
+
`iconImage`
|
|
267
|
+
|
|
268
|
+
#### Expression
|
|
269
|
+
|
|
270
|
+
Parameters: `zoom`
|
|
271
|
+
|
|
272
|
+
___
|
|
273
|
+
|
|
274
|
+
#### Name
|
|
275
|
+
`iconSize`
|
|
276
|
+
|
|
277
|
+
#### Description
|
|
278
|
+
Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by `iconSize`. 1 is the original size; 3 triples the size of the image.
|
|
279
|
+
|
|
280
|
+
#### Type
|
|
281
|
+
`number`
|
|
282
|
+
#### Default Value
|
|
283
|
+
`1`
|
|
284
|
+
|
|
285
|
+
#### Units
|
|
286
|
+
`factor of the original icon size`
|
|
287
|
+
|
|
288
|
+
#### Minimum
|
|
289
|
+
`0`
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
#### Requires
|
|
293
|
+
`iconImage`
|
|
294
|
+
|
|
295
|
+
#### Expression
|
|
296
|
+
|
|
297
|
+
Parameters: `zoom, feature`
|
|
298
|
+
|
|
299
|
+
___
|
|
300
|
+
|
|
301
|
+
#### Name
|
|
302
|
+
`iconTextFit`
|
|
303
|
+
|
|
304
|
+
#### Description
|
|
305
|
+
Scales the icon to fit around the associated text.
|
|
306
|
+
|
|
307
|
+
#### Type
|
|
308
|
+
`enum`
|
|
309
|
+
#### Default Value
|
|
310
|
+
`none`
|
|
311
|
+
|
|
312
|
+
#### Supported Values
|
|
313
|
+
**none** - The icon is displayed at its intrinsic aspect ratio.<br />
|
|
314
|
+
**width** - The icon is scaled in the x-dimension to fit the width of the text.<br />
|
|
315
|
+
**height** - The icon is scaled in the y-dimension to fit the height of the text.<br />
|
|
316
|
+
**both** - The icon is scaled in both x- and y-dimensions.<br />
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
#### Requires
|
|
320
|
+
`iconImage, textField`
|
|
321
|
+
|
|
322
|
+
#### Expression
|
|
323
|
+
|
|
324
|
+
Parameters: `zoom`
|
|
325
|
+
|
|
326
|
+
___
|
|
327
|
+
|
|
328
|
+
#### Name
|
|
329
|
+
`iconTextFitPadding`
|
|
330
|
+
|
|
331
|
+
#### Description
|
|
332
|
+
Size of the additional area added to dimensions determined by `iconTextFit`, in clockwise order: top, right, bottom, left.
|
|
333
|
+
|
|
334
|
+
#### Type
|
|
335
|
+
`array<number>`
|
|
336
|
+
#### Default Value
|
|
337
|
+
`[0,0,0,0]`
|
|
338
|
+
|
|
339
|
+
#### Units
|
|
340
|
+
`pixels`
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
#### Requires
|
|
344
|
+
`iconImage, textField`
|
|
345
|
+
|
|
346
|
+
#### Expression
|
|
347
|
+
|
|
348
|
+
Parameters: `zoom`
|
|
349
|
+
|
|
350
|
+
___
|
|
351
|
+
|
|
352
|
+
#### Name
|
|
353
|
+
`iconImage`
|
|
354
|
+
|
|
355
|
+
#### Description
|
|
356
|
+
Name of image in sprite to use for drawing an image background.
|
|
357
|
+
|
|
358
|
+
#### Type
|
|
359
|
+
`resolvedImage`
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
#### Expression
|
|
363
|
+
|
|
364
|
+
Parameters: `zoom, feature`
|
|
365
|
+
|
|
366
|
+
___
|
|
367
|
+
|
|
368
|
+
#### Name
|
|
369
|
+
`iconRotate`
|
|
370
|
+
|
|
371
|
+
#### Description
|
|
372
|
+
Rotates the icon clockwise.
|
|
373
|
+
|
|
374
|
+
#### Type
|
|
375
|
+
`number`
|
|
376
|
+
#### Default Value
|
|
377
|
+
`0`
|
|
378
|
+
|
|
379
|
+
#### Units
|
|
380
|
+
`degrees`
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
#### Requires
|
|
384
|
+
`iconImage`
|
|
385
|
+
|
|
386
|
+
#### Expression
|
|
387
|
+
|
|
388
|
+
Parameters: `zoom, feature`
|
|
389
|
+
|
|
390
|
+
___
|
|
391
|
+
|
|
392
|
+
#### Name
|
|
393
|
+
`iconPadding`
|
|
394
|
+
|
|
395
|
+
#### Description
|
|
396
|
+
Size of the additional area around the icon bounding box used for detecting symbol collisions.
|
|
397
|
+
|
|
398
|
+
#### Type
|
|
399
|
+
`number`
|
|
400
|
+
#### Default Value
|
|
401
|
+
`2`
|
|
402
|
+
|
|
403
|
+
#### Units
|
|
404
|
+
`pixels`
|
|
405
|
+
|
|
406
|
+
#### Minimum
|
|
407
|
+
`0`
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
#### Requires
|
|
411
|
+
`iconImage`
|
|
412
|
+
|
|
413
|
+
#### Expression
|
|
414
|
+
|
|
415
|
+
Parameters: `zoom`
|
|
416
|
+
|
|
417
|
+
___
|
|
418
|
+
|
|
419
|
+
#### Name
|
|
420
|
+
`iconKeepUpright`
|
|
421
|
+
|
|
422
|
+
#### Description
|
|
423
|
+
If true, the icon may be flipped to prevent it from being rendered upsideDown.
|
|
424
|
+
|
|
425
|
+
#### Type
|
|
426
|
+
`boolean`
|
|
427
|
+
#### Default Value
|
|
428
|
+
`false`
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
#### Requires
|
|
432
|
+
`iconImage`
|
|
433
|
+
|
|
434
|
+
#### Expression
|
|
435
|
+
|
|
436
|
+
Parameters: `zoom`
|
|
437
|
+
|
|
438
|
+
___
|
|
439
|
+
|
|
440
|
+
#### Name
|
|
441
|
+
`iconOffset`
|
|
442
|
+
|
|
443
|
+
#### Description
|
|
444
|
+
Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of `iconSize` to obtain the final offset in pixels. When combined with `iconRotate` the offset will be as if the rotated direction was up.
|
|
445
|
+
|
|
446
|
+
#### Type
|
|
447
|
+
`array<number>`
|
|
448
|
+
#### Default Value
|
|
449
|
+
`[0,0]`
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
#### Requires
|
|
453
|
+
`iconImage`
|
|
454
|
+
|
|
455
|
+
#### Expression
|
|
456
|
+
|
|
457
|
+
Parameters: `zoom, feature`
|
|
458
|
+
|
|
459
|
+
___
|
|
460
|
+
|
|
461
|
+
#### Name
|
|
462
|
+
`iconAnchor`
|
|
463
|
+
|
|
464
|
+
#### Description
|
|
465
|
+
Part of the icon placed closest to the anchor.
|
|
466
|
+
|
|
467
|
+
#### Type
|
|
468
|
+
`enum`
|
|
469
|
+
#### Default Value
|
|
470
|
+
`center`
|
|
471
|
+
|
|
472
|
+
#### Supported Values
|
|
473
|
+
**center** - The center of the icon is placed closest to the anchor.<br />
|
|
474
|
+
**left** - The left side of the icon is placed closest to the anchor.<br />
|
|
475
|
+
**right** - The right side of the icon is placed closest to the anchor.<br />
|
|
476
|
+
**top** - The top of the icon is placed closest to the anchor.<br />
|
|
477
|
+
**bottom** - The bottom of the icon is placed closest to the anchor.<br />
|
|
478
|
+
**top-left** - The top left corner of the icon is placed closest to the anchor.<br />
|
|
479
|
+
**top-right** - The top right corner of the icon is placed closest to the anchor.<br />
|
|
480
|
+
**bottom-left** - The bottom left corner of the icon is placed closest to the anchor.<br />
|
|
481
|
+
**bottom-right** - The bottom right corner of the icon is placed closest to the anchor.<br />
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
#### Requires
|
|
485
|
+
`iconImage`
|
|
486
|
+
|
|
487
|
+
#### Expression
|
|
488
|
+
|
|
489
|
+
Parameters: `zoom, feature`
|
|
490
|
+
|
|
491
|
+
___
|
|
492
|
+
|
|
493
|
+
#### Name
|
|
494
|
+
`iconPitchAlignment`
|
|
495
|
+
|
|
496
|
+
#### Description
|
|
497
|
+
Orientation of icon when map is pitched.
|
|
498
|
+
|
|
499
|
+
#### Type
|
|
500
|
+
`enum`
|
|
501
|
+
#### Default Value
|
|
502
|
+
`auto`
|
|
503
|
+
|
|
504
|
+
#### Supported Values
|
|
505
|
+
**map** - The icon is aligned to the plane of the map.<br />
|
|
506
|
+
**viewport** - The icon is aligned to the plane of the viewport.<br />
|
|
507
|
+
**auto** - Automatically matches the value of `icon-rotation-alignment`.<br />
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
#### Requires
|
|
511
|
+
`iconImage`
|
|
512
|
+
|
|
513
|
+
#### Expression
|
|
514
|
+
|
|
515
|
+
Parameters: `zoom`
|
|
516
|
+
|
|
517
|
+
___
|
|
518
|
+
|
|
519
|
+
#### Name
|
|
520
|
+
`textPitchAlignment`
|
|
521
|
+
|
|
522
|
+
#### Description
|
|
523
|
+
Orientation of text when map is pitched.
|
|
524
|
+
|
|
525
|
+
#### Type
|
|
526
|
+
`enum`
|
|
527
|
+
#### Default Value
|
|
528
|
+
`auto`
|
|
529
|
+
|
|
530
|
+
#### Supported Values
|
|
531
|
+
**map** - The text is aligned to the plane of the map.<br />
|
|
532
|
+
**viewport** - The text is aligned to the plane of the viewport.<br />
|
|
533
|
+
**auto** - Automatically matches the value of `text-rotation-alignment`.<br />
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
#### Requires
|
|
537
|
+
`textField`
|
|
538
|
+
|
|
539
|
+
#### Expression
|
|
540
|
+
|
|
541
|
+
Parameters: `zoom`
|
|
542
|
+
|
|
543
|
+
___
|
|
544
|
+
|
|
545
|
+
#### Name
|
|
546
|
+
`textRotationAlignment`
|
|
547
|
+
|
|
548
|
+
#### Description
|
|
549
|
+
In combination with `symbolPlacement`, determines the rotation behavior of the individual glyphs forming the text.
|
|
550
|
+
|
|
551
|
+
#### Type
|
|
552
|
+
`enum`
|
|
553
|
+
#### Default Value
|
|
554
|
+
`auto`
|
|
555
|
+
|
|
556
|
+
#### Supported Values
|
|
557
|
+
**map** - When `symbol-placement` is set to `point`, aligns text east-west. When `symbol-placement` is set to `line` or `line-center`, aligns text x-axes with the line.<br />
|
|
558
|
+
**viewport** - Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`.<br />
|
|
559
|
+
**auto** - When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`.<br />
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
#### Requires
|
|
563
|
+
`textField`
|
|
564
|
+
|
|
565
|
+
#### Expression
|
|
566
|
+
|
|
567
|
+
Parameters: `zoom`
|
|
568
|
+
|
|
569
|
+
___
|
|
570
|
+
|
|
571
|
+
#### Name
|
|
572
|
+
`textField`
|
|
573
|
+
|
|
574
|
+
#### Description
|
|
575
|
+
Value to use for a text label. If a plain `string` is provided, it will be treated as a `formatted` with default/inherited formatting options.
|
|
576
|
+
|
|
577
|
+
#### Type
|
|
578
|
+
`formatted`
|
|
579
|
+
#### Default Value
|
|
580
|
+
``
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
#### Expression
|
|
584
|
+
|
|
585
|
+
Parameters: `zoom, feature`
|
|
586
|
+
|
|
587
|
+
___
|
|
588
|
+
|
|
589
|
+
#### Name
|
|
590
|
+
`textFont`
|
|
591
|
+
|
|
592
|
+
#### Description
|
|
593
|
+
Font stack to use for displaying text.
|
|
594
|
+
|
|
595
|
+
#### Type
|
|
596
|
+
`array<string>`
|
|
597
|
+
#### Default Value
|
|
598
|
+
`[Open Sans Regular,Arial Unicode MS Regular]`
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
#### Requires
|
|
602
|
+
`textField`
|
|
603
|
+
|
|
604
|
+
#### Supported Style Functions
|
|
605
|
+
`camera`
|
|
606
|
+
#### Expression
|
|
607
|
+
|
|
608
|
+
Parameters: `zoom, feature`
|
|
609
|
+
|
|
610
|
+
___
|
|
611
|
+
|
|
612
|
+
#### Name
|
|
613
|
+
`textSize`
|
|
614
|
+
|
|
615
|
+
#### Description
|
|
616
|
+
Font size.
|
|
617
|
+
|
|
618
|
+
#### Type
|
|
619
|
+
`number`
|
|
620
|
+
#### Default Value
|
|
621
|
+
`16`
|
|
622
|
+
|
|
623
|
+
#### Units
|
|
624
|
+
`pixels`
|
|
625
|
+
|
|
626
|
+
#### Minimum
|
|
627
|
+
`0`
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
#### Requires
|
|
631
|
+
`textField`
|
|
632
|
+
|
|
633
|
+
#### Expression
|
|
634
|
+
|
|
635
|
+
Parameters: `zoom, feature`
|
|
636
|
+
|
|
637
|
+
___
|
|
638
|
+
|
|
639
|
+
#### Name
|
|
640
|
+
`textMaxWidth`
|
|
641
|
+
|
|
642
|
+
#### Description
|
|
643
|
+
The maximum line width for text wrapping.
|
|
644
|
+
|
|
645
|
+
#### Type
|
|
646
|
+
`number`
|
|
647
|
+
#### Default Value
|
|
648
|
+
`10`
|
|
649
|
+
|
|
650
|
+
#### Units
|
|
651
|
+
`ems`
|
|
652
|
+
|
|
653
|
+
#### Minimum
|
|
654
|
+
`0`
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
#### Requires
|
|
658
|
+
`textField`
|
|
659
|
+
|
|
660
|
+
#### Supported Style Functions
|
|
661
|
+
`camera`
|
|
662
|
+
#### Expression
|
|
663
|
+
|
|
664
|
+
Parameters: `zoom, feature`
|
|
665
|
+
|
|
666
|
+
___
|
|
667
|
+
|
|
668
|
+
#### Name
|
|
669
|
+
`textLineHeight`
|
|
670
|
+
|
|
671
|
+
#### Description
|
|
672
|
+
Text leading value for multiLine text.
|
|
673
|
+
|
|
674
|
+
#### Type
|
|
675
|
+
`number`
|
|
676
|
+
#### Default Value
|
|
677
|
+
`1.2`
|
|
678
|
+
|
|
679
|
+
#### Units
|
|
680
|
+
`ems`
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
#### Requires
|
|
684
|
+
`textField`
|
|
685
|
+
|
|
686
|
+
#### Expression
|
|
687
|
+
|
|
688
|
+
Parameters: `zoom`
|
|
689
|
+
|
|
690
|
+
___
|
|
691
|
+
|
|
692
|
+
#### Name
|
|
693
|
+
`textLetterSpacing`
|
|
694
|
+
|
|
695
|
+
#### Description
|
|
696
|
+
Text tracking amount.
|
|
697
|
+
|
|
698
|
+
#### Type
|
|
699
|
+
`number`
|
|
700
|
+
#### Default Value
|
|
701
|
+
`0`
|
|
702
|
+
|
|
703
|
+
#### Units
|
|
704
|
+
`ems`
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
#### Requires
|
|
708
|
+
`textField`
|
|
709
|
+
|
|
710
|
+
#### Supported Style Functions
|
|
711
|
+
`camera`
|
|
712
|
+
#### Expression
|
|
713
|
+
|
|
714
|
+
Parameters: `zoom, feature`
|
|
715
|
+
|
|
716
|
+
___
|
|
717
|
+
|
|
718
|
+
#### Name
|
|
719
|
+
`textJustify`
|
|
720
|
+
|
|
721
|
+
#### Description
|
|
722
|
+
Text justification options.
|
|
723
|
+
|
|
724
|
+
#### Type
|
|
725
|
+
`enum`
|
|
726
|
+
#### Default Value
|
|
727
|
+
`center`
|
|
728
|
+
|
|
729
|
+
#### Supported Values
|
|
730
|
+
**auto** - The text is aligned towards the anchor position.<br />
|
|
731
|
+
**left** - The text is aligned to the left.<br />
|
|
732
|
+
**center** - The text is centered.<br />
|
|
733
|
+
**right** - The text is aligned to the right.<br />
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
#### Requires
|
|
737
|
+
`textField`
|
|
738
|
+
|
|
739
|
+
#### Supported Style Functions
|
|
740
|
+
`camera`
|
|
741
|
+
#### Expression
|
|
742
|
+
|
|
743
|
+
Parameters: `zoom, feature`
|
|
744
|
+
|
|
745
|
+
___
|
|
746
|
+
|
|
747
|
+
#### Name
|
|
748
|
+
`textRadialOffset`
|
|
749
|
+
|
|
750
|
+
#### Description
|
|
751
|
+
Radial offset of text, in the direction of the symbol's anchor. Useful in combination with `textVariableAnchor`, which defaults to using the twoDimensional `textOffset` if present.
|
|
752
|
+
|
|
753
|
+
#### Type
|
|
754
|
+
`number`
|
|
755
|
+
#### Default Value
|
|
756
|
+
`0`
|
|
757
|
+
|
|
758
|
+
#### Units
|
|
759
|
+
`ems`
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
#### Requires
|
|
763
|
+
`textField`
|
|
764
|
+
|
|
765
|
+
#### Expression
|
|
766
|
+
|
|
767
|
+
Parameters: `zoom, feature`
|
|
768
|
+
|
|
769
|
+
___
|
|
770
|
+
|
|
771
|
+
#### Name
|
|
772
|
+
`textVariableAnchor`
|
|
773
|
+
|
|
774
|
+
#### Description
|
|
775
|
+
To increase the chance of placing highPriority labels on the map, you can provide an array of `textAnchor` locations: the renderer will attempt to place the label at each location, in order, before moving onto the next label. Use `textJustify: auto` to choose justification based on anchor position. To apply an offset, use the `textRadialOffset` or the twoDimensional `textOffset`.
|
|
776
|
+
|
|
777
|
+
#### Type
|
|
778
|
+
`array<enum>`
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
#### Requires
|
|
782
|
+
`textField`
|
|
783
|
+
|
|
784
|
+
#### Expression
|
|
785
|
+
|
|
786
|
+
Parameters: `zoom`
|
|
787
|
+
|
|
788
|
+
___
|
|
789
|
+
|
|
790
|
+
#### Name
|
|
791
|
+
`textAnchor`
|
|
792
|
+
|
|
793
|
+
#### Description
|
|
794
|
+
Part of the text placed closest to the anchor.
|
|
795
|
+
|
|
796
|
+
#### Type
|
|
797
|
+
`enum`
|
|
798
|
+
#### Default Value
|
|
799
|
+
`center`
|
|
800
|
+
|
|
801
|
+
#### Supported Values
|
|
802
|
+
**center** - The center of the text is placed closest to the anchor.<br />
|
|
803
|
+
**left** - The left side of the text is placed closest to the anchor.<br />
|
|
804
|
+
**right** - The right side of the text is placed closest to the anchor.<br />
|
|
805
|
+
**top** - The top of the text is placed closest to the anchor.<br />
|
|
806
|
+
**bottom** - The bottom of the text is placed closest to the anchor.<br />
|
|
807
|
+
**top-left** - The top left corner of the text is placed closest to the anchor.<br />
|
|
808
|
+
**top-right** - The top right corner of the text is placed closest to the anchor.<br />
|
|
809
|
+
**bottom-left** - The bottom left corner of the text is placed closest to the anchor.<br />
|
|
810
|
+
**bottom-right** - The bottom right corner of the text is placed closest to the anchor.<br />
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
#### Requires
|
|
814
|
+
`textField`
|
|
815
|
+
|
|
816
|
+
#### Disabled By
|
|
817
|
+
`textVariableAnchor`
|
|
818
|
+
|
|
819
|
+
#### Supported Style Functions
|
|
820
|
+
`camera`
|
|
821
|
+
#### Expression
|
|
822
|
+
|
|
823
|
+
Parameters: `zoom, feature`
|
|
824
|
+
|
|
825
|
+
___
|
|
826
|
+
|
|
827
|
+
#### Name
|
|
828
|
+
`textMaxAngle`
|
|
829
|
+
|
|
830
|
+
#### Description
|
|
831
|
+
Maximum angle change between adjacent characters.
|
|
832
|
+
|
|
833
|
+
#### Type
|
|
834
|
+
`number`
|
|
835
|
+
#### Default Value
|
|
836
|
+
`45`
|
|
837
|
+
|
|
838
|
+
#### Units
|
|
839
|
+
`degrees`
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
#### Requires
|
|
843
|
+
`textField`
|
|
844
|
+
|
|
845
|
+
#### Expression
|
|
846
|
+
|
|
847
|
+
Parameters: `zoom`
|
|
848
|
+
|
|
849
|
+
___
|
|
850
|
+
|
|
851
|
+
#### Name
|
|
852
|
+
`textWritingMode`
|
|
853
|
+
|
|
854
|
+
#### Description
|
|
855
|
+
The property allows control over a symbol's orientation. Note that the property values act as a hint, so that a symbol whose language doesn’t support the provided orientation will be laid out in its natural orientation. Example: English point symbol will be rendered horizontally even if array value contains single 'vertical' enum value. The order of elements in an array define priority order for the placement of an orientation variant.
|
|
856
|
+
|
|
857
|
+
#### Type
|
|
858
|
+
`array<enum>`
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
#### Requires
|
|
862
|
+
`textField`
|
|
863
|
+
|
|
864
|
+
#### Expression
|
|
865
|
+
|
|
866
|
+
Parameters: `zoom`
|
|
867
|
+
|
|
868
|
+
___
|
|
869
|
+
|
|
870
|
+
#### Name
|
|
871
|
+
`textRotate`
|
|
872
|
+
|
|
873
|
+
#### Description
|
|
874
|
+
Rotates the text clockwise.
|
|
875
|
+
|
|
876
|
+
#### Type
|
|
877
|
+
`number`
|
|
878
|
+
#### Default Value
|
|
879
|
+
`0`
|
|
880
|
+
|
|
881
|
+
#### Units
|
|
882
|
+
`degrees`
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
#### Requires
|
|
886
|
+
`textField`
|
|
887
|
+
|
|
888
|
+
#### Expression
|
|
889
|
+
|
|
890
|
+
Parameters: `zoom, feature`
|
|
891
|
+
|
|
892
|
+
___
|
|
893
|
+
|
|
894
|
+
#### Name
|
|
895
|
+
`textPadding`
|
|
896
|
+
|
|
897
|
+
#### Description
|
|
898
|
+
Size of the additional area around the text bounding box used for detecting symbol collisions.
|
|
899
|
+
|
|
900
|
+
#### Type
|
|
901
|
+
`number`
|
|
902
|
+
#### Default Value
|
|
903
|
+
`2`
|
|
904
|
+
|
|
905
|
+
#### Units
|
|
906
|
+
`pixels`
|
|
907
|
+
|
|
908
|
+
#### Minimum
|
|
909
|
+
`0`
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
#### Requires
|
|
913
|
+
`textField`
|
|
914
|
+
|
|
915
|
+
#### Expression
|
|
916
|
+
|
|
917
|
+
Parameters: `zoom`
|
|
918
|
+
|
|
919
|
+
___
|
|
920
|
+
|
|
921
|
+
#### Name
|
|
922
|
+
`textKeepUpright`
|
|
923
|
+
|
|
924
|
+
#### Description
|
|
925
|
+
If true, the text may be flipped vertically to prevent it from being rendered upsideDown.
|
|
926
|
+
|
|
927
|
+
#### Type
|
|
928
|
+
`boolean`
|
|
929
|
+
#### Default Value
|
|
930
|
+
`true`
|
|
931
|
+
|
|
932
|
+
|
|
933
|
+
#### Requires
|
|
934
|
+
`textField`
|
|
935
|
+
|
|
936
|
+
#### Expression
|
|
937
|
+
|
|
938
|
+
Parameters: `zoom`
|
|
939
|
+
|
|
940
|
+
___
|
|
941
|
+
|
|
942
|
+
#### Name
|
|
943
|
+
`textTransform`
|
|
944
|
+
|
|
945
|
+
#### Description
|
|
946
|
+
Specifies how to capitalize text, similar to the CSS `textTransform` property.
|
|
947
|
+
|
|
948
|
+
#### Type
|
|
949
|
+
`enum`
|
|
950
|
+
#### Default Value
|
|
951
|
+
`none`
|
|
952
|
+
|
|
953
|
+
#### Supported Values
|
|
954
|
+
**none** - The text is not altered.<br />
|
|
955
|
+
**uppercase** - Forces all letters to be displayed in uppercase.<br />
|
|
956
|
+
**lowercase** - Forces all letters to be displayed in lowercase.<br />
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
#### Requires
|
|
960
|
+
`textField`
|
|
961
|
+
|
|
962
|
+
#### Expression
|
|
963
|
+
|
|
964
|
+
Parameters: `zoom, feature`
|
|
965
|
+
|
|
966
|
+
___
|
|
967
|
+
|
|
968
|
+
#### Name
|
|
969
|
+
`textOffset`
|
|
970
|
+
|
|
971
|
+
#### Description
|
|
972
|
+
Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up. If used with textVariableAnchor, input values will be taken as absolute values. Offsets along the x and yAxis will be applied automatically based on the anchor position.
|
|
973
|
+
|
|
974
|
+
#### Type
|
|
975
|
+
`array<number>`
|
|
976
|
+
#### Default Value
|
|
977
|
+
`[0,0]`
|
|
978
|
+
|
|
979
|
+
#### Units
|
|
980
|
+
`ems`
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
#### Requires
|
|
984
|
+
`textField`
|
|
985
|
+
|
|
986
|
+
#### Disabled By
|
|
987
|
+
`textRadialOffset`
|
|
988
|
+
|
|
989
|
+
#### Expression
|
|
990
|
+
|
|
991
|
+
Parameters: `zoom, feature`
|
|
992
|
+
|
|
993
|
+
___
|
|
994
|
+
|
|
995
|
+
#### Name
|
|
996
|
+
`textAllowOverlap`
|
|
997
|
+
|
|
998
|
+
#### Description
|
|
999
|
+
If true, the text will be visible even if it collides with other previously drawn symbols.
|
|
1000
|
+
|
|
1001
|
+
#### Type
|
|
1002
|
+
`boolean`
|
|
1003
|
+
#### Default Value
|
|
1004
|
+
`false`
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
#### Requires
|
|
1008
|
+
`textField`
|
|
1009
|
+
|
|
1010
|
+
#### Expression
|
|
1011
|
+
|
|
1012
|
+
Parameters: `zoom`
|
|
1013
|
+
|
|
1014
|
+
___
|
|
1015
|
+
|
|
1016
|
+
#### Name
|
|
1017
|
+
`textIgnorePlacement`
|
|
1018
|
+
|
|
1019
|
+
#### Description
|
|
1020
|
+
If true, other symbols can be visible even if they collide with the text.
|
|
1021
|
+
|
|
1022
|
+
#### Type
|
|
1023
|
+
`boolean`
|
|
1024
|
+
#### Default Value
|
|
1025
|
+
`false`
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
#### Requires
|
|
1029
|
+
`textField`
|
|
1030
|
+
|
|
1031
|
+
#### Expression
|
|
1032
|
+
|
|
1033
|
+
Parameters: `zoom`
|
|
1034
|
+
|
|
1035
|
+
___
|
|
1036
|
+
|
|
1037
|
+
#### Name
|
|
1038
|
+
`textOptional`
|
|
1039
|
+
|
|
1040
|
+
#### Description
|
|
1041
|
+
If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.
|
|
1042
|
+
|
|
1043
|
+
#### Type
|
|
1044
|
+
`boolean`
|
|
1045
|
+
#### Default Value
|
|
1046
|
+
`false`
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
#### Requires
|
|
1050
|
+
`textField, iconImage`
|
|
1051
|
+
|
|
1052
|
+
#### Expression
|
|
1053
|
+
|
|
1054
|
+
Parameters: `zoom`
|
|
1055
|
+
|
|
1056
|
+
___
|
|
1057
|
+
|
|
1058
|
+
#### Name
|
|
1059
|
+
`visibility`
|
|
1060
|
+
|
|
1061
|
+
#### Description
|
|
1062
|
+
Whether this layer is displayed.
|
|
1063
|
+
|
|
1064
|
+
#### Type
|
|
1065
|
+
`enum`
|
|
1066
|
+
#### Default Value
|
|
1067
|
+
`visible`
|
|
1068
|
+
|
|
1069
|
+
#### Supported Values
|
|
1070
|
+
**visible** - The layer is shown.<br />
|
|
1071
|
+
**none** - The layer is not shown.<br />
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
|
|
1075
|
+
___
|
|
1076
|
+
|
|
1077
|
+
#### Name
|
|
1078
|
+
`iconOpacity`
|
|
1079
|
+
|
|
1080
|
+
#### Description
|
|
1081
|
+
The opacity at which the icon will be drawn.
|
|
1082
|
+
|
|
1083
|
+
#### Type
|
|
1084
|
+
`number`
|
|
1085
|
+
#### Default Value
|
|
1086
|
+
`1`
|
|
1087
|
+
|
|
1088
|
+
#### Minimum
|
|
1089
|
+
`0`
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
#### Maximum
|
|
1093
|
+
`1`
|
|
1094
|
+
|
|
1095
|
+
#### Requires
|
|
1096
|
+
`iconImage`
|
|
1097
|
+
|
|
1098
|
+
#### Expression
|
|
1099
|
+
|
|
1100
|
+
Parameters: `zoom, feature, feature-state`
|
|
1101
|
+
___
|
|
1102
|
+
|
|
1103
|
+
#### Name
|
|
1104
|
+
|
|
1105
|
+
`iconOpacityTransition`
|
|
1106
|
+
|
|
1107
|
+
#### Description
|
|
1108
|
+
|
|
1109
|
+
The transition affecting any changes to this layer’s iconOpacity propery.
|
|
1110
|
+
|
|
1111
|
+
#### Type
|
|
1112
|
+
|
|
1113
|
+
`{ duration, delay }`
|
|
1114
|
+
|
|
1115
|
+
#### Units
|
|
1116
|
+
`milliseconds`
|
|
1117
|
+
|
|
1118
|
+
#### Default Value
|
|
1119
|
+
`{duration: 300, delay: 0}`
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
___
|
|
1123
|
+
|
|
1124
|
+
#### Name
|
|
1125
|
+
`iconColor`
|
|
1126
|
+
|
|
1127
|
+
#### Description
|
|
1128
|
+
The color of the icon. This can only be used with sdf icons.
|
|
1129
|
+
|
|
1130
|
+
#### Type
|
|
1131
|
+
`color`
|
|
1132
|
+
#### Default Value
|
|
1133
|
+
`#000000`
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
#### Requires
|
|
1137
|
+
`iconImage`
|
|
1138
|
+
|
|
1139
|
+
#### Expression
|
|
1140
|
+
|
|
1141
|
+
Parameters: `zoom, feature, feature-state`
|
|
1142
|
+
___
|
|
1143
|
+
|
|
1144
|
+
#### Name
|
|
1145
|
+
|
|
1146
|
+
`iconColorTransition`
|
|
1147
|
+
|
|
1148
|
+
#### Description
|
|
1149
|
+
|
|
1150
|
+
The transition affecting any changes to this layer’s iconColor propery.
|
|
1151
|
+
|
|
1152
|
+
#### Type
|
|
1153
|
+
|
|
1154
|
+
`{ duration, delay }`
|
|
1155
|
+
|
|
1156
|
+
#### Units
|
|
1157
|
+
`milliseconds`
|
|
1158
|
+
|
|
1159
|
+
#### Default Value
|
|
1160
|
+
`{duration: 300, delay: 0}`
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
___
|
|
1164
|
+
|
|
1165
|
+
#### Name
|
|
1166
|
+
`iconHaloColor`
|
|
1167
|
+
|
|
1168
|
+
#### Description
|
|
1169
|
+
The color of the icon's halo. Icon halos can only be used with SDF icons.
|
|
1170
|
+
|
|
1171
|
+
#### Type
|
|
1172
|
+
`color`
|
|
1173
|
+
#### Default Value
|
|
1174
|
+
`rgba(0, 0, 0, 0)`
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
#### Requires
|
|
1178
|
+
`iconImage`
|
|
1179
|
+
|
|
1180
|
+
#### Expression
|
|
1181
|
+
|
|
1182
|
+
Parameters: `zoom, feature, feature-state`
|
|
1183
|
+
___
|
|
1184
|
+
|
|
1185
|
+
#### Name
|
|
1186
|
+
|
|
1187
|
+
`iconHaloColorTransition`
|
|
1188
|
+
|
|
1189
|
+
#### Description
|
|
1190
|
+
|
|
1191
|
+
The transition affecting any changes to this layer’s iconHaloColor propery.
|
|
1192
|
+
|
|
1193
|
+
#### Type
|
|
1194
|
+
|
|
1195
|
+
`{ duration, delay }`
|
|
1196
|
+
|
|
1197
|
+
#### Units
|
|
1198
|
+
`milliseconds`
|
|
1199
|
+
|
|
1200
|
+
#### Default Value
|
|
1201
|
+
`{duration: 300, delay: 0}`
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
___
|
|
1205
|
+
|
|
1206
|
+
#### Name
|
|
1207
|
+
`iconHaloWidth`
|
|
1208
|
+
|
|
1209
|
+
#### Description
|
|
1210
|
+
Distance of halo to the icon outline.
|
|
1211
|
+
|
|
1212
|
+
#### Type
|
|
1213
|
+
`number`
|
|
1214
|
+
#### Default Value
|
|
1215
|
+
`0`
|
|
1216
|
+
|
|
1217
|
+
#### Units
|
|
1218
|
+
`pixels`
|
|
1219
|
+
|
|
1220
|
+
#### Minimum
|
|
1221
|
+
`0`
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
#### Requires
|
|
1225
|
+
`iconImage`
|
|
1226
|
+
|
|
1227
|
+
#### Expression
|
|
1228
|
+
|
|
1229
|
+
Parameters: `zoom, feature, feature-state`
|
|
1230
|
+
___
|
|
1231
|
+
|
|
1232
|
+
#### Name
|
|
1233
|
+
|
|
1234
|
+
`iconHaloWidthTransition`
|
|
1235
|
+
|
|
1236
|
+
#### Description
|
|
1237
|
+
|
|
1238
|
+
The transition affecting any changes to this layer’s iconHaloWidth propery.
|
|
1239
|
+
|
|
1240
|
+
#### Type
|
|
1241
|
+
|
|
1242
|
+
`{ duration, delay }`
|
|
1243
|
+
|
|
1244
|
+
#### Units
|
|
1245
|
+
`milliseconds`
|
|
1246
|
+
|
|
1247
|
+
#### Default Value
|
|
1248
|
+
`{duration: 300, delay: 0}`
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
___
|
|
1252
|
+
|
|
1253
|
+
#### Name
|
|
1254
|
+
`iconHaloBlur`
|
|
1255
|
+
|
|
1256
|
+
#### Description
|
|
1257
|
+
Fade out the halo towards the outside.
|
|
1258
|
+
|
|
1259
|
+
#### Type
|
|
1260
|
+
`number`
|
|
1261
|
+
#### Default Value
|
|
1262
|
+
`0`
|
|
1263
|
+
|
|
1264
|
+
#### Units
|
|
1265
|
+
`pixels`
|
|
1266
|
+
|
|
1267
|
+
#### Minimum
|
|
1268
|
+
`0`
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
#### Requires
|
|
1272
|
+
`iconImage`
|
|
1273
|
+
|
|
1274
|
+
#### Expression
|
|
1275
|
+
|
|
1276
|
+
Parameters: `zoom, feature, feature-state`
|
|
1277
|
+
___
|
|
1278
|
+
|
|
1279
|
+
#### Name
|
|
1280
|
+
|
|
1281
|
+
`iconHaloBlurTransition`
|
|
1282
|
+
|
|
1283
|
+
#### Description
|
|
1284
|
+
|
|
1285
|
+
The transition affecting any changes to this layer’s iconHaloBlur propery.
|
|
1286
|
+
|
|
1287
|
+
#### Type
|
|
1288
|
+
|
|
1289
|
+
`{ duration, delay }`
|
|
1290
|
+
|
|
1291
|
+
#### Units
|
|
1292
|
+
`milliseconds`
|
|
1293
|
+
|
|
1294
|
+
#### Default Value
|
|
1295
|
+
`{duration: 300, delay: 0}`
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
___
|
|
1299
|
+
|
|
1300
|
+
#### Name
|
|
1301
|
+
`iconTranslate`
|
|
1302
|
+
|
|
1303
|
+
#### Description
|
|
1304
|
+
Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.
|
|
1305
|
+
|
|
1306
|
+
#### Type
|
|
1307
|
+
`array<number>`
|
|
1308
|
+
#### Default Value
|
|
1309
|
+
`[0,0]`
|
|
1310
|
+
|
|
1311
|
+
#### Units
|
|
1312
|
+
`pixels`
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
#### Requires
|
|
1316
|
+
`iconImage`
|
|
1317
|
+
|
|
1318
|
+
#### Expression
|
|
1319
|
+
|
|
1320
|
+
Parameters: `zoom`
|
|
1321
|
+
___
|
|
1322
|
+
|
|
1323
|
+
#### Name
|
|
1324
|
+
|
|
1325
|
+
`iconTranslateTransition`
|
|
1326
|
+
|
|
1327
|
+
#### Description
|
|
1328
|
+
|
|
1329
|
+
The transition affecting any changes to this layer’s iconTranslate propery.
|
|
1330
|
+
|
|
1331
|
+
#### Type
|
|
1332
|
+
|
|
1333
|
+
`{ duration, delay }`
|
|
1334
|
+
|
|
1335
|
+
#### Units
|
|
1336
|
+
`milliseconds`
|
|
1337
|
+
|
|
1338
|
+
#### Default Value
|
|
1339
|
+
`{duration: 300, delay: 0}`
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
___
|
|
1343
|
+
|
|
1344
|
+
#### Name
|
|
1345
|
+
`iconTranslateAnchor`
|
|
1346
|
+
|
|
1347
|
+
#### Description
|
|
1348
|
+
Controls the frame of reference for `iconTranslate`.
|
|
1349
|
+
|
|
1350
|
+
#### Type
|
|
1351
|
+
`enum`
|
|
1352
|
+
#### Default Value
|
|
1353
|
+
`map`
|
|
1354
|
+
|
|
1355
|
+
#### Supported Values
|
|
1356
|
+
**map** - Icons are translated relative to the map.<br />
|
|
1357
|
+
**viewport** - Icons are translated relative to the viewport.<br />
|
|
1358
|
+
|
|
1359
|
+
|
|
1360
|
+
#### Requires
|
|
1361
|
+
`iconImage, iconTranslate`
|
|
1362
|
+
|
|
1363
|
+
#### Expression
|
|
1364
|
+
|
|
1365
|
+
Parameters: `zoom`
|
|
1366
|
+
|
|
1367
|
+
___
|
|
1368
|
+
|
|
1369
|
+
#### Name
|
|
1370
|
+
`textOpacity`
|
|
1371
|
+
|
|
1372
|
+
#### Description
|
|
1373
|
+
The opacity at which the text will be drawn.
|
|
1374
|
+
|
|
1375
|
+
#### Type
|
|
1376
|
+
`number`
|
|
1377
|
+
#### Default Value
|
|
1378
|
+
`1`
|
|
1379
|
+
|
|
1380
|
+
#### Minimum
|
|
1381
|
+
`0`
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
#### Maximum
|
|
1385
|
+
`1`
|
|
1386
|
+
|
|
1387
|
+
#### Requires
|
|
1388
|
+
`textField`
|
|
1389
|
+
|
|
1390
|
+
#### Expression
|
|
1391
|
+
|
|
1392
|
+
Parameters: `zoom, feature, feature-state`
|
|
1393
|
+
___
|
|
1394
|
+
|
|
1395
|
+
#### Name
|
|
1396
|
+
|
|
1397
|
+
`textOpacityTransition`
|
|
1398
|
+
|
|
1399
|
+
#### Description
|
|
1400
|
+
|
|
1401
|
+
The transition affecting any changes to this layer’s textOpacity propery.
|
|
1402
|
+
|
|
1403
|
+
#### Type
|
|
1404
|
+
|
|
1405
|
+
`{ duration, delay }`
|
|
1406
|
+
|
|
1407
|
+
#### Units
|
|
1408
|
+
`milliseconds`
|
|
1409
|
+
|
|
1410
|
+
#### Default Value
|
|
1411
|
+
`{duration: 300, delay: 0}`
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
___
|
|
1415
|
+
|
|
1416
|
+
#### Name
|
|
1417
|
+
`textColor`
|
|
1418
|
+
|
|
1419
|
+
#### Description
|
|
1420
|
+
The color with which the text will be drawn.
|
|
1421
|
+
|
|
1422
|
+
#### Type
|
|
1423
|
+
`color`
|
|
1424
|
+
#### Default Value
|
|
1425
|
+
`#000000`
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
#### Requires
|
|
1429
|
+
`textField`
|
|
1430
|
+
|
|
1431
|
+
#### Expression
|
|
1432
|
+
|
|
1433
|
+
Parameters: `zoom, feature, feature-state`
|
|
1434
|
+
___
|
|
1435
|
+
|
|
1436
|
+
#### Name
|
|
1437
|
+
|
|
1438
|
+
`textColorTransition`
|
|
1439
|
+
|
|
1440
|
+
#### Description
|
|
1441
|
+
|
|
1442
|
+
The transition affecting any changes to this layer’s textColor propery.
|
|
1443
|
+
|
|
1444
|
+
#### Type
|
|
1445
|
+
|
|
1446
|
+
`{ duration, delay }`
|
|
1447
|
+
|
|
1448
|
+
#### Units
|
|
1449
|
+
`milliseconds`
|
|
1450
|
+
|
|
1451
|
+
#### Default Value
|
|
1452
|
+
`{duration: 300, delay: 0}`
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
___
|
|
1456
|
+
|
|
1457
|
+
#### Name
|
|
1458
|
+
`textHaloColor`
|
|
1459
|
+
|
|
1460
|
+
#### Description
|
|
1461
|
+
The color of the text's halo, which helps it stand out from backgrounds.
|
|
1462
|
+
|
|
1463
|
+
#### Type
|
|
1464
|
+
`color`
|
|
1465
|
+
#### Default Value
|
|
1466
|
+
`rgba(0, 0, 0, 0)`
|
|
1467
|
+
|
|
1468
|
+
|
|
1469
|
+
#### Requires
|
|
1470
|
+
`textField`
|
|
1471
|
+
|
|
1472
|
+
#### Expression
|
|
1473
|
+
|
|
1474
|
+
Parameters: `zoom, feature, feature-state`
|
|
1475
|
+
___
|
|
1476
|
+
|
|
1477
|
+
#### Name
|
|
1478
|
+
|
|
1479
|
+
`textHaloColorTransition`
|
|
1480
|
+
|
|
1481
|
+
#### Description
|
|
1482
|
+
|
|
1483
|
+
The transition affecting any changes to this layer’s textHaloColor propery.
|
|
1484
|
+
|
|
1485
|
+
#### Type
|
|
1486
|
+
|
|
1487
|
+
`{ duration, delay }`
|
|
1488
|
+
|
|
1489
|
+
#### Units
|
|
1490
|
+
`milliseconds`
|
|
1491
|
+
|
|
1492
|
+
#### Default Value
|
|
1493
|
+
`{duration: 300, delay: 0}`
|
|
1494
|
+
|
|
1495
|
+
|
|
1496
|
+
___
|
|
1497
|
+
|
|
1498
|
+
#### Name
|
|
1499
|
+
`textHaloWidth`
|
|
1500
|
+
|
|
1501
|
+
#### Description
|
|
1502
|
+
Distance of halo to the font outline. Max text halo width is 1/4 of the fontSize.
|
|
1503
|
+
|
|
1504
|
+
#### Type
|
|
1505
|
+
`number`
|
|
1506
|
+
#### Default Value
|
|
1507
|
+
`0`
|
|
1508
|
+
|
|
1509
|
+
#### Units
|
|
1510
|
+
`pixels`
|
|
1511
|
+
|
|
1512
|
+
#### Minimum
|
|
1513
|
+
`0`
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
#### Requires
|
|
1517
|
+
`textField`
|
|
1518
|
+
|
|
1519
|
+
#### Expression
|
|
1520
|
+
|
|
1521
|
+
Parameters: `zoom, feature, feature-state`
|
|
1522
|
+
___
|
|
1523
|
+
|
|
1524
|
+
#### Name
|
|
1525
|
+
|
|
1526
|
+
`textHaloWidthTransition`
|
|
1527
|
+
|
|
1528
|
+
#### Description
|
|
1529
|
+
|
|
1530
|
+
The transition affecting any changes to this layer’s textHaloWidth propery.
|
|
1531
|
+
|
|
1532
|
+
#### Type
|
|
1533
|
+
|
|
1534
|
+
`{ duration, delay }`
|
|
1535
|
+
|
|
1536
|
+
#### Units
|
|
1537
|
+
`milliseconds`
|
|
1538
|
+
|
|
1539
|
+
#### Default Value
|
|
1540
|
+
`{duration: 300, delay: 0}`
|
|
1541
|
+
|
|
1542
|
+
|
|
1543
|
+
___
|
|
1544
|
+
|
|
1545
|
+
#### Name
|
|
1546
|
+
`textHaloBlur`
|
|
1547
|
+
|
|
1548
|
+
#### Description
|
|
1549
|
+
The halo's fadeout distance towards the outside.
|
|
1550
|
+
|
|
1551
|
+
#### Type
|
|
1552
|
+
`number`
|
|
1553
|
+
#### Default Value
|
|
1554
|
+
`0`
|
|
1555
|
+
|
|
1556
|
+
#### Units
|
|
1557
|
+
`pixels`
|
|
1558
|
+
|
|
1559
|
+
#### Minimum
|
|
1560
|
+
`0`
|
|
1561
|
+
|
|
1562
|
+
|
|
1563
|
+
#### Requires
|
|
1564
|
+
`textField`
|
|
1565
|
+
|
|
1566
|
+
#### Expression
|
|
1567
|
+
|
|
1568
|
+
Parameters: `zoom, feature, feature-state`
|
|
1569
|
+
___
|
|
1570
|
+
|
|
1571
|
+
#### Name
|
|
1572
|
+
|
|
1573
|
+
`textHaloBlurTransition`
|
|
1574
|
+
|
|
1575
|
+
#### Description
|
|
1576
|
+
|
|
1577
|
+
The transition affecting any changes to this layer’s textHaloBlur propery.
|
|
1578
|
+
|
|
1579
|
+
#### Type
|
|
1580
|
+
|
|
1581
|
+
`{ duration, delay }`
|
|
1582
|
+
|
|
1583
|
+
#### Units
|
|
1584
|
+
`milliseconds`
|
|
1585
|
+
|
|
1586
|
+
#### Default Value
|
|
1587
|
+
`{duration: 300, delay: 0}`
|
|
1588
|
+
|
|
1589
|
+
|
|
1590
|
+
___
|
|
1591
|
+
|
|
1592
|
+
#### Name
|
|
1593
|
+
`textTranslate`
|
|
1594
|
+
|
|
1595
|
+
#### Description
|
|
1596
|
+
Distance that the text's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.
|
|
1597
|
+
|
|
1598
|
+
#### Type
|
|
1599
|
+
`array<number>`
|
|
1600
|
+
#### Default Value
|
|
1601
|
+
`[0,0]`
|
|
1602
|
+
|
|
1603
|
+
#### Units
|
|
1604
|
+
`pixels`
|
|
1605
|
+
|
|
1606
|
+
|
|
1607
|
+
#### Requires
|
|
1608
|
+
`textField`
|
|
1609
|
+
|
|
1610
|
+
#### Expression
|
|
1611
|
+
|
|
1612
|
+
Parameters: `zoom`
|
|
1613
|
+
___
|
|
1614
|
+
|
|
1615
|
+
#### Name
|
|
1616
|
+
|
|
1617
|
+
`textTranslateTransition`
|
|
1618
|
+
|
|
1619
|
+
#### Description
|
|
1620
|
+
|
|
1621
|
+
The transition affecting any changes to this layer’s textTranslate propery.
|
|
1622
|
+
|
|
1623
|
+
#### Type
|
|
1624
|
+
|
|
1625
|
+
`{ duration, delay }`
|
|
1626
|
+
|
|
1627
|
+
#### Units
|
|
1628
|
+
`milliseconds`
|
|
1629
|
+
|
|
1630
|
+
#### Default Value
|
|
1631
|
+
`{duration: 300, delay: 0}`
|
|
1632
|
+
|
|
1633
|
+
|
|
1634
|
+
___
|
|
1635
|
+
|
|
1636
|
+
#### Name
|
|
1637
|
+
`textTranslateAnchor`
|
|
1638
|
+
|
|
1639
|
+
#### Description
|
|
1640
|
+
Controls the frame of reference for `textTranslate`.
|
|
1641
|
+
|
|
1642
|
+
#### Type
|
|
1643
|
+
`enum`
|
|
1644
|
+
#### Default Value
|
|
1645
|
+
`map`
|
|
1646
|
+
|
|
1647
|
+
#### Supported Values
|
|
1648
|
+
**map** - The text is translated relative to the map.<br />
|
|
1649
|
+
**viewport** - The text is translated relative to the viewport.<br />
|
|
1650
|
+
|
|
1651
|
+
|
|
1652
|
+
#### Requires
|
|
1653
|
+
`textField, textTranslate`
|
|
1654
|
+
|
|
1655
|
+
#### Expression
|
|
1656
|
+
|
|
1657
|
+
Parameters: `zoom`
|
|
1658
|
+
|