• Hi Joe. I’d like to create an “index map”, that includes serveral GPX tracks, and when the users clicks on one of these tracks, it opens the popup where I put the elink to the page dedicated to that track.

    Is it possible to disable zooming/panning by the user? This track should be used as an index only, I don’t want users to play with it.
    I could not find any shortcode parameter to do that…

    Second point (this seems to be an issue): when you click on a track, open the popup and then close it, it seems like your’re not able to open it anymore. The first time, as soon as you hover the track, you have a popup label with the track name: you click on it, and then you get the popup with the picture/link/etc. After you close it, when you’re hovering the track again, the popup label does not show up anymore, and if you simply click on the track nothing happens.

    Thanks & bye!
    A.-

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

    (@morehawes)

    Hi @mistermagoo8691,

    Is it possible to disable zooming/panning by the user?

    Unfortunately this is not currently possible. I tried to come up with a work-around that I could provide, but ran into problems. Being able to “lock” a map is definitely on my to-do list.

    when you click on a track, open the popup and then close it, it seems like your’re not able to open it anymore.

    I believe this has already been fixed in the development release, do you see the same behaviour on this Map?

    Cheers,

    Joe

    Thread Starter Angelo Mariani

    (@mistermagoo8691)

    Unfortunately this is not currently possible. I tried to come up with a work-around that I could provide, but ran into problems. Being able to “lock” a map is definitely on my to-do list.

    Ok, thanks!

    I believe this has already been fixed in the development release, do you see the same behaviour on this Map?

    Yes, exactly the same. In addition, on this map, when I click on the track for the first time, the maps moves a little bit but does not show any popup message. From second time on, when I click, nothing happens…
    (both with Chrome and Edge).

    Oh, I noticed something: when you click on the other map, it “resets” the other. I mean: I hover on the green map, I see the “Comox lake loop” message, I click… nothing happens. Hover/click again on the green one, nothing. Then I hover on the red, I see “Trent canyon loop”, I click, nothing… but now if I hover again on the green map, I see “Comox lake loop” again. Same behaviour both in Chrome and Edge ??

    Bye!
    A.-

    Plugin Author Joe

    (@morehawes)

    Thanks for the extra detail. I have added some content to the Lines in the linked example so there is popup window content and I think I understand now…

    If you close the Line popup (i.e. Type, Title, Image and Description info) you are not able to re-open it without first closing the elevation chart (either by closing it, or opening another). Do I have that right?

    If so I will add it to the list of bugs!

    Cheers,

    Joe

    Thread Starter Angelo Mariani

    (@mistermagoo8691)

    if you close the Line popup (i.e. Type, Title, Image and Description info) you are not able to re-open it without first closing the elevation chart (either by closing it, or opening another). Do I have that right?

    Nono, forget about the elevation chart. On your example, you have 2 tracks. If I open & close the popup on track 1, I cannot re-open once more the popup on track 1 before opening and closing the popup on track 2 (and vice versa, of course). If I try re-opening the popup on the same track, I fail… until I don’t open/close the popup on the other track. It’s like opening a popup on a track “clears the bug” for the other track ??

    See the screencast video I uploaded here, I think it is quite self-explanatory.

    Bye!
    A.-

    Plugin Author Joe

    (@morehawes)

    Hi @mistermagoo8691,

    Thanks for the video, that’s a big help… think we are on the same page ??

    Please take a look at the same Map, except with elevation data removed.

    When the elevation chart is “active” the Line changes appearance and that is causing this behaviour.

    Did I get it this time?! :0)

    Thanks again,

    Joe

    P.s. I have been giving some thought to adding the ability to disable/lock zooming/panning.

    Thread Starter Angelo Mariani

    (@mistermagoo8691)

    Wow @morehawes, without the elevation graph, it works like a charm!
    Great job, thank you so much!… looking forward to seeing zoom/pan locked ??

    Bye!
    A.-

    P.S. are you still living in that awesome tiny house? ??

    Plugin Author Joe

    (@morehawes)

    Glad that sorted it! Live no, but it makes for a rather nice office ??

    Cheers,

    Joe

    Thread Starter Angelo Mariani

    (@mistermagoo8691)

    Hi Joe, I am looking forward to seeing the result of your thoughts ??

    > I have been giving some thought to adding the ability
    > to disable/lock zooming/panning.

    Is it hard to be done? Because I am managing to have more than one map in my pages, and when you “scroll down” the page with the mouse wheel, very often the mouse scrolling is intercepted by one of the maps => it zooms in unexpectedly…

    Last: aren’t you accepting donations for this plugin? I wwould feel less uncomfortable asking for changes if I just paid at least some bucks :-)))

    Bye!
    A.-

    Plugin Author Joe

    (@morehawes)

    Hi @mistermagoo8691,

    when you “scroll down” the page with the mouse wheel, very often the mouse scrolling is intercepted by one of the maps => it zooms in unexpectedly

    Yes this can be a bit annoying. Waymark does use a plugin to help with this, but I agree that this could be improved.

    Last: aren’t you accepting donations for this plugin? I wwould feel less uncomfortable asking for changes if I just paid at least some bucks :-)))

    Getting feedback (including reviews!) is payment enough ??

    Cheers,

    Joe

    Thread Starter Angelo Mariani

    (@mistermagoo8691)

    Ok, so I am just left with the option of bothering you asking for news about the “disable zooming & panning” option that I am really longing to see ??

    One small gift back: your “SHORTCODES” online documentation is missing the “show_elevation” option, please add it ?? Is there any other very interesting options like this one missing in the docs?

    Bye!
    A.-

    Plugin Author Joe

    (@morehawes)

    your “SHORTCODES” online documentation is missing the “show_elevation” option

    Added! ??

    Joe

    Thread Starter Angelo Mariani

    (@mistermagoo8691)

    Joe, I’ve maybe found how to solve the “issue” with the mouse wheel that is scrolling the map as soon as you get close to it while scrolling down the page with your mouse wheel. Actually, I must amend my original request: this is the real issue I have. Honestly I don’t care if the users zoom in my “collection” maps, the point is that it is currently so easy to accidentally zoom into maps while scrolling the webpage with the mouse wheel. This is why I asked for a shortcode option to disable the scrolling: I did not think about any smarter and alternative solution… but there is one!

    See here, the original poster had my same issue:
    https://gis.stackexchange.com/questions/111887/leaflet-mouse-wheel-zoom-only-after-click-on-map

    They are proposing several solutions, the one accepted starts with “It’s simple:” ??
    (Yes, these are solutions proposed for those using Leaflet)
    Basically, the solution is based on the fact that the zoom is enabled only after you CLICK on a map. That’s exactly what we need…

    (Crossing fingers ??

    Plugin Author Joe

    (@morehawes)

    @mistermagoo8691,

    I have increased the Leaflet.Sleep wakeTime from 1 second to 2 seconds to improve this in the development branch.

    Cheers,

    Joe

    Thread Starter Angelo Mariani

    (@mistermagoo8691)

    Wow, it is better indeed! thanks once more Joe ??

    Thread Starter Angelo Mariani

    (@mistermagoo8691)

    @joe, I wanted to increase the waketime. Therefore I’ve searched through your files, I’ve found the “waketime = 2000” in the assets\dist\waymark-js\js\waymark-js.js file, I’ve changed the timeout to 20000, I deactivated & reactivated the plugin… but the timeout using the maps did not change at all (also after clearing the browser cache).

    Is this black magic? ??

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Disable user zooming/panning on a map’ is closed to new replies.