| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Added course-tracking. However, rotation has to happen atomically without animation until #1834 is fixed.
Fixes #1605.
|
| |
|
| |
|
|
|
|
| |
With #1026 the region delegate methods work reliably and as expected. This commit adds `mapView:regionWillChangeAnimated:`, `mapViewRegionIsChanging:`, and `mapView:regionDidChangeAnimated:` to the official documentation.
|
|
|
|
| |
So it doesn’t show up in the generated docset.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Whoever determined the boundaries of the District of Columbia did not have fit-to-bounds implementations in mind. With this change, shapes that are not unrotated rectangles fit much, much better.
|
|
|
| |
Followup to #1783: Implemented the non-animated version of fit to bounds and makes it a KVO-compliant property.
|
|
|
|
| |
Added a bunch of functions to work with MGLCoordinateBounds in a separate header analogous to MKGeometry.h. Added resolution-independent tests for common fit to bounds scenarios.
|
|
|
|
| |
Each side of the bounding box is specified independently, allowing more flexibility than the offset + padding construct supported in mapbox/mapbox-gl-js’ Camera.
|
|
|
|
| |
The new implementation is now public and takes advantage of MGLCoordinateBounds. It is re-ported from `Camera.prototype.fitBounds()` in mapbox/mapbox-gl-js to ensure correct behavior. A new function, MGLCoordinateBoundsMake(), makes it easier to create an MGLCoordinateBounds for use with this method.
|
|\ |
|
| | |
|
| |
| |
| | |
Audited various classes to match MapKit. Also, `-[MGLAnnotation title]` is nullable because titles are optional for shape annotations.
|
| |
| |
| |
| | |
Per https://github.com/mapbox/mapbox-gl-native/commit/f46328655e027bf490692fcde4aab770912aac8d#commitcomment-11695358.
|
| |
| |
| |
| |
| |
| | |
Added lightweight generics annotations to collection-typed method and protocol signatures to streamline usage of these members in Swift. Lightweight generic type specifiers are wrapped in conditionally-compiled macros for compatibility with Xcode 6.x.
Manually preprocess the NS_*_OF() macros in a temporary copy of each header before appledoc sees the headers. Also removed the --ignore flag because we no longer have a private headers folder under include/mbgl/ios/.
|
| |
| |
| | |
Audited various classes to match MapKit. Also, `-[MGLAnnotation title]` is nullable because titles are optional for shape annotations.
|
|/
|
|
| |
Per https://github.com/mapbox/mapbox-gl-native/commit/f46328655e027bf490692fcde4aab770912aac8d#commitcomment-11695358.
|
| |
|
|
|
|
| |
This reverts commit a425df0f95f5f0088444b8ebc67708756ff962aa for compatibility with Xcode 6.1.
|
|
|
|
|
|
|
|
| |
Added some nullability qualifiers in method implementation selectors for consistency with declarations.
The user dot view now has a non-zero size. Previously only its layer was sized properly. Also resolved some pedantic warnings about missing designated initializer overrides.
Xcode 6.3 or above is now required for building this project.
|
|
|
|
| |
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.
|
|\
| |
| |
| | |
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.
|
| | |
|
| | |
|
| |\ |
|
| | |
| | |
| | |
| | | |
signal opt out in MBXAppDelegate.
|
| | |
| | |
| | |
| | | |
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.
|
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|