@lugg/maps 1.0.0-beta.6 → 1.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ios/core/AppleMapProvider.mm +10 -8
- package/package.json +1 -1
|
@@ -900,12 +900,6 @@ static MKPointOfInterestCategory poiCategoryFromString(NSString *string) {
|
|
|
900
900
|
LuggMarkerView *markerView = annotation.markerView;
|
|
901
901
|
|
|
902
902
|
if (markerView) {
|
|
903
|
-
if (!_isProgrammaticSelect) {
|
|
904
|
-
CGPoint point = [_mapView convertCoordinate:markerView.coordinate
|
|
905
|
-
toPointToView:_mapView];
|
|
906
|
-
[markerView emitPressEventWithPoint:point];
|
|
907
|
-
}
|
|
908
|
-
|
|
909
903
|
LuggCalloutView *calloutView = markerView.calloutView;
|
|
910
904
|
if (calloutView && !calloutView.bubbled && calloutView.hasCustomContent) {
|
|
911
905
|
[self showNonBubbledCallout:markerView];
|
|
@@ -1058,8 +1052,16 @@ static MKPointOfInterestCategory poiCategoryFromString(NSString *string) {
|
|
|
1058
1052
|
if ([view.annotation isKindOfClass:[AppleMarkerAnnotation class]]) {
|
|
1059
1053
|
AppleMarkerAnnotation *annotation =
|
|
1060
1054
|
(AppleMarkerAnnotation *)view.annotation;
|
|
1061
|
-
|
|
1062
|
-
|
|
1055
|
+
LuggMarkerView *markerView = annotation.markerView;
|
|
1056
|
+
|
|
1057
|
+
if (markerView) {
|
|
1058
|
+
CGPoint point = [_mapView convertCoordinate:markerView.coordinate
|
|
1059
|
+
toPointToView:_mapView];
|
|
1060
|
+
[markerView emitPressEventWithPoint:point];
|
|
1061
|
+
|
|
1062
|
+
if (markerView.centerOnPress) {
|
|
1063
|
+
[_mapView setCenterCoordinate:annotation.coordinate animated:YES];
|
|
1064
|
+
}
|
|
1063
1065
|
}
|
|
1064
1066
|
}
|
|
1065
1067
|
}
|