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
7f2d0d68
Commit
7f2d0d68
authored
May 27, 2017
by
Qiu Xiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加文档注释
parent
5de8ae18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
78 additions
and
2 deletions
+78
-2
index.js
index.js
+78
-2
No files found.
index.js
View file @
7f2d0d68
...
@@ -4,24 +4,100 @@ import {requireNativeComponent, View} from 'react-native'
...
@@ -4,24 +4,100 @@ import {requireNativeComponent, View} from 'react-native'
class
MapView
extends
Component
{
class
MapView
extends
Component
{
static
propTypes
=
{
static
propTypes
=
{
...
View
.
propTypes
,
...
View
.
propTypes
,
/**
* 设置地图类型
*
* - standard: 标准地图
* - satellite: 卫星地图
* - navigation: 导航地图
* - night: 夜间地图
*/
mapType
:
PropTypes
.
oneOf
([
'standard'
,
'satellite'
,
'navigation'
,
'night'
]),
/**
* 是否启用定位
*/
showsUserLocation
:
PropTypes
.
bool
,
showsUserLocation
:
PropTypes
.
bool
,
/**
* 是否显示室内地图
*/
showsIndoorMap
:
PropTypes
.
bool
,
showsIndoorMap
:
PropTypes
.
bool
,
/**
* 是否显示室内地图楼层切换控件
*/
showsIndoorSwitch
:
PropTypes
.
bool
,
showsIndoorSwitch
:
PropTypes
.
bool
,
/**
* 是否显示3D建筑
*/
showsBuildings
:
PropTypes
.
bool
,
showsBuildings
:
PropTypes
.
bool
,
/**
* 是否显示地图文本
*/
showsMapText
:
PropTypes
.
bool
,
showsMapText
:
PropTypes
.
bool
,
/**
* 是否显示指南针
*/
showsCompass
:
PropTypes
.
bool
,
showsCompass
:
PropTypes
.
bool
,
/**
* 是否显示放大缩小按钮
*/
showsZoomControls
:
PropTypes
.
bool
,
showsZoomControls
:
PropTypes
.
bool
,
/**
* 是否显示比例尺
*/
showsScale
:
PropTypes
.
bool
,
showsScale
:
PropTypes
.
bool
,
/**
* 是否显示定位按钮
*/
showsMyLocationButton
:
PropTypes
.
bool
,
showsMyLocationButton
:
PropTypes
.
bool
,
/**
* 是否显示路况
*/
showsTraffic
:
PropTypes
.
bool
,
showsTraffic
:
PropTypes
.
bool
,
mapTextZIndex
:
PropTypes
.
number
,
/**
* 设置最大缩放级别
*/
maxZoomLevel
:
PropTypes
.
number
,
maxZoomLevel
:
PropTypes
.
number
,
/**
* 设置最小缩放级别
*/
minZoomLevel
:
PropTypes
.
number
,
minZoomLevel
:
PropTypes
.
number
,
/**
* 设置当前缩放级别
*/
zoomLevel
:
PropTypes
.
number
,
zoomLevel
:
PropTypes
.
number
,
mapType
:
PropTypes
.
string
,
/**
* 是否启用缩放手势,用于放大缩小
*/
zoomEnabled
:
PropTypes
.
bool
,
zoomEnabled
:
PropTypes
.
bool
,
/**
* 是否启用滑动手势,用于平移
*/
scrollEnabled
:
PropTypes
.
bool
,
scrollEnabled
:
PropTypes
.
bool
,
/**
* 是否启用旋转手势,用于调整方向
*/
rotateEnabled
:
PropTypes
.
bool
,
rotateEnabled
:
PropTypes
.
bool
,
/**
* 是否启用倾斜手势,用于改变视角
*/
tiltEnabled
:
PropTypes
.
bool
,
tiltEnabled
:
PropTypes
.
bool
,
}
}
...
...
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