Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Mousewheel zooms minimap despite both centerFixed and zoomLevelFixed being specified #159

Open
just-Addict opened this issue Sep 22, 2020 · 1 comment

Comments

@just-Addict
Copy link

With both centerFixed and zoomLevelFixed, when using the mousewheel over the minimap, instead of this event getting passed to the main map, the minimap itself zooms in/out.

I have tested and verified this too happens with the included example_fixedcenter.html when adding a zoomLevelFixed: 5, copied from the demo file example_fixedzoom.html.

@just-Addict
Copy link
Author

just-Addict commented Sep 23, 2020

Update: I could get around the minimap zooming in or out by setting a minZoom and maxZoom in the mapOptions, but that still did not solve the issue of the mousewheel event not being passed on to the main map.

In fact this makes the minimap to be nothing more than a luxury indicator showing the bounds of the main map through the size of the aimingRect. Admittedly I'd like it to be a little more than that in that at least the scrollwheel event gets passed on. Even better would be if I also could drag the aimingRect in this combination of options. (see #158)

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

No branches or pull requests

1 participant