summaryrefslogtreecommitdiff
path: root/platform/ios/Mapbox.playground
diff options
context:
space:
mode:
authorfrederoni <bjorn.fredrik.karlsson@gmail.com>2016-05-18 09:47:54 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-05-18 09:47:54 -0700
commite8ea7483a7ed44d2786e2e4d5a1979cc8a1e32b6 (patch)
treeead4667f11b4ecd122cdf3799365dcfb94c3e2ec /platform/ios/Mapbox.playground
parent8ee222c45e31413b03d1c83006cf4eadc0e6d3a7 (diff)
downloadqtlocation-mapboxgl-e8ea7483a7ed44d2786e2e4d5a1979cc8a1e32b6.tar.gz
[ios] Added centerOffset to MGLAnnotationView (#5062)
* [ios] Added centerOffset to MGLAnnotationView * [ios] Reposition immediately after changing the centerOffset closes #5059
Diffstat (limited to 'platform/ios/Mapbox.playground')
-rw-r--r--platform/ios/Mapbox.playground/Contents.swift1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/ios/Mapbox.playground/Contents.swift b/platform/ios/Mapbox.playground/Contents.swift
index 14dba0cc4e..514cb10160 100644
--- a/platform/ios/Mapbox.playground/Contents.swift
+++ b/platform/ios/Mapbox.playground/Contents.swift
@@ -52,6 +52,7 @@ class MapDelegate: NSObject, MGLMapViewDelegate {
if (annotationView == nil) {
let av = PlaygroundAnnotationView(reuseIdentifier: "annotation")
av.frame = CGRect(x: 0, y: 0, width: 30, height: 30)
+ av.centerOffset = CGVector(dx: -15, dy: -15)
let centerView = UIView(frame: CGRectInset(av.bounds, 3, 3))
centerView.backgroundColor = UIColor.whiteColor()
av.addSubview(centerView)