Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
react-native-amap3d
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
放牛的园子
react-native-amap3d
Commits
686fdc32
Commit
686fdc32
authored
Aug 23, 2017
by
7c00
Committed by
GitHub
Aug 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
close #38
parent
8b2cb38d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
18 deletions
+6
-18
README.md
README.md
+6
-18
No files found.
README.md
View file @
686fdc32
...
...
@@ -20,6 +20,7 @@ react-native 高德地图组件,使用最新 3D SDK,支持 Android + iOS。
-
折线绘制(Polyline)
-
多边形绘制(Polygon)
-
圆形绘制(Circle)
-
导航(驾车、步行、骑行)(还不够完善)








...
...
@@ -33,11 +34,9 @@ $ npm i react-native-amap3d --save
### 项目配置
#### Android
推荐使用
`react-native link`
:
```
$ react-native link react-native-amap3d
```
当然,你也可以手动配置,参考
[
Android Studio 配置工程
](
http://lbs.amap.com/api/android-sdk/guide/create-project/android-studio-create-project
)
。
#### iOS
推荐使用 CocoaPods,在
`ios`
目录下新建文件
`Podfile`
:
...
...
@@ -74,17 +73,6 @@ $ pod install
</application>
```
3. 同时,配置必要的权限:
```xml
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<uses-permission
android:name=
"android.permission.WRITE_EXTERNAL_STORAGE"
/>
<uses-permission
android:name=
"android.permission.ACCESS_NETWORK_STATE"
/>
<uses-permission
android:name=
"android.permission.ACCESS_WIFI_STATE"
/>
<uses-permission
android:name=
"android.permission.CHANGE_WIFI_STATE"
/>
<uses-permission
android:name=
"android.permission.READ_PHONE_STATE"
/>
<uses-permission
android:name=
"android.permission.ACCESS_COARSE_LOCATION"
/>
```
#### iOS
1. [获取高德 Key](https://lbs.amap.com/api/ios-sdk/guide/create-project/get-key)。
...
...
@@ -166,11 +154,11 @@ import MapView from 'react-native-amap3d'
## 接口
请参考注释文档:
-
[
MapView
](
https://github.com/qiuxiang/react-native-amap3d/blob/master/components/
MapView.js#L18
)
-
[
Marker
](
https://github.com/qiuxiang/react-native-amap3d/blob/master/components/
Marker.js#L12
)
-
[
Polyline
](
https://github.com/qiuxiang/react-native-amap3d/blob/master/components/
Polyline.js#L11
)
-
[
Polygon
](
https://github.com/qiuxiang/react-native-amap3d/blob/master/components/
Polygon.js#L10
)
-
[
Circle
](
https://github.com/qiuxiang/react-native-amap3d/blob/master/components/
Circle.js#L10
)
-
[
MapView
](
https://github.com/qiuxiang/react-native-amap3d/blob/master/components/
maps/MapView.js#L14
)
-
[
Marker
](
https://github.com/qiuxiang/react-native-amap3d/blob/master/components/
maps/Marker.js#L6
)
-
[
Polyline
](
https://github.com/qiuxiang/react-native-amap3d/blob/master/components/
maps/Polyline.js#L5
)
-
[
Polygon
](
https://github.com/qiuxiang/react-native-amap3d/blob/master/components/
maps/Polygon.js#L5
)
-
[
Circle
](
https://github.com/qiuxiang/react-native-amap3d/blob/master/components/
maps/Circle.js#L5
)
## 注意
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment