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

    (@hupe13)

    You need only one: Either leaflet-gpx or elevation. leaflet-gpx shows the track only, elevation shows the track and the elevation profile.

    [leaflet-map fitbounds]
    [elevation gpx="https://clarifycreate.com/wp-content/uploads/gpx/routeburn-track.gpx"]
    Thread Starter colinrc

    (@colinrc)

    Still no go, the map is now not being drawn at all. It is like the elevation component cannot read the GPX file, I know the path is correct ( it downloads the file in a browser).

    Is there a JS demo site around anywhere I could point to the GPX to make sure it is not some issue with the file format?

    I am having the same issue across multiple maps but I think they were all created by a Garmin device.

    Plugin Author hupe13

    (@hupe13)

    Oh, I get an error also with the actual version. First I tested your track with the new version of the plugin (from Github), this works.
    I’m searching …

    Plugin Author hupe13

    (@hupe13)

    Delete all “</trkseg><trkseg>” in the gpx file, then it works with the current version also.

    Thread Starter colinrc

    (@colinrc)

    Thankyou for looking and for the really fast response.

    Are you planning on doing a new release any time soon?

    I’m deciding whether to load up the git version as I have quite a few tracks to edit.

    Plugin Author hupe13

    (@hupe13)

    Are you planning on doing a new release any time soon?

    yes, this week.

    Thread Starter colinrc

    (@colinrc)

    Cool, I will wait for that and see what happens.

    Thanks again for the really quick response and for looking

    Thread Starter colinrc

    (@colinrc)

    That seems to have solved it (pending page caching issues that are my problem…)

    Thanks for the good work!

    Thread Starter colinrc

    (@colinrc)

    Hello again,
    Unfortunately there is more going on, there seems to also be a conflict with Meow Gallery , when it is on the same page the map will not load.
    I’ve done some debugging and it looks like the registerLocale function is not present in the global L. object when Meow is there

    I am happy to do some more hunting; it would be easier if I can download all the files to look at. You mentioned a GitHub version, is there one rather than the SVN one ?

    Plugin Author hupe13

    (@hupe13)

    I’m happy, if you test the Github version. There is a new version of leaflet-elevation and I fixed the bug about locale_accept_from_http().

    Thread Starter colinrc

    (@colinrc)

    Hi,
    Sorry for the delay, for some reason the forum stopped sending me update messages. The problem still persists but I think I have worked out what is happening.

    I use a plugin for a photo gallery, Meow Gallery and Lightbox. The Pro version of these plugins include a mapping component that also uses Leaflet, that seems to cause the conflict.

    Meow have tried to code around it at their end but have been unable to; I’m wondering if it is easier at your end?

    I have a test site which illustrates the behaviour and can give you admin access to the site if it’s useful.

    URL’s that demonstrate the issue…

    https://test.colincanfield.me/testing-leaflet-speed/
    (the second map should have the elevation rendered).

    https://test.colincanfield.me/testing-leaflet-with-meow/
    (Elevation does render).

    sorry about the misleading URLs, I don’t want to change them as I have included them in support requested already.

    If I change the plugins to the non-pro versions the page works.

    By looking at the version numbers it looks like the Github version is now the published version ?

    Thanks for your help,

    Let me know if you would like access.

    Plugin Author hupe13

    (@hupe13)

    If I change the plugins to the non-pro versions the page works.

    The content of leaflet.js ist loaded twice, in the Meow Gallery and Lightbox plugin and in the Leaflet Map plugin. At the moment I don’t know how to handle this. But I will try, please be patient.

    By looking at the version numbers it looks like the Github version is now the published version ?

    Yes and No. Both versions are newer than 2 months ago. The Github version has a bug fix in files listing and some new features for elevation, see here.

    Plugin Author hupe13

    (@hupe13)

    Are you able to change some code? If yes, please change in wp-content/plugins/extensions-leaflet-map/php/enqueue-leafletplugins.php this code from

    wp_enqueue_script( 'Leaflet.i18n',
        plugins_url('leaflet-plugins/Leaflet.i18n/Leaflet.i18n.js',
      	LEAFEXT_PLUGIN_FILE),
      	array('elevation_js'),null);

    to

    wp_enqueue_script( 'Leaflet.i18n',
        plugins_url('leaflet-plugins/Leaflet.i18n/Leaflet.i18n.js',
      	LEAFEXT_PLUGIN_FILE),
      	array('wp_leaflet_map'),null);

    Does this work?

    Please install and activate https://www.ads-software.com/plugins/query-monitor/. Does this give any error messages?

    Maybe I do need admin access or a trial version of Meow Gallery and Lightbox Pro for testing.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Elevation no longer showing?’ is closed to new replies.