Support » Plugin: Extensions for Leaflet Map » elevation gpx seems to auto-center the map

  • Resolved akoelsch

    (@akoelsch)


    I’m trying to show the map given custom lat/lon and zoom level, but if I use elevation gpx it is automatically centered and zoomed over the track.

    [leaflet-map lat=47.532144 lng=10.9036715 zoom=14 !fitbounds]
    [elevation gpx="https://die-berge-rufen.de/wp-content/uploads/2021/10/Tagestour-Kreuzspitze.gpx" !legend !autofitBounds]
    [fullscreen]
    [zoomhomemap !fit]
    [hover]

    The same is true for the home button. If I understood correctly, it show the map section as configured in [leaflet-map], but it goes back to the gpx track.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author hupe13

    (@hupe13)

    elevation gpx it is automatically centered and zoomed over the track.

    This is true. Either I should change the documentation or the script. What do you think?

    Thread Starter akoelsch

    (@akoelsch)

    I would prefer it to be configurable with the fit parameters.

    Thread Starter akoelsch

    (@akoelsch)

    Great, thanks for the update!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.