summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLMapView.h
Commit message (Collapse)AuthorAgeFilesLines
* [android][ios][macOS] Implement bindings for `Map::cameraForGeometry`. On ↵Asheem Mamoowala2017-10-091-0/+14
| | | | macOS, also added -[MGLMapView setCamera: withDuration: animationTimingFunction: edgePadding: completionHandler:] for parity with iOS
* [ios] Undocument deprecated style class methodsJason Wray2017-10-021-12/+4
|
* [ios] Expose -showAttribution: publicly as an IBActionJason Wray2017-10-021-0/+12
|
* Merge branch 'release-ios-v3.6.0-android-v5.1.0' into master.upstream/fabian-merge-release-ios-v3.6.0-finalFabian Guerra2017-09-271-12/+34
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # circle.yml # platform/android/CHANGELOG.md # platform/android/MapboxGLAndroidSDK/gradle.properties # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/AnnotationManager.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java # platform/android/dependencies.gradle # platform/default/mbgl/storage/offline_database.cpp # platform/ios/CHANGELOG.md # platform/ios/Mapbox-iOS-SDK-nightly-dynamic.podspec # platform/ios/Mapbox-iOS-SDK-symbols.podspec # platform/ios/Mapbox-iOS-SDK.podspec # platform/ios/app/Main.storyboard # platform/ios/src/MGLMapView.mm # src/mbgl/programs/attributes.hpp # src/mbgl/renderer/painter_fill.cpp # src/mbgl/tile/geometry_tile.hpp # src/mbgl/tile/geometry_tile_worker.cpp # src/mbgl/tile/raster_tile.cpp # src/mbgl/tile/raster_tile.hpp # src/mbgl/tile/raster_tile_worker.cpp # test/tile/annotation_tile.test.cpp # test/tile/geojson_tile.test.cpp # test/tile/raster_tile.test.cpp # test/tile/vector_tile.test.cpp
| * [ios] Implicitly enable showsUserLocation when enabling the heading indicatorJason Wray2017-09-071-2/+2
| |
| * [ios] Add setShowsUserHeadingIndicator and validateUserHeadingUpdatingJason Wray2017-09-071-0/+17
| |
| * [ios, macos] Make minimumZoomLevel and maximumZoomLevel IBInspectable. (#9729)Fabian Guerra Soto2017-08-301-2/+2
| | | | | | | | | | | | * [ios, macos] Make minimumZoomLevel and maximumZoomLevel IBInspectable. * [ios, macos] Update changelogs.
| * [ios] Document annotations-as-features limitations w/feature queryingJason Wray2017-08-211-10/+15
| | | | | | | | Also move visibleAnnotations next to visibleAnnotationsInRect:.
* | Merge tag 'ios-v3.6.2' into masterFabian Guerra2017-08-281-0/+17
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # cmake/core-files.cmake # include/mbgl/renderer/renderer_backend.hpp # platform/android/CHANGELOG.md # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/AnnotationManager.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/IconManager.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Projection.java # platform/android/dependencies.gradle # platform/darwin/src/MGLStyle.mm # platform/ios/CHANGELOG.md # platform/ios/app/Info.plist # platform/ios/app/MBXViewController.m # platform/ios/ios.xcodeproj/project.pbxproj # platform/macos/CHANGELOG.md # src/mbgl/gl/attribute.cpp # src/mbgl/gl/attribute.hpp # src/mbgl/gl/context.hpp # src/mbgl/gl/types.hpp # src/mbgl/gl/value.cpp # src/mbgl/gl/value.hpp # src/mbgl/map/backend_scope.cpp # src/mbgl/programs/attributes.hpp # src/mbgl/programs/program.hpp # src/mbgl/programs/segment.cpp # src/mbgl/programs/segment.hpp # src/mbgl/programs/symbol_program.hpp # src/mbgl/programs/uniforms.hpp # src/mbgl/renderer/buckets/symbol_bucket.hpp # src/mbgl/renderer/painter.cpp # src/mbgl/renderer/painter.hpp # src/mbgl/renderer/painter_background.cpp # src/mbgl/renderer/painter_circle.cpp # src/mbgl/renderer/painter_clipping.cpp # src/mbgl/renderer/painter_debug.cpp # src/mbgl/renderer/painter_fill.cpp # src/mbgl/renderer/painter_fill_extrusion.cpp # src/mbgl/renderer/painter_line.cpp # src/mbgl/renderer/painter_raster.cpp # src/mbgl/renderer/painter_symbol.cpp # src/mbgl/shaders/line.cpp # src/mbgl/shaders/line_pattern.cpp # test/renderer/backend_scope.test.cpp
| * [ios] expose setCamera with edge paddingFredrik Karlsson2017-08-031-0/+17
| |
| * [build] enable -fvisibility=hidden for iOSKonstantin Käfer2017-07-131-4/+5
| |
* | [ios][macos][node][android] Updated documentation and Changelogs for #9821Asheem Mamoowala2017-08-221-1/+2
| |
* | [build] enable -fvisibility=hidden for iOSKonstantin Käfer2017-07-131-4/+5
| |
* | [ios, macos] Add overlays property to MGLMapView (#8617)Eimantas2017-05-201-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add `overlays` property to `MGLMapView.mm` Implemented by filtering the `annotations` property for annotations that conform to `MGLOverlay` protocol. * Handle `nil` case when returning overlays * Add basic documentation for `overlays` property Copied verbatim from `annotations` property. Changed types. * Add `overlays` property to iOS sdk Implementation is identical to the one in macOS SDK. * Match curly braces style * Make `overlays` property `nonnull` on iOS * Make `overlays` property `nonnull` on macOS * Make cosmetic changes * [ios, macos] Moved changelog entry to master
* | [core, node, darwin, qt] Remove support for paint classesJohn Firebaugh2017-05-151-4/+16
|/
* [ios] Scale bar (#7631)Fredrik Karlsson2017-04-161-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | * [ios] added a scale bar * [ios] update design * [ios] show/hide scale bar * [ios] Remove the need to localize 0 * [ios] Support for imperial units * [ios] Round to nearest foot * [ios] Make scale bar private * [ios] Update design and clean up * [ios] Rename and various optimizations * [ios] RTL support * [ios] added max scale and removed animations * [ios] animate scale bar
* [ios, macos] Expanded feature querying documentationMinh Nguyễn2017-03-141-28/+48
| | | | Also fixed a couple incorrect Swift method names on macOS.
* Merge master into release-ios-v3.5.0-android-v5.0.0John Firebaugh2017-03-081-9/+50
|\
| * [ios, macos] Add support for queryRenderedFeatures filterIvo van Dongen2017-03-041-9/+50
| |
* | [ios] Clarify docs for MGLUserTrackingModeNadia Barbosa2017-03-031-3/+22
| |
* | [ios, macos] Exclude MGLUserTrackingMode from macOSNadia Barbosa2017-03-031-0/+15
|/
* [ios, macos] Smarten apostrophes after backticksMinh Nguyễn2017-02-211-4/+4
| | | | jazzy is inconsistently converting straight apostrophes that immediately follow backticks into either ‘ or ’ from one run to the next. Smarten the apostrophe to keep it stable.
* [ios] Clean-up conditionals for iOS <8Jason Wray2017-02-211-4/+4
|
* [core] remove trailing whitespace, add trailing newlines, add space after //Konstantin Käfer2017-01-271-149/+149
|
* [ios, macos] Testify MGLMapView gesture recognizer exampleMinh Nguyễn2017-01-251-0/+1
|
* [ios, macos] Document how to avoid gesture recognizer conflicts (#7816)nitrag2017-01-231-0/+14
| | | | | | | | | | | | | | | | * Expand on Gesture Implementation Adding Gesture info as discussed: https://github.com/mapbox/mapbox-gl-native/issues/2278#issuecomment-273685832 Not sure if using codeblocks is kosher. * Update styling and verbiage * More updates * [ios] -requireGestureRecognizerToFail: seems to be enough * [macos] Added corresponding macOS documentation
* Typo fixes, added line to MGLStyleLayer initializer description (#7759)Jordan Kiley2017-01-171-1/+1
| | | | | | | * Typo fixes in MGLMapCamera.h and MGLMapView.h * Added line to MGLStyleLayer initializer description * Edited line in MGLShapeCollection.h
* [ios, macos] Make MGLMapView.style property nullable (#7664)Minh Nguyễn2017-01-111-1/+8
| | | | | | | | | | | | * [ios, macos] Made MGLMapView.style property nullable MGLMapView’s style property is now nullable (optional in Swift). The property is set to nil while the style loads and in the event that the style has failed to load. * [ios, macos] Switch to delegate method * [macos] Create MGLMapView programmatically for layer tests When MGLMapView is created via a nib, -initWithCoder: is called, causing styleURL to be set to nil, in turn causing the default Streets style to be loaded, fooling MGLStyleLayerTests into thinking one-line has been loaded. Instead, create MGLMapView programmatically, passing the intended style URL into the initializer, preventing Streets from being loaded.
* [ios, macos] Add notes to APIs that rely on style and source ids (#6886)Jesse Bounds2016-11-301-0/+23
| | | Update documentation to make the implications of identifiers clearer.
* [ios, macos] Marked C array parameters as constMinh Nguyễn2016-11-291-2/+2
| | | | Fixes #7214.
* [ios, macos] Key-value compliance for MGLStyleMinh Nguyễn2016-11-281-4/+11
| | | | | | Replaced -[MGLMapView style] with a property. Keep the MGLStyle object around for the lifetime of the style. Bracket changes to layers in willChange and didChange calls. The built-in point annotation layer is added after the style is finished loading but before the map is finished loading. Cause a second wave of change notifications to go out, about both sources and layers. Issue change notifications for style layers when shape annotations are added or removed.
* [ios, macos] Introduce visible annotations API (#6061)Jesse Bounds2016-10-261-0/+21
| | | | | | Add visibleAnnotations API to make it easier for clients of MGLMapView to query for all visible annotations in the map or all visible annotations in a subsection of the map.
* Add MGLPointCollection for GeoJSON multipoints (#6742)Jesse Bounds2016-10-201-5/+4
| | | | | | | | | | | | | | | | * [ios, macos] Introduce MGLPointCollection This makes MGLMultiPoint abstract again so that it is only a place for shared functionality of polygons and polylines. The multipoint feature replaces the point collection feature and can be used to initialize a MGLGeoJSONSource. The previously added swift_names for polyline and polygon are removed, for now. This also updates the iOS and macOS annotation adding logic so that unwanted shapes really are avoided. Previously the combined OR conditions meant that an annotation had to logically be NOT a kind of all three types so the check always let the annotation slip through. This also expands the guard to deflect the new MGLPointCollection.
* [ios, macos] Expose name and default position of current style (#6127)Minh Nguyễn2016-08-241-6/+8
| | | | | | * [ios] Reset to style’s default position * [ios, macos] Added name property to MGLStyle
* [ios, macos] Move debug mask options to shared header (#6094)Jason Wray2016-08-231-19/+0
| | | | | | | | | | | | * [ios, macos] Move debug mask options to shared header * Limit buffer debug modes to macOS ... because these modes use OpenGL features that aren't supported by iOS. * Try a different tact: exclude "iPhone" ... which is actually all iOS-like devices.
* [ios, macos] reuse utility functionFredrik Karlsson2016-08-181-24/+4
|
* [ios, macos] fixes #5974 Move style classes API to MGLStyleFredrik Karlsson2016-08-181-4/+4
|
* Runtime styling API for iOS/macOS (#5727)Fredrik Karlsson2016-08-111-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios] wip runtime styling * [ios, macos] Outlined header templates * [ios, macos] cleanup and use appropiate data types * [ios, macos] removed refs to mbgl and added convenient color methods on UIColor and NSColor * [ios, macos] updated header template, included doc string * [ios, macos] outlined template for layer implementation files * [ios, macos] moved script to platform/darwin and updated comments * [ios, macos] Cleaned up the implementation template * [ios, macos] removed unused function and added support for more datatypes * [ios, macos] overhauling the type protocols * [ios, macos] removed unnecessary style classes * [ios, macos] added support for more types * [ios, macos] fixed string and number prop values * [ios, macos] enum getters * [ios, macos] added removeLayer() and removed unused layer ref * [ios, macos] fixed remaining layer types and converted style layer into a protocol * [ios, macos] fixed addLayer() and added example for line layer * [ios] GeoJSON source now works * [ios] fixed raster layer and raster source * [ios] fixed attr prop number and outlined prop function * [ios] wip functions * [ios] bool and float function fix * [ios] cleanup * [macos] fixed support for macos * [ios] fixed string functions * [ios] extended array functions * [ios] added tests and fixed a few bugs * [ios] less verbose functions and improved tests * [ios, macos] Removed unnecessary use of default arguments Default arguments aren’t supported in Node v4, and they aren’t needed here anyways, because we’re only testing for truthiness. * [ios, macos] Enum setters Rely on a macro instead of category methods to specialize the setter implementation for enum attributes, since generic types are disallowed in Objective-C method signatures and mbgl::style::PropertyType must be type-qualified. * [ios, macos] Got macOS closer to parity w/ iOS Added various classes and test classes to the macOS workspace. Also fixed lots of compiler errors and updated macosapp runtime styling example to use the new dictionary syntax for function stops. Updated all conversions from Objective-C stops to C++ stops to enumerate over the dictionary. Fixed compiler errors in enum setter implementations. Also corrected path to script in generated file comments. * [ios, macos] Added EJS templates to project * [ios, macos] Code formatting Made code format more consistent. * [ios, macos] Spelled out ID Cocoa convention is to always spell out “ID” as “identifier”, in part to avoid confusion with the id keyword. Also, URL is capitalized in most contexts, including property names. * [ios, macos] Grouped related headers together * [ios, macos] Cleaned up layer transformation Also added support for converting background layers into Objective-C. * [ios, macos] Cleaned up tests Also made the tests work on macOS by introducing a new window to host the map. * [ios, macos] Replaced TODOs with #warnings * [ios] convert array based property values * [ios, macos] color function/undefined getter * [ios, macos] fixed function/undefined getters for bool and float properties * [ios, macos] more function/undefined property getters * [ios, macos] more type conversion and cleanup * [ios, macos] disable macos runtime styling tests for now * [ios, macos] cleaned up style code script * [ios, macos] more type conversion * [ios] added a base layer to handle visibility min/max zoom * [macos] fixed base layer * [ios, macos] use accessor methods * [ios, macos] cleanup * [ios, macos] add geojson to ios and macos * [macos] rebase fix * [ios, macos] fixed enum getters and added tests for enums * [ios, macos] added an update method to base layer * [ios, macos] added some documentation * [ios, macos] docs * [ios, macos] removed refs to filters for now * [ios, macos] various tail work * [ios, macos] missing import and incorrect type
* [ios] Reformat inline documentation with ticks, smart quotes, breaks (#5752)Jason Wray2016-07-221-28/+28
| | | | | - Makes the use of apostrophes in the iOS SDK documentation consistent by converting “dumb” `'` into smart `’`. - Adds ticks around class/property names/values. - Breaks lines at 80 characters.
* [ios,macos,node] Updated changelog about debug options no-ops in release modeBruno de Oliveira Abinader2016-07-201-0/+1
|
* Merge branch 'release-ios-v3.3.0'Minh Nguyễn2016-07-141-1/+4
|\
| * [ios, macos] Reorganize jazzy’s navigation categories; cleanup docs (#5660)Jason Wray2016-07-121-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | An attempt to better surface relevant information. Includes slight cleanups of inline documentation. - Demotes MGLMapDebugMaskOptions to "Other Enums”. - Demotes MGLMapViewDecelerationRate* and MGLStyleDefaultVersion to "Other Constants”. - Demotes MGLOfflinePack's less significant global types. - Demotes MGLAnnotationVerticalAlignment and documents its usage caveat. - Demotes MGLAnnotationViewDragState and removes extra asterisk. - Adds note to `MGLUserTrackingMode` about usage with `MGLMapView.userTrackingMode`. - MGLAccountManager is currently only used for access tokens. - Adds missing closing bracket.
* | Merge branch 'release-ios-v3.3.0' into masterJesse Bounds2016-07-071-0/+20
|\ \ | |/
| * Adjustable map deceleration rate (#5504)Minh Nguyễn2016-06-291-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | * [ios] Adds the ability to customize map deceleration speed * [ios] Made pinch, rotation deceleration adjustable too Drift zooming and drift rotation also respect the deceleration rate. A side effect of this change is that drift zooming will come to a stop ever-so-slightly sooner now. * [ios] Documented deceleration rates Added documentation for deceleration rate constants. Also updated the changelog.
* | [ios, macos, node] “Mapbox GL Style Specification” → “Mapbox Style ↵Minh Nguyễn2016-07-041-1/+1
|/ | | | Specification” (#5553)
* [ios, macos] Renamed overdraw to overdraw visualization (#5416)Minh Nguyễn2016-06-231-3/+4
| | | | | | A verb doesn’t make sense in this enum value. Instead, use a descriptive word for this effect and describe it in detail in the documentation comment. Cherry-picked from 415c18294693166472785459f9d5bc8be31b7033.
* [ios] fixes #5406 view for annotation (#5413)Fredrik Karlsson2016-06-211-0/+9
|
* Suppress warning when dequeueing subclasses (#5244)Alan Kinnaman2016-06-141-2/+2
| | | | | | | | | | When using a subclass of `MGLAnnotationView` or `MGLAnnotationImage`, the following warning occurs: `Incompatible pointer types initializing 'MyClassName *' with an expression of type 'MGLAnnotationView * _Nullable'` This change eliminates the warning and matches Apple's implementation of `UITableViewCell`. Cherry-picked from 1e41c151f6edfba69037c854a5cb7abc18bb55e7.
* [ios] Support for a customizable zoom gesture centering strategy. (#5302)Mark Allen2016-06-091-0/+19
| | | | | | | | | | | | | | * [ios] Support for a customizable zoom gesture centering strategy. We introduce a new MGLZoomGestureCentering enum and corresponding zoomGestureCentering property on MGLMapView. Currently, Mapbox automatically adjusts the center of the map relative to the user's gesture location, but for some applications (e.g Uber, Lyft) it is preferable to keep the map center "locked" in response to zoom gestures. Exisiting code will retain its current behavior without modification and will implicitly use the default value of MGLZoomGestureCenteringFollowsTouch. New code can specify MGLZoomGestureCenteringLockedInPlace to get the new "locked" behavior. * [ios] Added -anchorPointForGesture: to MGLMapView Cherry-picked from b915f05a069d4658cc11d91a4bae2ef52c5fcbf1.
* [ios, osx] Ignore multipointsMinh Nguyễn2016-06-061-6/+8
| | | | | | Ignore multipoints (as opposed to polylines and polygons) when adding annotations, just like we ignore multipolylines, multipolygons, and shape collections. In osxapp, break multipoint features into points before adding them as annotations.