summaryrefslogtreecommitdiff
path: root/platform/ios/src
Commit message (Collapse)AuthorAgeFilesLines
* [ios, macos] Deleted iOS/macOS map SDK sources, resources, scriptsMinh Nguyễn2020-02-2763-14510/+0
|
* [build] Adding a build flag to build without GL if needed (#16120)Thomas Moenicke2020-02-031-1/+1
| | | | | | * [build] Adding a build flag to build without GL if needed * [build] Moving custom layer to mbgl/gl
* [ios, macos]Remove iOS/macOS codes from native codes (#16031)m-stephen2019-12-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add source/header * add ios files * add configs * modify name * http_file_source * add interface delegate when map init * fix name * fix delegate name * support mac os * add mac os support * make optional delegate when mac os * mac/ios difference * add ios change log * cancel iOS/mac OS judgement * cancel iOS/mac OS judgement * cancel judgement in .m * update * update * update http_file_source * update ios * update mac os * add mac os file * add mac os file to `.cmake` * change names * add log & fix format * reset changelog commit * update changelog * rename iOS network manager * Add a test configuration(same as default configuration) when mac os run tests * re-add account type into `http_file_source` * refactor
* [ios] Fixes an issue that caused the ornaments ignore contentInset property. ↵Fabian Guerra Soto2019-10-042-35/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | (#15584) * [ios] Add mapView content inset tests. * [ios] Fix an issue that caused the ornaments ignore the contentInsets. Fixed an issue that caused ornaments ignore the contentInset. Added a new property automaticallyAdjustContentInset that has the same purpose as UIViewController. automaticallyAdjustsScrollViewInsets. This was changed due to the latter being deprecated. * [ios] Fix automaticallyAdjustsScrollViewInsets legacy behavior. The property automaticallyAdjustsScrollViewInsets overrode automaticallyAdjustsScrollViewInsets which caused a breaking change. This is fixed to consider the legacy property when calculating the content insets and added tests for both cases. * [ios] Fix the contentInset value after adding padding to the camera. Fixed an issue that caused a discrepancy between the contentInset in MGLMapView and the padding in the transformation state. When padding is passed through methods such as setCamera it’s persisted. This fix resets the contentInsets. * [ios] Fix pinch test. * [ios] Update automaticallyAdjustsScrollViewInsets name and documentation. * [ios] Update changelog.
* [ios] Fix layout of Scale bar components (#15703)Julian Rex2019-10-042-69/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios] Add failing tests for scale bar updates. * [ios] Remove borderLayer * [ios] Ensure bar sections have non-fractional width * [ios] Add RTL override * [ios] Update constraints/layout * [ios] Invalidate scalebars size, after the parent's layout has happened (to ensure the view dimensions are correct when re-laying out the scale bar. * [ios] Refactor layout * [ios] Update changelog / remove commented code. * [ios] Remove whitespace * [ios] Stop integration tests asserting (when scale bar is hidden). Also reduces the # of calculations (since updateConstraints and layoutSubviews can be called outside of our control). * [ios] Moves declaration of properties for testing. * [ios] Removes redundant property attribute * [ios] Updated change log
* [ios]Add errors reporting (#15391)m-stephen2019-09-202-5/+25
| | | | | | * add errors reporting * [ios] report error if rendering takes > 1 second. (#15633)
* [build] Fix iOS nitsThiago Marcos P. Santos2019-09-174-4/+4
| | | | | | - Hardcoded the bundle identifier on Info.plist, CMake is not picking it up. - Do not use installed headers when building the framework.
* [core] Update MapObserver::onDidFinishRenderingFrame() APIMikhail Pozdnyakov2019-09-122-3/+3
|
* [ios] Refactor way location permissions are requestedJason Wray2019-09-091-27/+21
|
* [ios] Remove feature flag for rotation threshold (#15562)Jordan Kiley2019-09-041-102/+4
|
* [ios, macos] Fix content inset documentation. (#15552)Fabian Guerra Soto2019-09-041-2/+2
|
* [ios] Fix compass font weight being too light on iOS 13m-stephen2019-09-041-1/+8
|
* [ios] Allow MGLScaleBar to support dark mode on iOS 13Nadia Barbosa2019-08-301-2/+1
| | | | Add changelog PR link
* [core] Remove programCacheDir parameter from ProgramParametersAnder Conselvan de Oliveira2019-08-271-1/+1
| | | | | | Binary shader support has been removed in commit c2f974f2a573 ([core] Remove binary shader support). This left-over parameter is not used anywhere anymore.
* [ios] Added pending completion blocks (#15122)Julian Rex2019-08-251-30/+111
|
* [ios] Improve tilt gesture recognizer detection. (#15349)Fabian Guerra Soto2019-08-231-32/+61
| | | | | | | | | | | | | | | | | | * [ios] Improve tilt gesture recognizer detection. * [ios] Update tilt gesture detection angles. * [ios] Fix a delay at the beginning of the drag gesture. * [ios] Update tilt gesture recognizer tests. * [ios] Update changelog. * [ios] Add horizontal tilt gesture test. * [ios] Addresses review feedback. * [ios] Add comments to clarify the tilt gesture initialization.
* [core] Export symbol placement update status from MapObserverMikhail Pozdnyakov2019-08-232-2/+2
|
* [ios, macos] Clarify current best practices with animated camera changesNadia Barbosa2019-08-221-8/+16
|
* [ios] Refactor NSUserDefaults key variable namesJason Wray2019-08-213-35/+40
|
* [ios] Add threshold for triggering the rotate gesture recognizer (#14929)Jordan Kiley2019-08-201-12/+135
|
* [ios] Fix bug where scale bar shows 0 mm instead of 0 (#15381)Jordan Kiley2019-08-201-2/+13
|
* [ios] Removes mismatched function declaration. (#15423)Julian Rex2019-08-201-1/+0
|
* [ios] Adds annotation selection tests with rotation & scaling of the map ↵Julian Rex2019-08-201-1/+0
| | | | (#15123)
* [ios] Document how scale bar visibility is determined (#15304)Jordan Kiley2019-08-051-3/+10
| | | | | | * [ios] document scale bar visibility * [ios] finished trailing sentence
* [ios, macos] Change "map ID" to "tileset ID" (#15116)upstream/15022_memory_consumptionHeather Stenson2019-07-161-3/+3
| | | | | | | | * map id --> tileset id * styles map id -> style url * update changelog
* [ios][macos] Fix center coordinate incorrect after pinch gestureAleksandar Stojiljkovic2019-07-141-8/+4
| | | | | | | | | | | | | | | | | | | | To changelog: Fixed incorrect center coordinate after pinch regression caused by edge insets fix (#14664). While working on #14664, missed to understand the logic used in ``` CLLocationCoordinate2D centerCoordinate = _previousPinchCenterCoordinate; mbgl::EdgeInsets padding { centerPoint.y, centerPoint.x, self.size.height - centerPoint.y, self.size.width - centerPoint.x }; self.mbglMap.jumpTo(mbgl::CameraOptions() .withCenter(MGLLatLngFromLocationCoordinate2D(centerCoordinate)) .withPadding(padding)); ``` Replacing this code by moveBy achieves the required translation. Fixes: #14977, #15082
* [ios] Add MGLCompassButton and MGLOrnamentVisibilityJason Wray2019-07-119-100/+211
|
* [ios] Add removeStyleImage to MGLMapView (#14769)Fabian Guerra Soto2019-07-025-0/+29
| | | | | | | | * [ios] Add shoulRremoveStyleImage to MGLMapViewDelegate. * [ios] Changelog update. * [ios, macos] Update shouldRemoveStyle method documentation.
* [ios] Remove previously deprecated unavailable methods and propertiesJason Wray2019-06-261-18/+0
|
* [ios, macos] Deprecate methods in favor of new completion handler versionsJason Wray2019-06-262-34/+27
|
* [ios, macos] Added completion handlers to animated MGLMapView methodsMinh Nguyễn2019-06-212-89/+274
|
* [ios] Require two fingers for duration of tilt gestureJason Wray2019-06-201-0/+6
|
* [ios] Integrate Mapbox Mobile Events 0.9.4 (#14868)Alf Watt2019-06-061-1/+1
| | | | | | | | | | * [ios] Mapbox Events 0.9.4 * Run `scripts/generate-file-lists.js` * Explicitly use the shared manager instead of init * There can be only one `Scripts`
* [ios] Update libmbxaccounts for navigation SDK override (#14802)Jason Wray2019-06-051-1/+1
| | | | | * Use a stringy selector... yerg. * Bump to libmbxaccounts 1.0.0
* [ios] Add integtation test that verifies MGLMapViewImpl sizeAlexander Shalamov2019-06-052-0/+9
|
* [ios] Calculate size of a MGLMapViewOpenGLImpl renderable from MGLMapView boundsAlexander Shalamov2019-06-054-4/+23
| | | | Fixes: #14807
* [ios] Fix undeclared selector warning in MGLAnnotationViewJason Wray2019-06-031-0/+1
| | | | `setCoordinate:` isn't available to regular MGLAnnotation, only MGLPointAnnotation.
* [ios] Fix content insets with custom edge padding. (#14813)Fabian Guerra Soto2019-06-032-2/+5
| | | | | | | | | | | | * [ios] Fix content insets with custom edge padding. * [ios, macos] Consolidated edge insets math * [macos] Add content insets to edge padding when setting camera * [ios, macos] Updated changelogs * [ios, macos] Clarify setCamera:withDuration:animationTimingFunction:edgePadding method documentation.
* [ios] Content insets border case fix and comment.Aleksandar Stojiljkovic2019-06-031-2/+5
| | | | | | | | Allows changing camera when user duplicates content insets. Related to previous patch and comment: https://github.com/mapbox/mapbox-gl-native/pull/14664#pullrequestreview-243004376 Thanks @1ec5
* [ios,macos] refactor MGLMapViewImplKonstantin Käfer2019-05-297-358/+591
|
* Asymmetric viewport changelog entryAleksandar Stojiljkovic2019-05-281-9/+9
| | | | Check edge insets difference, in addition to isEqualToMapCamera in all the places in MGLMapView before map.easeTo/map.flyTo.
* [core] Offset viewport center when edge insets are specifiedAleksandar Stojiljkovic2019-05-281-14/+5
| | | | | | | | | | | | | | | | | | | | | The change is implemented in TransformState::getProjMatrix, the rest of the code is making sure that existing API contracts stay and there are tests verifyingrendering and render query processing only items within screen and given tolerance around screen edges. MapView: don't bake edge insets into relalculated camera center. Keep edge insets as property of camera in TransformState (similar to pitch, zoom, bearing) independent from specified camera center. Interpolate edge insets in animation. iOS Demo app: "Turn On/Off Content Insets" pitch the camera and navigate to convenient location in Denver, where streets are parallel to cardinal directions, to illustrate viewport center offset when edge insets are set. Tests: ViewFrustumCulling: although Annotations are deprecated, queryRenderedFeatures related tests in Annotations would need to get ported and decided to add the edge insets related query tests next to them. Verify frustum culling (render+queryRenderedFeatures) With different camera and edge insets setups. TODO: port Annotations tests. Transform.Padding: Verify that coordinates take proper place on screen after applying edge insets. LocalGlyphRasterizer: verify text rendering when applying padding. Related to #11882: both use projection matrix elements [8] and [9]. Alternative approach to this was to increase and offset map origin so that the screen would be a sub-rectangle in larger map viewport. This approach has a drawback of unecessary processing the items that are outside screen area. Fixes #12107, #12728, navigation-sdks/issues/120
* [ios] Enable SKU tokens for all requestsJason Wray2019-05-201-3/+1
| | | Removes conditional code that relied on a plist flag. Other small cleanups.
* [ios] Update to libmbxaccounts 0.0.5 (#14683)Jason Wray2019-05-161-1/+1
|
* [ios, macos] clarified documentation for newCamera param of the ↵Sam Fader2019-05-151-2/+2
| | | | | | | | shouldChangeFromCamera delegate (#14680) * [ios, macos] clarified documentation for newCamera in shouldChangeFromCamera * [ios, macos] clarified documentation for newCamera param of the shouldChangeFromCamera delegate part 2
* [core] Make the BackgroundScheduler a singletonThiago Marcos P. Santos2019-05-101-8/+2
| | | | | | | | | | - Do not carry it over everywhere as parameter, it is a shared instance anyway and the lifecycle is pretty much the app lifecycle from the moment we instantiate a map. - Rename to BackgroundScheduler because it is a Scheduler that will do tasks in the background, we don't make assumptions if it is a thread pool or a single thread. - Most importantly, remove the dependency from `core` on `platform`.
* [ios] Remove obsolete telemetry gesture eventsJason Wray2019-05-091-40/+0
|
* [ios] Interpret negative direction as unchanged when setting visible ↵Minh Nguyễn2019-05-032-4/+5
| | | | | | | | coordinates (#14575) * [ios] Fixed negative direction when setting visible coordinates * [ios] Document behavior of negative direction
* [ios] Static analysis fix tweaks - part 2 (#14572)Julian Rex2019-05-022-11/+11
|
* [ios, macos] Fixes for static analyzer warnings (#14453)Julian Rex2019-04-303-6/+6
|