summaryrefslogtreecommitdiff
path: root/include/mbgl/ios
Commit message (Collapse)AuthorAgeFilesLines
* GL is the library, SDK is the productJustin R. Miller2015-08-212-1/+1
|
* MGLUserTrackingModeFollowWithCourseMinh Nguyễn2015-08-142-2/+4
| | | | | | Added course-tracking. However, rotation has to happen atomically without animation until #1834 is fixed. Fixes #1605.
* fixes #2044: add -showAnnotations:animated:Justin R. Miller2015-08-121-0/+7
|
* Add more mapView!Jason Wray2015-07-311-0/+2
|
* Document iOS region change delegate methodsJason Wray2015-07-311-3/+12
| | | | With #1026 the region delegate methods work reliably and as expected. This commit adds `mapView:regionWillChangeAnimated:`, `mapViewRegionIsChanging:`, and `mapView:regionDidChangeAnimated:` to the official documentation.
* Removed documentation for unavailable methodMinh Nguyễn2015-07-081-4/+0
| | | | So it doesn’t show up in the generated docset.
* explicitly bring in headerJustin R. Miller2015-07-081-0/+2
|
* fix nullabilityJustin R. Miller2015-07-081-1/+1
|
* nullability for MGLAnnotationImageJustin R. Miller2015-07-081-0/+4
|
* Cocoa custom marker imagery APIJustin R. Miller2015-07-083-1/+31
|
* fixes #1770: rename & expose compass, logo, and attributionJustin R. Miller2015-07-011-0/+9
|
* Rationalize *RenderingMap notificationsJohn Firebaugh2015-06-301-0/+6
|
* Fit to coordinatesMinh Nguyễn2015-06-261-0/+7
| | | | 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.
* Implemented -setVisibleCoordinateBounds:Minh Nguyễn2015-06-251-3/+5
| | | Followup to #1783: Implemented the non-animated version of fit to bounds and makes it a KVO-compliant property.
* Test fit to bounds; added MGLCoordinateBounds functionsMinh Nguyễn2015-06-255-15/+90
| | | | 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.
* Fit to bounds with paddingMinh Nguyễn2015-06-251-0/+6
| | | | Each side of the bounding box is specified independently, allowing more flexibility than the offset + padding construct supported in mapbox/mapbox-gl-js’ Camera.
* Reimplemented fit to boundsMinh Nguyễn2015-06-252-0/+15
| | | | 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.
* Merge branch 'release-v0.4.0'Justin R. Miller2015-06-192-3/+0
|\
| * refs #1759: remove header docs for now-unavailable APIJustin R. Miller2015-06-192-3/+0
| |
| * Audited shape annotation classes for nullabilityMinh Nguyễn2015-06-177-3/+27
| | | | | | Audited various classes to match MapKit. Also, `-[MGLAnnotation title]` is nullable because titles are optional for shape annotations.
| * Corrected bundledStyleURLs doc commentMinh Nguyễn2015-06-171-1/+1
| | | | | | | | Per https://github.com/mapbox/mapbox-gl-native/commit/f46328655e027bf490692fcde4aab770912aac8d#commitcomment-11695358.
* | Lightweight genericsMinh Nguyễn2015-06-172-6/+26
| | | | | | | | | | | | 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 shape annotation classes for nullabilityMinh Nguyễn2015-06-167-3/+27
| | | | | | Audited various classes to match MapKit. Also, `-[MGLAnnotation title]` is nullable because titles are optional for shape annotations.
* | Corrected bundledStyleURLs doc commentMinh Nguyễn2015-06-161-1/+1
|/ | | | Per https://github.com/mapbox/mapbox-gl-native/commit/f46328655e027bf490692fcde4aab770912aac8d#commitcomment-11695358.
* squash of #1655: shape annotations support for core & iOSJustin R. Miller2015-06-1510-3/+151
|
* Restored nullability compatibility shimMinh Nguyễn2015-06-131-0/+8
| | | | This reverts commit a425df0f95f5f0088444b8ebc67708756ff962aa for compatibility with Xcode 6.1.
* Audited headers for nullabilityMinh Nguyễn2015-06-116-26/+52
| | | | | | | | 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.
* Defailablize init methodsMinh Nguyễn2015-05-271-2/+2
| | | | 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.
* Merge pull request #1561 from 1ec5-style-id-1500Minh Nguyễn2015-05-212-4/+5
|\ | | | | | | mapID → styleID
| * mapID → styleIDMinh Nguyễn2015-05-142-4/+5
| | | | | | | | | | | | 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.
* | Made accessToken uninspectableMinh Nguyễn2015-05-211-1/+0
| |
* | Merge branch '1ec5-plist-1535'Minh Nguyễn2015-05-202-17/+12
|\ \
| * | Removed accessToken from MGLMapView public APIMinh Nguyễn2015-05-201-16/+11
| | | | | | | | | | | | With helpful instructions for migrating to Info.plist or the `MGLAccountManager` API.
| * | Obsoleted +setMapboxMetricsEnabledSettingShownInApp:Minh Nguyễn2015-05-131-1/+1
| | | | | | | | | | | | 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.
| * | Grab access token and other app-wide data from Info.plistMinh Nguyễn2015-05-131-1/+1
| |/ | | | | | | | | | | 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.
| * add header docs for new MGLAccountManager; reorgJustin R. Miller2015-05-121-4/+23
| |
| * fix spacing, ordering, importsJustin R. Miller2015-05-122-2/+4
| |
| * Merge branch 'master' into 1ec5-metrics-opt-way-outMinh Nguyễn2015-05-121-0/+2
| |\
| | * #1516 - Adding public setter method to MGLAccountManager.h. Fixing example ↵Brad Leege2015-05-121-0/+1
| | | | | | | | | | | | signal opt out in MBXAppDelegate.
| | * #1516 - Renaming setShowsOptOutInApp to ↵Brad Leege2015-05-121-1/+1
| | | | | | | | | | | | setMapboxMetricsEnabledSettingShownInApp for app consistency. Implementing wordsmith edits to NSAssert text. Removing technical debt.
| | * #1516 - Adding explicit checks for developer implementation of user Opt Out ↵Brad Leege2015-05-111-0/+1
| | | | | | | | | | | | functionality
| * | Consolidated logic for pausing/resuming MGLMapboxEventsMinh Nguyễn2015-05-121-0/+3
| | | | | | | | | | | | `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.
| * | Folded MGLMetricsLocationManager into MGLMapboxEventsMinh Nguyễn2015-05-121-4/+0
| | | | | | | | | | | | `MGLMetricsLocationManager` was nothing but overhead for `CLLocationManager`. Also removed an unused method.
| * | Refactored MGLMapboxEvents for better data managementMinh Nguyễn2015-05-122-13/+0
| |/ | | | | | | 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.
* | Removed “private” headerMinh Nguyễn2015-05-181-14/+0
| | | | | | | | | | | | 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.
* | Privatized MGLMapboxEventsMinh Nguyễn2015-05-181-60/+0
| | | | | | | | `-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.
* | Merge pull request #1573 from mapbox/1ec5-designable-redux-1568Minh Nguyễn2015-05-161-0/+1
|\ \ | | | | | | Restore IB designable support
| * | Revert "refs #1568: remove IBDesignable support for now"Minh Nguyễn2015-05-161-0/+1
| | | | | | | | | | | | | | | | | | This reverts commit 5a918cbb2c97271b3144fb8aace06f6fbdf30cb9. The designable works fine because of #1469. Fixes #1568.
* | | Properly fail to load the mapMinh Nguyễn2015-05-161-0/+2
|/ / | | | | | | 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.
* | refs #1568: remove IBDesignable support for nowJustin R. Miller2015-05-151-1/+0
| |