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
a189d648
Commit
a189d648
authored
Dec 22, 2017
by
7c00
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增 iOS Marker#active 接口
parent
8ba0182c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
AMapMarker.h
ios/maps/AMapMarker.h
+1
-0
AMapMarkerManager.m
ios/maps/AMapMarkerManager.m
+7
-0
No files found.
ios/maps/AMapMarker.h
View file @
a189d648
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
-
(
MAAnnotationView
*
)
annotationView
;
-
(
MAAnnotationView
*
)
annotationView
;
-
(
MAPointAnnotation
*
)
annotation
;
-
(
MAPointAnnotation
*
)
annotation
;
-
(
void
)
setActive
:(
BOOL
)
active
;
-
(
void
)
setMapView
:(
AMapView
*
)
mapView
;
-
(
void
)
setMapView
:(
AMapView
*
)
mapView
;
-
(
void
)
lockToScreen
:(
int
)
x
y
:(
int
)
y
;
-
(
void
)
lockToScreen
:(
int
)
x
y
:(
int
)
y
;
...
...
ios/maps/AMapMarkerManager.m
View file @
a189d648
...
@@ -40,4 +40,11 @@ RCT_EXPORT_METHOD(lockToScreen:(nonnull NSNumber *)reactTag x:(int)x y:(int)y) {
...
@@ -40,4 +40,11 @@ RCT_EXPORT_METHOD(lockToScreen:(nonnull NSNumber *)reactTag x:(int)x y:(int)y) {
}];
}];
}
}
RCT_EXPORT_METHOD
(
active
:
(
nonnull
NSNumber
*
)
reactTag
)
{
[
self
.
bridge
.
uiManager
addUIBlock
:
^
(
__unused
RCTUIManager
*
uiManager
,
NSDictionary
<
NSNumber
*
,
UIView
*>
*
viewRegistry
)
{
AMapMarker
*
marker
=
(
AMapMarker
*
)
viewRegistry
[
reactTag
];
[
marker
setActive
:
true
];
}];
}
@end
@end
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