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
264cb0eb
Commit
264cb0eb
authored
May 27, 2017
by
Qiu Xiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整接口
parent
7f2d0d68
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
AMapViewManager.java
android/src/main/java/com/qiuxiang/AMapViewManager.java
+3
-8
index.js
index.js
+4
-4
No files found.
android/src/main/java/com/qiuxiang/AMapViewManager.java
View file @
264cb0eb
...
...
@@ -28,7 +28,7 @@ class AMapViewManager extends SimpleViewManager<AMapView> {
return
new
AMapView
(
reactContext
);
}
@ReactProp
(
name
=
"
showsUserLocation
"
)
@ReactProp
(
name
=
"
locationEnabled
"
)
public
void
setMyLocationEnabled
(
AMapView
view
,
boolean
enabled
)
{
MyLocationStyle
locationStyle
=
new
MyLocationStyle
();
locationStyle
.
myLocationType
(
MyLocationStyle
.
LOCATION_TYPE_SHOW
);
...
...
@@ -51,7 +51,7 @@ class AMapViewManager extends SimpleViewManager<AMapView> {
view
.
map
.
showBuildings
(
show
);
}
@ReactProp
(
name
=
"shows
MapText
"
)
@ReactProp
(
name
=
"shows
Labels
"
)
public
void
showMapText
(
AMapView
view
,
boolean
show
)
{
view
.
map
.
showMapText
(
show
);
}
...
...
@@ -71,16 +71,11 @@ class AMapViewManager extends SimpleViewManager<AMapView> {
view
.
ui
.
setScaleControlsEnabled
(
enabled
);
}
@ReactProp
(
name
=
"shows
My
LocationButton"
)
@ReactProp
(
name
=
"showsLocationButton"
)
public
void
setMyLocationButtonEnabled
(
AMapView
view
,
boolean
enabled
)
{
view
.
ui
.
setMyLocationButtonEnabled
(
enabled
);
}
@ReactProp
(
name
=
"mapTextZIndex"
)
public
void
setMapTextZIndex
(
AMapView
view
,
int
zIndex
)
{
view
.
map
.
setMapTextZIndex
(
zIndex
);
}
@ReactProp
(
name
=
"showsTraffic"
)
public
void
setTrafficEnabled
(
AMapView
view
,
boolean
enabled
)
{
view
.
map
.
setTrafficEnabled
(
enabled
);
...
...
index.js
View file @
264cb0eb
...
...
@@ -18,7 +18,7 @@ class MapView extends Component {
/**
* 是否启用定位
*/
showsUserLocation
:
PropTypes
.
bool
,
locationEnabled
:
PropTypes
.
bool
,
/**
* 是否显示室内地图
...
...
@@ -36,9 +36,9 @@ class MapView extends Component {
showsBuildings
:
PropTypes
.
bool
,
/**
* 是否显示
地图文本
* 是否显示
文本标签
*/
shows
MapText
:
PropTypes
.
bool
,
shows
Labels
:
PropTypes
.
bool
,
/**
* 是否显示指南针
...
...
@@ -58,7 +58,7 @@ class MapView extends Component {
/**
* 是否显示定位按钮
*/
shows
My
LocationButton
:
PropTypes
.
bool
,
showsLocationButton
:
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