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
9384e0a0
Commit
9384e0a0
authored
Aug 07, 2017
by
7c00
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve #26
parent
2b8b18a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
AMapMarker.h
ios/AMapMarker.h
+1
-0
AMapViewManager.m
ios/AMapViewManager.m
+7
-0
No files found.
ios/AMapMarker.h
View file @
9384e0a0
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
@property
(
nonatomic
,
copy
)
RCTBubblingEventBlock
onDragEnd
;
@property
(
nonatomic
,
copy
)
RCTBubblingEventBlock
onDragEnd
;
-
(
BOOL
)
active
;
-
(
BOOL
)
active
;
-
(
void
)
setActive
:(
BOOL
)
active
;
-
(
MAAnnotationView
*
)
annotationView
;
-
(
MAAnnotationView
*
)
annotationView
;
-
(
void
)
setMapView
:(
AMapView
*
)
mapView
;
-
(
void
)
setMapView
:(
AMapView
*
)
mapView
;
-
(
void
)
updateActive
;
-
(
void
)
updateActive
;
...
...
ios/AMapViewManager.m
View file @
9384e0a0
...
@@ -126,6 +126,13 @@ RCT_EXPORT_METHOD(animateTo:(nonnull NSNumber *)reactTag params:(NSDictionary *)
...
@@ -126,6 +126,13 @@ RCT_EXPORT_METHOD(animateTo:(nonnull NSNumber *)reactTag params:(NSDictionary *)
}
}
}
}
-
(
void
)
mapView
:
(
MAMapView
*
)
mapView
didDeselectAnnotationView
:
(
MAAnnotationView
*
)
view
{
if
([
view
.
annotation
isKindOfClass
:[
AMapMarker
class
]])
{
AMapMarker
*
marker
=
(
AMapMarker
*
)
view
.
annotation
;
marker
.
active
=
NO
;
}
}
-
(
void
)
mapView
:
(
MAMapView
*
)
mapView
didAnnotationViewCalloutTapped
:
(
MAAnnotationView
*
)
view
{
-
(
void
)
mapView
:
(
MAMapView
*
)
mapView
didAnnotationViewCalloutTapped
:
(
MAAnnotationView
*
)
view
{
if
([
view
.
annotation
isKindOfClass
:[
AMapMarker
class
]])
{
if
([
view
.
annotation
isKindOfClass
:[
AMapMarker
class
]])
{
AMapMarker
*
marker
=
(
AMapMarker
*
)
view
.
annotation
;
AMapMarker
*
marker
=
(
AMapMarker
*
)
view
.
annotation
;
...
...
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