Mapbox Android Plugins are a collection of libraries that extend our other SDKs, helping you design powerful mapping features while the plugins handle most of the heavy lifting.
After an orientation change it seems like DraggableAnnotationController doesn't update its touchAreaMaxX and touchAreaMaxY. This causes the dragging of the annotation to stop efter reaching the X value of the screen width in portrait mode when in landscape (if the map is started in portrait and vice versa if started in landscape but with the Y value).
this is what triggers the stopDragging in DraggableAnnotationController:
After an orientation change it seems like
DraggableAnnotationController
doesn't update itstouchAreaMaxX
andtouchAreaMaxY
. This causes the dragging of the annotation to stop efter reaching the X value of the screen width in portrait mode when in landscape (if the map is started in portrait and vice versa if started in landscape but with the Y value).this is what triggers the stopDragging in
DraggableAnnotationController
:Should it instead check the
mapView.width
andmapView.height
instead of thetouchAreaMaxX
/touchAreaMaxY
?