Page MenuHomePhabricator

Auto position/zoom not working on maplink when data is loaded asynchronously.
Closed, ResolvedPublic

Description

The code that auto calculates the center/zoom of the map (when not explicitly specified) is executed synchronously, though the map group data may come asynchronously.

As a consequence, at the time the setView method is executed, the map does not contain all the data layers that should go into the bounds calculation, thus leading to incorrect position and zoom.

Event Timeline

Change 296447 had a related patch set uploaded (by JGirault):
Fix auto position/zoom not working on maplink.

https://gerrit.wikimedia.org/r/296447

Change 296447 merged by jenkins-bot:
Fix auto position/zoom not working on maplink.

https://gerrit.wikimedia.org/r/296447