summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLMapView.mm
Commit message (Collapse)AuthorAgeFilesLines
* [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-041-34/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | (#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-041-12/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * [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] 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
|
* [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.
* [ios] Refactor NSUserDefaults key variable namesJason Wray2019-08-211-3/+3
|
* [ios] Add threshold for triggering the rotate gesture recognizer (#14929)Jordan Kiley2019-08-201-12/+135
|
* [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-111-94/+11
|
* [ios] Add removeStyleImage to MGLMapView (#14769)Fabian Guerra Soto2019-07-021-0/+8
| | | | | | | | * [ios] Add shoulRremoveStyleImage to MGLMapViewDelegate. * [ios] Changelog update. * [ios, macos] Update shouldRemoveStyle method documentation.
* [ios, macos] Deprecate methods in favor of new completion handler versionsJason Wray2019-06-261-15/+8
|
* [ios, macos] Added completion handlers to animated MGLMapView methodsMinh Nguyễn2019-06-211-65/+111
|
* [ios] Require two fingers for duration of tilt gestureJason Wray2019-06-201-0/+6
|
* [ios] Add integtation test that verifies MGLMapViewImpl sizeAlexander Shalamov2019-06-051-0/+5
|
* [ios] Calculate size of a MGLMapViewOpenGLImpl renderable from MGLMapView boundsAlexander Shalamov2019-06-051-0/+4
| | | | Fixes: #14807
* [ios] Fix content insets with custom edge padding. (#14813)Fabian Guerra Soto2019-06-031-1/+3
| | | | | | | | | | | | * [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-291-352/+61
|
* 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
* [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-031-1/+1
| | | | | | | | 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-021-7/+7
|
* [ios, macos] Fixes for static analyzer warnings (#14453)Julian Rex2019-04-301-1/+1
|
* [ios] Check for valid superview to avoid crash on iOS 9 (#14529)Julian Rex2019-04-301-1/+4
|
* [ios] Consider anchored UIView callouts when deciding whether to enable ↵Julian Rex2019-04-171-11/+28
| | | | presentsWithTransaction (#14445)
* [ios] Ensure glFinish is called when going into the background, and block ↵Julian Rex2019-04-161-8/+72
| | | | rendering in the background (#14439)
* [ios] run glFlush when reducing memory and don't reduce memory while in ↵Konstantin Käfer2019-04-111-1/+4
| | | | background (#14383)
* [ios] Fix issue wrong position of attribution dialog after rotation (#14185)Lloyd Sheng2019-04-111-0/+21
| | | | * Fix issue #12897
* [ios] Deactivate MGLMapView IBDesignable (#14379)Fabian Guerra Soto2019-04-101-9/+4
| | | | | | | | | | | | Removed MGLMapView's IBDesignable attribute. The map's view render attributes uses GL, making changes through the inspectables were not reflected in the storyboard and were causing IB crashes. * [ios] Deactivate MGLMapView IBDesignable. * [ios] Remove IBDesignable agent code. * [ios, macos] Remove NSProcessInfo category from iOS.
* [core] remove Renderer::flushKonstantin Käfer2019-04-051-2/+0
|
* [core] move GLContextMode to RendererBackendKonstantin Käfer2019-04-051-5/+6
|
* [core] refactor RendererBackendKonstantin Käfer2019-04-051-10/+31
|
* [core] move BackendScope to gfx namespaceKonstantin Käfer2019-04-051-1/+0
|
* [ios] Add iOS bindings and example for missing icons event. (#14302)Jordan Kiley2019-04-031-0/+14
| | | | | | Added a new mapView delegate method that allows reload a style icon in case it couldn't load it from the style. Added an iosapp test example.
* [ios] Enable/disable presentsWithTransaction to address #14232 (#14307)Julian Rex2019-04-031-12/+140
|
* [core] Include pixelRatio property in MapOptionsSudarsana Babu Nagineni2019-03-281-1/+2
| | | | Move pixelRatio property from Map constructor to MapOptions.
* [core] Add setter/getter for size property in MapOptionsSudarsana Babu Nagineni2019-03-281-1/+2
|
* [core] Add getter for Map optionsSudarsana Babu Nagineni2019-03-281-1/+1
| | | | | Instead of having individual getter for each Map option, add a common getter for all Map options.
* [ios, core] Updates project for iOS SDK 12.2 / Always use vendored optional ↵Julian Rex2019-03-271-4/+9
| | | | (#14241)
* [core] Fix signature of fluent interface settersBruno de Oliveira Abinader2019-03-231-9/+9
|
* [ios] Nitpicky style edits of recent changesJason Wray2019-03-211-2/+4
|
* [core] Remove file source from public Map ctorBruno de Oliveira Abinader2019-03-201-7/+11
|
* [darwin] [MGLOfflineStorage mbglFileSource] is now a shared_ptrBruno de Oliveira Abinader2019-03-201-1/+1
|
* [core] Group Map LatLngBounds, min and max zoom methodsAnder Conselvan de Oliveira2019-03-141-8/+8
| | | | | | | | Group bounds, minimum and maximum zoom related methods together using the new BoundOptions. v2: Document that getBounds() initializes all optional fields. - Add test for getBounds() on a map with default values.