Skip to content

Commit

Permalink
Fix #167
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuxiang committed Feb 1, 2018
1 parent a80c246 commit ceedf50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions lib/ios/AMap3D/maps/AMapMarker.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,13 @@ - (void)setCoordinate:(CLLocationCoordinate2D)coordinate {

- (void)setActive:(BOOL)active {
_active = active;
if (active) {
[_mapView selectAnnotation:_annotation animated:YES];
} else {
[_mapView deselectAnnotation:_annotation animated:YES];
}
dispatch_async(dispatch_get_main_queue(), ^{
if (active) {
[_mapView selectAnnotation:_annotation animated:YES];
} else {
[_mapView deselectAnnotation:_annotation animated:YES];
}
});
}

- (void)setInfoWindowDisabled:(BOOL)disabled {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-amap3d",
"version": "0.12.0",
"version": "0.12.1",
"description": "react-native 高德地图组件,支持 Android + iOS",
"author": "Qiu Xiang <[email protected]>",
"license": "MIT",
Expand Down

0 comments on commit ceedf50

Please sign in to comment.