Commit a189d648 authored by 7c00's avatar 7c00

新增 iOS Marker#active 接口

parent 8ba0182c
......@@ -11,6 +11,7 @@
- (MAAnnotationView *)annotationView;
- (MAPointAnnotation *)annotation;
- (void)setActive:(BOOL)active;
- (void)setMapView:(AMapView *)mapView;
- (void)lockToScreen:(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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment