summaryrefslogtreecommitdiff
path: root/include/mbgl/ios
Commit message (Collapse)AuthorAgeFilesLines
* [core][iOS] Source iOS styles from default_stylesMinh Nguyễn2015-10-303-2/+40
| | | | | | | | | | Moved mbgl::util::default_styles to a more appropriate location, where iOS platform code can also find it. Moved -[MGLMapView bundledStyleURLs] (which is now deprecated) and the style switcher in iosapp to default_styles. Added a collection of convenience methods for getting style URLs. It makes little sense to layer an enum atop this, as MapKit does, because MGLMapView styles aren’t limited to this set. A good analogy is UIColor. This also makes for a good entry point for future runtime styling APIs. Introduced independent constants for each default style, because it’s more common to need access to a particular style than to iterate over them. This fact is apparent in the MGLStyle class, which now uses macros and assertions to ensure that it’s kept up-to-date with changes in default_styles. /ref #1462
* IB inspectable for allowing tiltMinh Nguyễn2015-10-231-0/+1
|
* [iOS] Removed long-unavailable APIsMinh Nguyễn2015-10-222-14/+0
|
* [iOS] Replaced styleID property with styleURL__ inspectableMinh Nguyễn2015-10-222-8/+6
| | | | | | The new styleURL__ inspectable property is carefully named to masquerade as a URL property in Interface Builder, even though IB supports no such thing. If the user enters an invalid URL into the “Style URL” inspectable, throw an error instead of silently setting the style to the default. This check is not required in -setStyleURL:, which takes a real NSURL.
* [ios] tweaks to match code style for 1a5c452 callout tap handlerJustin R. Miller2015-10-121-6/+5
|
* Forwards the SMCalloutView tap delegateMaciej Swic2015-10-121-0/+6
|
* [ios] update MGLMapView inline docs for v8 stylesJason Wray2015-10-021-2/+2
| | | | Fixes #2503
* [ios] describe radians↔degrees functionsJason Wray2015-10-021-0/+2
|
* [ios] fix unintentional omission of delegate sections & methods from docsJason Wray2015-10-021-94/+94
| | | | | | | | | | | | | | | | Adds these delegate methods that were missing: - `mapView:annotation:calloutAccessoryControlTapped:` - `mapView:didSelectAnnotation:` - `mapView:didDeselectAnnotation:` Adds these section headers that were missing: - Responding to Map Position Changes - Managing Annotations - Selecting Annotations Also reorders the sections by priority and grouping. Fixes #2514
* [ios] fixes #2490: add annotation image enabled propertyJustin R. Miller2015-10-021-0/+5
|
* [ios] fixes #2491: document MGLAnnotationImageJustin R. Miller2015-10-011-2/+18
|
* Remove implicit conversion from double → floatEric Horacek2015-09-191-1/+1
| | | Occurs when targeting a 32-bit architecture
* [iOS] Fix MGLPolyline documentation typoJason Wray2015-09-111-1/+1
|
* [iOS] Move radians/degrees conversion functions to MGLGeometry.hJason Wray2015-09-111-0/+11
|
* CameraOptionsMinh Nguyễn2015-09-073-11/+52
| | | | | | | | | | | | Plumbed camera options all the way through to MGLMapView. Added a method that lets you specify a direction in addition to center point and zoom level. Added Map::jumpTo() for parity with mapbox-gl-js. Replaced usage of Map::setLatLng() and Map::setLatLngZoom() with Map::jumpTo() or Map::easeTo() within MGLMapView. Replaced MGLMapView.pitch with MGLMapCamera for setting all supported degrees of freedom simultaneously. Simultaneously move and rotate with course. Support customizable timing functions on iOS. iosapp now persists an archived MGLMapCamera instead of separate viewpoint properties and also synchronizes user defaults on termination. This change implements persistence entirely in Objective-C, eliminating the use of the Objective-C++ implementation. Fixes #1643, fixes #1834. Ref #1581.
* fix missing docs parameterJustin R. Miller2015-09-041-1/+1
|
* refs #2039: add passthroughs for adding/removing overlaysJustin R. Miller2015-09-041-0/+33
|
* iOS perspective gesture supportJason Wray2015-08-261-0/+21
| | | | | | Drag two fingers upward to tilt the map. Implements #2116
* 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
|\ \