Navigation Menu

Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Zoom slider displaying incorrect zoom level after clicking on a permant link to the map #4524

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: rickmastfan67
[Submitted to the original trac issue database at 8.23am, Wednesday, 15th August 2012]

This is happening in both IE-9 and FF15b4 for me.

Steps to reproduce:

  1. Click on this link: http://www.openstreetmap.org/?lat=36.5262&lon=-88.8314&zoom=13&layers=M
  2. Notice the zoom bar is set at z18, when you're loading a link for z13.
  3. Zoom in or out with your mouse or the "+/-" buttons on the zoom slider and then watch it jump to the correct zoom level.
@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 9.15am, Wednesday, 15th August 2012]

The problem here is that tmcw's new zoom control does a redraw on the changebaselayer event, and that recreates the zoom control, losing the position. The traditional zoom control doesn't do this redraw.

The same thing happens when you switch layers, for the same reason.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 6.24pm, Wednesday, 15th August 2012]

Fixed - the fix should deploy shortly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant