• Resolved Angelo Mariani

    (@mistermagoo8691)


    Hi Joe. I am showing one of “your maps” in each of my pages (I have an hiking website).
    The map is in the middle of the page, and the user is arriving to that point very often by using the mouse wheel. The “issue” is that, if the mouse arrow is exactly over the map when you want to “wheel away” from that point of the page, you get an unexpected zooming of the map.

    I asked to you already months ago: “to avoid this, could you please activate the zooming with the mouse wheel only after a click of the user in the map?” and you told me “no, I can’t, but I can increase the timeout of the “zoom activation” to 2 seconds”. It does not solve the issue, unfortunately: I am still getting a lot of unexpected zoomings…

    Therefore, here are my 2 new “feature requests”:
    1) instead of activating the zoom by the mouse wheel only after clicking it, couldn’t you activate the zoom only if the user is ALSO keeping the CTRL key pressed down? I have seen this behaviour in another website, and I think it is very effective.

    2) could you please add a “reset” button on the maps that is RESTORING the original zoom & position of the map?

    If you want to experience the “uncomfortable user experience”, browse this page from a PC:

    https://www.sentierigressoney.it/sentieri-di-gressoney-la-trinite/

    You will see that, when you arrive to the big “collection” map after scrolling down the page with the mouse wheel and you start looking at it, you will start having annoying zooming when you want to “wheel away”. It is not clear to the users that the mouse wheel is working differently than what they are expecting, so they try to go away from there trying to drag the scrollbar, but they fail and they drag the map!, and the map is no more showing the trails, and you cannot find them anymore (here is where the “restore map” button would come in help!

    Thanks Joe in any case. I am a huge user & fan of your plugin, that is used so extensively in all the pages of my website. And I 99.9% love it, I’d just want to fix that 0.1% stil missing ??

    Bye!
    A.-

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joe

    (@morehawes)

    Hi Angelo,

    Nice to hear from you and apologies for my delayed response.

    I am still getting a lot of unexpected zoomings…

    I do hear you and I appreciate your patience with this. This is a fundemental issue with embedding interactive content within a web page, not just Waymark and Maps. This is also a non-trivial problem to fix, especially when you consider all of the possible theme/browser/device(mobile? desktop?)/input(finger? mouse?) combinations.

    There are a few different ways of handling this, the biggest problem is finding a solution that works well for the maximum number of users in most situations. Yes there are plugins available that address this issue, but I would rather take my time and get it right, instead of integrating third-party code. Once it is added it is hard to take it away.

    I am trying to do something different with Waymark. I aspire to make good software. This means not trying to please everyone.

    I think adding an Setting that allows site administrators to choose what method (X second delay/button/”lock”/other?/none?) is used to address this issue might be a good way to go. I have added this to my To-Do list, feel free to add more comments there.

    instead of activating the zoom by the mouse wheel only after clicking it, couldn’t you activate the zoom only if the user is ALSO keeping the CTRL key pressed down? I have seen this behaviour in another website, and I think it is very effective.

    I do not agree that a keyboard modifier is a good solution. What about mobile users where a keyboard may not be available?

    could you please add a “reset” button on the maps that is RESTORING the original zoom & position of the map?

    I actually really like this! Added to my To-Do list ??

    Part of the reason that this has not been addressed yet is because I am planning to do a *major* overhaul of the plugin. I am considering adding the ability for admins to easily integrate Leaflet plugins themselves, as well as “callback” functions that will allow custom functionality to be built on-top of the core plugin… without needing to ship features to all users.

    And I 99.9% love it

    If that is the case then a review would go a long way.

    Cheers,

    Joe

    Thread Starter Angelo Mariani

    (@mistermagoo8691)

    Hi Joe, thanks for your answer!

    I am trying to do something different with Waymark. I aspire to make good software. This means not trying to please everyone.

    From my standpoint, the “mouse wheel unwanted zooming” is the only relevant issue in your plugin, and I would appreciate a lot any quick & dirty solution to this one :-), but I understand your standpoint as well and I am accepting it. I am just hoping that the solution to this one can come out before the end of the major overhaul of the plugin you are planning, otherwise it means I need to wait for a long long time…

    I do not agree that a keyboard modifier is a good solution. What about mobile users where a keyboard may not be available?

    Please note: I am not asking to request the user to press the CTRL key also when he wants to zoom by clicking on the + or – buttons with the muse. I am asking to require the CTRL key pressure only when the user wants to zoom using the mouse wheel.

    Look at this website that I’ve found:

    https://www.caimontilattari.it/sentiero/325/

    Please check the map on the top of the page. If you use the wheel while the mouse cursor is over the map, you have the warning message “Please press the CTRL key if you want to zoom with the mouse wheel”. If you press the CTRL key, then you can use the wheel & zoom. This is a very good solution, in my mind.

    On mobile, the issue is not replicable because you don’t use any mouse wheel to scroll the page on mobile…
    On mobile, you’re scrolling the page by swiping your finger, and it is not so easy to accidentally touch the map because swiping is normally done on the left or right border of the screen. In case you accidentally touch a map, the map would simply move, and not zoom in. It’s the unwanted zoom in (and then the unwanted zoom out, as soon as you notice it and try to “wheel back”) that is very annoying, when you’re using it on a PC…

    I actually really like this! Added to my To-Do list ??

    Great! A reset button would help a lot already…

    If that is the case then a review would go a long way.

    Ops, I thought I did it already. I am going to do it right now ??

    Bye!
    A.-

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Re-center button?’ is closed to new replies.