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
0d736b3e
Commit
0d736b3e
authored
Aug 07, 2017
by
Qiu Xiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 Android Marker#clickable 接口
parent
f687c7cb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
AMapMarker.kt
android/src/main/java/cn/qiuxiang/react/amap3d/AMapMarker.kt
+8
-0
AMapMarkerManager.kt
...c/main/java/cn/qiuxiang/react/amap3d/AMapMarkerManager.kt
+5
-0
No files found.
android/src/main/java/cn/qiuxiang/react/amap3d/AMapMarker.kt
View file @
0d736b3e
...
@@ -71,6 +71,12 @@ class AMapMarker(context: Context) : ReactViewGroup(context) {
...
@@ -71,6 +71,12 @@ class AMapMarker(context: Context) : ReactViewGroup(context) {
marker
?.
isDraggable
=
value
marker
?.
isDraggable
=
value
}
}
var
clickable_
:
Boolean
=
true
set
(
value
)
{
field
=
value
marker
?.
isClickable
=
value
}
var
active
:
Boolean
=
false
var
active
:
Boolean
=
false
set
(
value
)
{
set
(
value
)
{
field
=
value
field
=
value
...
@@ -100,6 +106,8 @@ class AMapMarker(context: Context) : ReactViewGroup(context) {
...
@@ -100,6 +106,8 @@ class AMapMarker(context: Context) : ReactViewGroup(context) {
}
else
{
}
else
{
marker
?.
hideInfoWindow
()
marker
?.
hideInfoWindow
()
}
}
marker
?.
isClickable
=
this
.
clickable_
}
}
fun
setIcon
(
icon
:
String
)
{
fun
setIcon
(
icon
:
String
)
{
...
...
android/src/main/java/cn/qiuxiang/react/amap3d/AMapMarkerManager.kt
View file @
0d736b3e
...
@@ -67,6 +67,11 @@ internal class AMapMarkerManager : ViewGroupManager<AMapMarker>() {
...
@@ -67,6 +67,11 @@ internal class AMapMarkerManager : ViewGroupManager<AMapMarker>() {
marker
.
draggable
=
draggable
marker
.
draggable
=
draggable
}
}
@ReactProp
(
name
=
"clickable"
)
fun
setClickable
(
marker
:
AMapMarker
,
clickable
:
Boolean
)
{
marker
.
clickable_
=
clickable
}
@ReactProp
(
name
=
"active"
)
@ReactProp
(
name
=
"active"
)
fun
setSelected
(
marker
:
AMapMarker
,
active
:
Boolean
)
{
fun
setSelected
(
marker
:
AMapMarker
,
active
:
Boolean
)
{
marker
.
active
=
active
marker
.
active
=
active
...
...
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