Norkart / Leaflet-MiniMap

A minimap control plugin for Leaflet
BSD 2-Clause "Simplified" License
388 stars 124 forks source link

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

Open just-Addict opened 3 years ago

just-Addict commented 3 years ago

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 commented 3 years ago

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)