Previously, the post of the turnstile event was a side effect of the map.load event and would happen when the host app was started from a terminated state at the first initialization of MGLMapView. The turnstile event post was guarded with dispatch_once so that it would only ever be sent once during the lifecycle of the application after it started from the terminated state. This changes that behavior by: - Allowing a new turnstile event to be posted as much as once per day - Only triggering a map.view event when a map is initialized if the map is loaded outside of the 'background' application state - Sending a map.view event whenever a MGLMapView is instantiated and the application did become active or enters foreground iOS turnstile event sending behavior is now: - A map.view event is generated whenever a map is loaded and also when a map is shown again when the host app becomes active and moves into the foreground - Turnstile events are still triggered by mapviews and will be sent as frequently as once per day for a host app that is not terminated and also whenever a host app is terminated and restarted w
Mapbox GL Native
A library for embedding interactive, customizable vector maps into native applications on multiple platforms. It takes stylesheets that conform to the Mapbox GL Style Specification, applies them to vector tiles that conform to the Mapbox Vector Tile Specification, and renders them using OpenGL. Mapbox GL JS is the WebGL-based counterpart, designed for use on the Web.
The Mapbox GL ecosystem
This repository hosts the cross-platform Mapbox GL Native library, plus convenient SDKs for several platforms. The cross-platform library comes with a GLFW-based demo application for Ubuntu Linux and OS X. The SDKs target the usual languages on their respective platforms:
| SDK | Languages | Build status |
|---|---|---|
| Mapbox GL Native | C++14 | |
| Mapbox Android SDK | Java | |
| Mapbox iOS SDK | Objective-C or Swift | |
| Mapbox OS X SDK | Objective-C or Swift | |
| node-mapbox-gl-native | Node.js |
Additional Mapbox GL Native–based libraries are developed outside of this repository:
- React Native Mapbox GL for React Native applications on iOS and Android
- QMapboxGL for Qt-based applications
- Telerik’s Mapbox plugin for Apache Cordova Hybrid applications
- Telerik’s Mapbox plugin for NativeScript Hybrid applications
- Xamarin's Mapbox component for Xamarin Hybrid applications
If your platform or hybrid application framework isn’t listed here, consider embedding Mapbox GL JS using the standard Web capabilities on your platform.