• Resolved akoelsch

    (@akoelsch)


    If I use [elevation gpx] to include a track, the control icons (zoom and home) are missing.

    Workaround: include the track twice with [elevation gpx] and [leaflet-gpx]. Since this also includes the waypoints twice, one should also use [hidemarkers].

    Not sure if this is a bug or intended behavior…?

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

    (@hupe13)

    This uses the standard zoom buttons from leaflet-map:

    [leaflet-map fitbounds zoomcontrol]
    [elevation gpx="...."]

    This uses Zoomhome:

    [leaflet-map fitbounds]
    [elevation gpx="...."]
    [zoomhomemap]

    leaflet-gpx and elevation are using different methods displaying the track, geojson resp. gpx.js. You should only use one of them: leaflet-gpx if you don’t want an elevation profile, elevation shows an elevation profile.

    P.S.: Maybe I should document it better.

    • This reply was modified 3 years, 2 months ago by hupe13.
    Thread Starter akoelsch

    (@akoelsch)

    Yeah, that’s what I thought. The latter doesn’t work though. It only works if I add a [leaflet-gpx] or [leaflet-marker] which apparently has to be added *before* [zoomhomemap]

    • This reply was modified 3 years, 2 months ago by akoelsch.
    Plugin Author hupe13

    (@hupe13)

    The latter doesn’t work though

    Which code you are using? Do you have a link to your site?

    Thread Starter akoelsch

    (@akoelsch)

    Sure. https://die-berge-rufen.de/2021/09/06/3-gipfeltour-ueber-rotspitze-heubatspitze-und-breitenberg/

    [leaflet-map fitbounds]
    [leaflet-marker lat=47.483831 lng=10.388992]Parkplatz S?ge[/leaflet-marker]
    [elevation gpx="https://die-berge-rufen.de/wp-content/uploads/2021/09/3-Gipfeltour-Rotspitze-Heubatspitze-Breitenberg.gpx" !legend]
    [fullscreen]
    [hover]
    [zoomhomemap]

    If I remove the leaflet-marker, the control icons are gone

    Plugin Author hupe13

    (@hupe13)

    Thread Starter akoelsch

    (@akoelsch)

    There are none. Would they be necessary? I added a marker using the shortcode. If I remove this line, the control icons are gone

    Plugin Author hupe13

    (@hupe13)

    The marker is necessary in the actual version of the plugin. You can test the new one from Github.

    Thread Starter akoelsch

    (@akoelsch)

    Ahh, cool. Will I still get the updates from WordPress if I just clone the github code now?

    Plugin Author hupe13

    (@hupe13)

    I have a clone in an extra directory e.g. plugins/extensions-leaflet-map-github and activate either the original or that from Github. But don’t delete one of these plugins via the admin interface. All your settings for that plugin will be deleted.

    Thread Starter akoelsch

    (@akoelsch)

    Good idea. Works now. For some reason, both Plugins are named “Extensions for Leaflet Map Github” in the wp dashboard now.

    Plugin Author hupe13

    (@hupe13)

    Interesting. In my admin interface shows:

    Extensions for Leaflet Map
    Activate | Translate
    	
    
    Extensions for the WordPress plugin Leaflet Map
    Version 2.1.1 | By hupe13 | View details
    	
    Extensions for Leaflet Map Github
    Deactivate | Translate | Settings
    	
    
    Extensions for the WordPress plugin Leaflet Map
    Version 2.1.1 | By hupe13 | Visit plugin site

    Take care of the links, when you click one. It should be extensions-leaflet-map or extensions-leaflet-map-github.

    I have Loco Translate installed, that’s why shows “Translate”.

    • This reply was modified 3 years, 2 months ago by hupe13.
    • This reply was modified 3 years, 2 months ago by hupe13.
    Thread Starter akoelsch

    (@akoelsch)

    Hmm, strange. Anyways, thanks for fixing this bug ??

    Edit: I just found out, it was because I pasted the last release from github over the wp-release plugin files. oups

    • This reply was modified 3 years, 2 months ago by akoelsch.
    Thread Starter akoelsch

    (@akoelsch)

    unrelated to this bug, but probably worth noting: The current github version of the plugin tries to load some invalid tiles when the map is loaded. I didn’t want to create a separate ticket for this, since this plugin version is still unstable

    Plugin Author hupe13

    (@hupe13)

    NS_BINDING_ABORTED? I see this also, but I don’t know, how to solve this.

    Thread Starter akoelsch

    (@akoelsch)

    No, just some 400’s that showed up in the console. But I cannot reproduce it at the moment :-/

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘[elevation gpx] breaks control items’ is closed to new replies.