Google recently announced the release of its Google Maps SDK for iOS 1.11. The new release includes bitcode support, additional events, and a number of features previously limited to the Android SDK. The release is available now, and Google encourages developers to update to the new SDK as soon as possible. For a complete list of updates and changes, check out the release notes.
Bitcode is now included in the SDK binary. Bitcode constitutes an intermediate representation of a compiled program. In other words, the Bitcode version of an app can be uploaded to the Apple Store where Apple optimizes the app for specific devices at provisioning. Bitcode enables Apple to re-optimize an app to accommodate future adds/changes without the developer submitting a new version to the store.
Google added two new events: didLongPressInfoWindowOfMarker and didCloseInforWindowOfMarker. The long press event utilizes iOS's long touch feature (the ability to tap and hold on a screen to enable additional features) for enhanced map interaction within an iOS enabled app. The close event enables programmatic zoom out after a user has zoomed in on a specific marker or point on a map. In addition to the new events, Google added start and finish rendering events to GMSMapViewDelegate and GMSPanoramaViewDelegate protocols. The start event is prompted upon tile request or label rendering. The finish event is prompted upon rendering completion.
Finally, a number of new features were added to the new release. While the entire list of both features and bug fixes can be viewed in the release notes, features of particular interest include:
- setting ground overview opacity with alpha value,
- polygon hole support,
- increased camera tilt range at high zoom, and
- additional Places autocomplete functionality.
To work with Google Maps on iOS, developers must first download the Google Maps SDK for iOS and obtain an API key. For help, visit the Getting Started site.