@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.
@@ -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
- if (annotation.markerView.centerOnPress) {
1062
- [_mapView setCenterCoordinate:annotation.coordinate animated:YES];
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lugg/maps",
3
- "version": "1.0.0-beta.6",
3
+ "version": "1.0.0-beta.7",
4
4
  "description": "Universal maps for React Native.",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",