react-native-mapbox-gl/maps官方帮助文
2019-10-22 本文已影响0人
jadefan
Mapbox Maps SDK for React Native
An unofficial React Native library for building maps with the Mapbox Maps SDK for iOS and Mapbox Maps SDK for Android
Installation
Dependencies
- node
- npm
- React Native (0.59+)
Git
git clone git@github.com:react-native-mapbox-gl/maps.git
cd maps
Yarn
yarn add @react-native-mapbox-gl/maps
Npm
npm install @react-native-mapbox-gl/maps --save
Installation Guides
Getting Started
Documentation
Components
- MapView 地图视图
- Light 光线
- StyleSheet 样式表
- PointAnnotation 点注释
- Callout 调出
- Camera 相机
- UserLocation 用户位置
- Images 图片
Sources
- VectorSource 矢量(切片)数据源
- ShapeSource 图形数据源
- RasterSource 栅格数据源
Layers
- BackgroundLayer 背景图层
- CircleLayer 圆形图层
- FillExtrusionLayer 填充拉伸图层
- FillLayer 填充图层
- LineLayer 线图层
- RasterLayer 栅格图层
- SymbolLayer 符号图层
- HeatmapLayer 热力图层
Offline
- OfflineManager 离线管理器
- SnapshotManager 快照管理器
Expo Support
We have a feature request open with Expo if you want to see it get in show your support https://expo.canny.io/feature-requests/p/add-mapbox-gl-support
可以在Expo的专栏中寻求技术支持
Developer Group
Have a question or need some help? Join our Gitter developer group!