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
b6904311
Commit
b6904311
authored
Jun 05, 2017
by
Qiu Xiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整接口字段,使其更合理、一致
parent
22538e45
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
AMapMarkerManager.kt
...c/main/java/cn/qiuxiang/react/amap3d/AMapMarkerManager.kt
+2
-2
Marker.js
components/Marker.js
+5
-5
marker.js
example/src/marker.js
+1
-1
No files found.
android/src/main/java/cn/qiuxiang/react/amap3d/AMapMarkerManager.kt
View file @
b6904311
...
@@ -64,7 +64,7 @@ internal class AMapMarkerManager : ViewGroupManager<AMapMarker>() {
...
@@ -64,7 +64,7 @@ internal class AMapMarkerManager : ViewGroupManager<AMapMarker>() {
marker
.
draggable
=
draggable
marker
.
draggable
=
draggable
}
}
@ReactProp
(
name
=
"
selected
"
)
@ReactProp
(
name
=
"
active
"
)
fun
setSelected
(
marker
:
AMapMarker
,
active
:
Boolean
)
{
fun
setSelected
(
marker
:
AMapMarker
,
active
:
Boolean
)
{
marker
.
active
=
active
marker
.
active
=
active
}
}
...
@@ -74,7 +74,7 @@ internal class AMapMarkerManager : ViewGroupManager<AMapMarker>() {
...
@@ -74,7 +74,7 @@ internal class AMapMarkerManager : ViewGroupManager<AMapMarker>() {
marker
.
setIcon
(
icon
)
marker
.
setIcon
(
icon
)
}
}
@ReactProp
(
name
=
"
showsInfoWindow
"
)
@ReactProp
(
name
=
"
infoWindowEnabled
"
)
fun
setEnabledInfoWindow
(
marker
:
AMapMarker
,
enabled
:
Boolean
)
{
fun
setEnabledInfoWindow
(
marker
:
AMapMarker
,
enabled
:
Boolean
)
{
marker
.
infoWindowEnabled
=
enabled
marker
.
infoWindowEnabled
=
enabled
}
}
...
...
components/Marker.js
View file @
b6904311
...
@@ -34,7 +34,7 @@ class Marker extends Component {
...
@@ -34,7 +34,7 @@ class Marker extends Component {
]),
]),
/**
/**
* 透明度
* 透明度
[0, 1]
*/
*/
opacity
:
PropTypes
.
number
,
opacity
:
PropTypes
.
number
,
...
@@ -54,14 +54,14 @@ class Marker extends Component {
...
@@ -54,14 +54,14 @@ class Marker extends Component {
zIndex
:
PropTypes
.
number
,
zIndex
:
PropTypes
.
number
,
/**
/**
* 是否选中
* 是否选中
,选中时将显示信息窗体,一个地图只能有一个正在选中的 marker
*/
*/
selected
:
PropTypes
.
bool
,
active
:
PropTypes
.
bool
,
/**
/**
* 是否
显示信息窗体
* 是否
启用信息窗体,该属性只能开始时设置一次
*/
*/
showsInfoWindow
:
PropTypes
.
bool
,
infoWindowEnabled
:
PropTypes
.
bool
,
/**
/**
* 点击事件
* 点击事件
...
...
example/src/marker.js
View file @
b6904311
...
@@ -38,7 +38,7 @@ export default class MarkerExample extends Component {
...
@@ -38,7 +38,7 @@ export default class MarkerExample extends Component {
}}
}}
/
>
/
>
<
Marker
<
Marker
selected
active
icon
=
'red'
icon
=
'red'
infoWindowWidth
=
{
100
}
infoWindowWidth
=
{
100
}
coordinate
=
{{
coordinate
=
{{
...
...
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