From a16e2e83f7c1e28856205e5920fd51441f036cb6 Mon Sep 17 00:00:00 2001 From: Julian Rex Date: Mon, 5 Mar 2018 23:30:20 -0500 Subject: [ios, macos] Made equivalent setSelectedAnnotations changes. --- platform/ios/CHANGELOG.md | 1 + platform/ios/src/MGLMapView.h | 3 -- platform/macos/CHANGELOG.md | 1 + platform/macos/app/Base.lproj/MainMenu.xib | 18 ++++++--- platform/macos/app/MapDocument.m | 60 ++++++++++++++++++++++++++++++ platform/macos/src/MGLMapView.h | 3 -- platform/macos/src/MGLMapView.mm | 5 +-- 7 files changed, 75 insertions(+), 16 deletions(-) diff --git a/platform/ios/CHANGELOG.md b/platform/ios/CHANGELOG.md index 95759a2f9b..adbbac240a 100644 --- a/platform/ios/CHANGELOG.md +++ b/platform/ios/CHANGELOG.md @@ -35,6 +35,7 @@ Mapbox welcomes participation and contributions from everyone. Please read [CONT * Fixed an issue preventing `MGLAnnotationImage.image` from being updated. ([#10372](https://github.com/mapbox/mapbox-gl-native/pull/10372)) * Improved performance of `MGLAnnotationView`-backed annotations that have `scalesWithViewingDistance` enabled. ([#10951](https://github.com/mapbox/mapbox-gl-native/pull/10951)) +* The `MGLMapView.selectedAnnotations` property (backed by `-[MGLMapView setSelectedAnnotations:]`) now selects annotations that are off-screen. ([#9790](https://github.com/mapbox/mapbox-gl-native/issues/9790)) ### Map snapshots diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h index 52d28d871c..22fa58643d 100644 --- a/platform/ios/src/MGLMapView.h +++ b/platform/ios/src/MGLMapView.h @@ -1206,9 +1206,6 @@ MGL_EXPORT IB_DESIGNABLE /** Selects an annotation and displays a callout view for it. - If the given annotation is not visible within the current viewport, this - method has no effect. - @param annotation The annotation object to select. @param animated If `YES`, the callout view is animated into position. */ diff --git a/platform/macos/CHANGELOG.md b/platform/macos/CHANGELOG.md index 342262c1db..948c2f2c09 100644 --- a/platform/macos/CHANGELOG.md +++ b/platform/macos/CHANGELOG.md @@ -33,6 +33,7 @@ * The `-[MGLMapView convertRect:toCoordinateBoundsFromView:]` method and the `MGLMapView.visibleCoordinateBounds` property’s getter now indicate that the coordinate bounds straddles the antimeridian by extending one side beyond ±180 degrees longitude. ([#11265](https://github.com/mapbox/mapbox-gl-native/pull/11265)) * Feature querying results now account for the `MGLSymbolStyleLayer.circleStrokeWidth` property. ([#10897](https://github.com/mapbox/mapbox-gl-native/pull/10897)) * Removed methods, properties, and constants that had been deprecated as of v0.6.1. ([#11205](https://github.com/mapbox/mapbox-gl-native/pull/11205)) +* The `MGLMapView.selectedAnnotations` property (backed by `-[MGLMapView setSelectedAnnotations:]`) now selects annotations that are off-screen. ([#9790](https://github.com/mapbox/mapbox-gl-native/issues/9790)) ## v0.6.1 - January 16, 2018 diff --git a/platform/macos/app/Base.lproj/MainMenu.xib b/platform/macos/app/Base.lproj/MainMenu.xib index 4cf8d87653..64d776832f 100644 --- a/platform/macos/app/Base.lproj/MainMenu.xib +++ b/platform/macos/app/Base.lproj/MainMenu.xib @@ -545,7 +545,13 @@ - + + + + + + + @@ -664,7 +670,7 @@ CA - + @@ -740,7 +746,7 @@ CA - + @@ -748,11 +754,11 @@ CA - + - + @@ -891,7 +897,7 @@ CA - +