6.0.2 issue in controller.animateTo()
See original GitHub issueIssue Type
[X ] Question [X ] Bug
Description and/or steps/code to reproduce the problem
I have a self written overlay whichs draw()
method line 1 is an if ( shadow || map.isAnimating() ) return;
.
Now when I send a controller.animateTo()
, my overlay painted with v6.0.1 after animation target was reached. However with v.6.0.2-SNAPSHOT from right now the draw()
method does not seem to get triggered after animation has finished. Consequently the overlay is not being drawn at all. Minimally touching and moving the map though triggers a correct overlay.draw()
.
I see no way to achieve a overlay draw after animation now.
Using controller.setCenter()
instead of animateTo()
works fine, so problem seems to come from the animation.
Environment
Found this behavior change on all 3 tested emulators.
If it’s a bug, version(s) of android this affects:
fully reproducible on 7.1.1, 8.1 very often reproducible on 6.0
Version of osmdroid the issue relates to:
6.0.2-SNAPSHOT
Issue Analytics
- State:
- Created 5 years ago
- Comments:32
side note: whoever added/updated the Animate To sample did an awesome job! Fantastic idea. I’m using that demo, which does call animateTo and onScroll and onZoom events are both firing. What am I not understanding?
If I sum up:
MapController.animateTo
with zoom AND geopoint at the same timeIMapController
andMapListener
interfacesMapListener
eventsMapListener
cannot deal with zoom change and geopoint change at the same timeMapListener
with zoom, geopoint and zoom+geopoint events using anOverlay
with no displayHence the questions:
ScrollZoomEvent
class extendingMapEvent
, and upgradeIMapController
andMapListener
? As they areinterface
s, it won’t be harmless for apps already using the libraryIMapController
,MapListener
,MapEvent
,ScrollEvent
andZoomEvent
, and recommend the use ofOverlay
instead?