diff options
author | Fabian Guerra <fabian.guerra@mapbox.com> | 2017-07-31 17:14:32 -0400 |
---|---|---|
committer | Fabian Guerra <fabian.guerra@mapbox.com> | 2017-08-01 13:47:59 -0400 |
commit | 7a0785665b855ce65c5a5a774a2a5447e2fba636 (patch) | |
tree | ba9e0ebe66daa063234c5da790e7fff145976a26 /platform/macos | |
parent | f10c9a68aaf6609bb9d792c52a199659156949ed (diff) | |
download | qtlocation-mapboxgl-7a0785665b855ce65c5a5a774a2a5447e2fba636.tar.gz |
[ios, macos] Add suport for stop localization.upstream/fabian-adapt-user-language-7031
Diffstat (limited to 'platform/macos')
-rw-r--r-- | platform/macos/CHANGELOG.md | 2 | ||||
-rw-r--r-- | platform/macos/app/MapDocument.m | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/platform/macos/CHANGELOG.md b/platform/macos/CHANGELOG.md index b9b87fee7a..1af3c03d68 100644 --- a/platform/macos/CHANGELOG.md +++ b/platform/macos/CHANGELOG.md @@ -2,7 +2,7 @@ ## 0.5.1 -* Added support to adapt Mapbox Streets–sourced layers for user preferred language. ([#9582](https://github.com/mapbox/mapbox-gl-native/pull/9582)) +* Added an MGLStyle.localizesLabels property, off by default, that localizes any Mapbox Streets–sourced symbol layer into the user’s preferred language. ([#9582](https://github.com/mapbox/mapbox-gl-native/pull/9582)) ## 0.5.0 diff --git a/platform/macos/app/MapDocument.m b/platform/macos/app/MapDocument.m index 0cda78b5fa..1d22295f50 100644 --- a/platform/macos/app/MapDocument.m +++ b/platform/macos/app/MapDocument.m @@ -344,7 +344,7 @@ NS_ARRAY_OF(id <MGLAnnotation>) *MBXFlattenedShapes(NS_ARRAY_OF(id <MGLAnnotatio } - (void)updateLabels { - [self.mapView.style setLocalizesLabels:YES]; + self.mapView.style.localizesLabels = _isLocalizingLabels; } - (void)applyPendingState { |