mapbox / mapbox-plugins-ios

Experimental plugins to supercharge your maps ⚡️
ISC License
7 stars 8 forks source link

Localization plugin #2

Closed 1ec5 closed 7 years ago

1ec5 commented 7 years ago

How about a plugin that uses runtime styling to automatically localize map labels into the user’s preferred language? There’s already a robust implementation of this feature in Objective-C targeting the macOS SDK that’s entirely compatible with the iOS SDK:

https://github.com/mapbox/mapbox-gl-native/blob/cc1ea759a681cadcfd06fd7bdda79ca6deb38c62/platform/macos/app/MapDocument.m#L346-L393 https://github.com/mapbox/mapbox-gl-native/blob/cc1ea759a681cadcfd06fd7bdda79ca6deb38c62/platform/macos/app/MGLVectorSource+MBXAdditions.m

mapbox/mapbox-gl-native#7031 tracks folding that implementation into the iOS and macOS SDKs proper. In the meantime, the plugin could be useful for developers whose applications ship in multiple markets on the App Store.

mapbox/mapbox-plugins-android#36 is the equivalent on Android.

/cc @ericrwolfe @lukasmartinelli

1ec5 commented 7 years ago

Previously mapbox/ios-sdk-examples#36.

jmkiley commented 7 years ago

Added to the Mapbox iOS SDK with https://github.com/mapbox/mapbox-gl-native/pull/9582. Closing, but reopen if needed.