Update map/mwm_url.cpp

Co-authored-by: Viktor Govako <viktor.govako@gmail.com>
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
This commit is contained in:
Roman Tsisyk 2023-11-25 00:19:11 +03:00 committed by GitHub
parent fff5161dee
commit 3de66e4fd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -461,7 +461,9 @@ void ParsedMapApi::ExecuteMapApiRequest(Framework & fm)
// ShowRect function interferes with ActivateMapSelection and we have strange behaviour as a result.
// Use more obvious SetModelViewCenter here.
fm.SetViewportCenter(center, zoomLevel, true, true);
/// @todo Funny, but animation is still present, but now centering works fine.
/// Looks like there is one more set viewport call somewhere.
fm.SetViewportCenter(center, zoomLevel, false /* isAnim */, true /* trackVisibleViewport */);
// Don't show the place page in case of multiple points.
if (m_mapPoints.size() > 1)