-
Notifications
You must be signed in to change notification settings - Fork 1.3k
avoid altering annotation view transforms set by user #6166
Conversation
@incanus, thanks for your PR! By analyzing this pull request, we identified @boundsj, @1ec5 and @friedbunny to be potential reviewers. |
|
If resetting to
|
Yeah I am thinking the manual bookkeeping might be necessary. Will keep on this. |
1fbfc73
to
c0edb62
Compare
I think that should be OK. Incidentally, |
Also, would you do the honors and update the changelog? |
Not sure why Android test is failing, but going to rebase on master and merge this. |
d04746c
to
2501b2c
Compare
I unearthed a bug where trying to set an annotation view
transform
of your own gets rapidly reset nearly every frame while annotation viewcenter
is changing due to theCATransform3DIdentity
that is repeatedly set in oursetCenter:
override.One case this doesn't cover is when you do have draggable views but still want to set a
transform
. Perhaps we could create an alternate setter calledsetCenterDuringAnnotationUpdate:
which is called by-[MGLMapView updateAnnotationViews]
to bypass any of this drag-relatedtransform
setting entirely?@1ec5 @friedbunny @boundsj