summaryrefslogtreecommitdiff
path: root/platform/ios/test/MGLMapViewDelegateIntegrationTests.swift
diff options
context:
space:
mode:
authorNadia Barbosa <nadiabarbosa@me.com>2018-09-17 15:45:22 -0700
committerNadia Barbosa <captainbarbosa@users.noreply.github.com>2018-10-02 18:28:53 -0400
commit7b243392e366907b35f819ac2d416475287d74ea (patch)
tree14d6ab0d322a9d33c51c903cbf0d1e90ac33ccd3 /platform/ios/test/MGLMapViewDelegateIntegrationTests.swift
parent41dd886ce5e0b20657d7b859b775949055129906 (diff)
downloadqtlocation-mapboxgl-7b243392e366907b35f819ac2d416475287d74ea.tar.gz
[ios] Add delegate method to specify the user location annotation’s position
Update method name More API drafting Add deprecation flag Add Swift delegate integration test Update method name and documentation Update deprecation notices Update method name Offset anchor point relative to contentFrame Update docs Only run through switch statement if delegate is unimplemented Account for content inset + refactor logic Adjust edgePaddingForFollowing Fix Swift delegate integration test Set up integration test Set up test location manager . Remove unused file reference from test Return CGPoint value from delegate method within integration test setup Test anchor points Make updateUserLocationAnnotationView public Refactor test Update test location manager Changelog entry Doc fixes
Diffstat (limited to 'platform/ios/test/MGLMapViewDelegateIntegrationTests.swift')
-rw-r--r--platform/ios/test/MGLMapViewDelegateIntegrationTests.swift2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/ios/test/MGLMapViewDelegateIntegrationTests.swift b/platform/ios/test/MGLMapViewDelegateIntegrationTests.swift
index 48673b1d14..4904cb185b 100644
--- a/platform/ios/test/MGLMapViewDelegateIntegrationTests.swift
+++ b/platform/ios/test/MGLMapViewDelegateIntegrationTests.swift
@@ -92,4 +92,6 @@ extension MGLMapViewDelegateIntegrationTests: MGLMapViewDelegate {
func mapView(_ mapView: MGLMapView, shouldChangeFrom oldCamera: MGLMapCamera, to newCamera: MGLMapCamera) -> Bool { return false }
func mapView(_ mapView: MGLMapView, shouldChangeFrom oldCamera: MGLMapCamera, to newCamera: MGLMapCamera, reason: MGLCameraChangeReason) -> Bool { return false }
+
+ func mapViewUserLocationAnchorPoint(_ mapView: MGLMapView) -> CGPoint { return CGPoint(x: 100, y: 100) }
}