| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
If an OpenGL context couldn’t be created, there’s just no point to soldiering on. Things are going to fall apart pretty quickly anyways. Assert and be done with it.
|
| |
|
| |
|
|
|
|
| |
rejections
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
The callback will be called when any of the resources requested
from the network failed to load.
There is not recovery implemented yet, so the closest thing to
reseting the Map object and reloading all the resources would
be setting a new style.
|
|\
| |
| |
| | |
mapID → styleID
|
| |
| |
| |
| |
| |
| | |
Deprecated `-mapID` and `-setMapID:` to accurately reflect the APIs the ID is used for. Marked the property unavailable but reimplemented its getter and setter to assert with helpful messages.
Fixes #1500.
|
| | |
|
|\ \ |
|
| | |
| | |
| | |
| | | |
With helpful instructions for migrating to Info.plist or the `MGLAccountManager` API.
|
| | |
| | |
| | |
| | | |
Made `+[MGLAccountManager setMapboxMetricsEnabledSettingShownInApp:]` unavailable, with a message explaining what to do instead. Removed a commented-out call to that method. Only the environment for an access token if one hasn’t already been set in Info.plist.
|
| | |
| | |
| | |
| | |
| | |
| | | |
That way there’s no ambiguity about when you should call things like `+[MGLAccountManager setMapboxMetricsEnabledSettingShownInApp:]`. In fact, that method is now deprecated because it’s so easy to call in the wrong place.
Fixes #1535.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Instead of exposing these methods in a private header that winds up triggering warnings publicly, just redeclare the methods in a category. Since this is a test app, we’ll catch any issues that arise from refactoring simply by testing.
Fixes #1579.
|
| | |
| | |
| | |
| | | |
`-pauseMetricsCollection` and `-resumeMetricsCollection` were originally introduced to mitigate concerns around battery usage, but `MGLMapboxEvents` has since evolved to tread much lighter on the battery. There’s no longer any need for the client to call these methods directly. The iOS test project now includes MGLMapboxEvents.h explicitly to avoid having to package a header that will go unused.
|
|\ \ \
| | | |
| | | | |
Restore IB designable support
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This reverts commit 5a918cbb2c97271b3144fb8aace06f6fbdf30cb9. The designable works fine because of #1469.
Fixes #1568.
|
|/ / /
| | |
| | |
| | | |
A typo in a selector literal meant that `-[MGLMapViewDelegate mapViewDidFailLoadingMap:withError:]` would never be sent to delegates even if `MGLMapView` had called it. Along for the ride, create a proper `NSError` to pass into that callback, and an error domain for that error.
|
|\ \ \
| |_|/
|/| | |
|
| | | |
|
| | |
| | |
| | |
| | | |
refactor metrics system to immediately jettison data & tracking when users opt out
|
| | |
| | |
| | | |
Adding Getter Method
|
| | |
| | |
| | | |
Explicit Opt Out Checking
|
| | | |
|
| | |
| | |
| | |
| | | |
These were used only for prerendered textures, which were removed.
|
| | | |
|
| |/
|/|
| |
| |
| | |
There are no longer any requests made that don't have a run loop to
dispatch back to.
|
| | |
|
| | |
|
|\ \ |
|
| | |
| | |
| | |
| | | |
signal opt out in MBXAppDelegate.
|
| |\ \
| | | |
| | | | |
Explicit Opt Out Checking
|
| | | |
| | | |
| | | |
| | | | |
setMapboxMetricsEnabledSettingShownInApp for app consistency. Implementing wordsmith edits to NSAssert text. Removing technical debt.
|
| | |/
| | |
| | |
| | | |
functionality
|
| | |
| | |
| | |
| | | |
`MGLMapboxEvents` automatically recreates its location manager when the host app is reauthorized for Location Services. Added some redundancy to ensure that there is no location manager when either Location Services or Mapbox Metrics is off.
|
| | |
| | |
| | |
| | | |
`MGLMetricsLocationManager` was nothing but overhead for `CLLocationManager`. Also removed an unused method.
|
|/ /
| |
| |
| | |
The shared `MGLMapboxEvents` now owns the only instance of `MGLMetricsLocationManager`. It also owns a `MGLMapboxEventsData` object, to which all user-specific data has been relegated. This object can be built up and torn down on the fly, whenever the opt-out preference is toggled. `MGLMapboxEvents` has also given up knowledge of the access token and now queries `MGLAccountManager` for that information, which `MGLMapView` keeps up-to-date.
|
|\ \
| | |
| | | |
Android GL Crash
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Initialise NativeMapView's EGL variables before Map
Fix hang
Add check for double pause
Add test for double pause
|
| |/
|/| |
|
| |
| |
| |
| |
| | |
Compiler was complaining about shadowed variable after
macro expansion.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Makes the life of people using Linux as development environment way
easier.
Just press 's' to cycle through 3 different styles.
|
|/ |
|