• Resolved codade

    (@codade)


    Hi,

    I’m currently trying your awesome Leaflet OSM Plugin with its mutltiple features (i.e. the interactive elevation profile) provided through the extensions plugin. Currently I’m using another wordpress plugin for my homepage and plan to migrate to Leaflet.

    Apart from transforming all shortcodes from the page to the new syntax, I was also wondering if there’s a feature which auto-generates an overview map. The plugin currently in use offers the possibility to set the geo_info (lat/lon) as well as the icon to be displayed as post option for every post. The plugin grabs all the geo information stored in the database for all posts (if turned on in the shortcode) and auto-generates a map with the markers set with the respective icon positioned at the given place as well as links to the post in the marker info text. This makes it quite easy to quickly generate an overview map which auto-updates, if the set icon, link or name of the post changes.

    I couldn’t find out how apply a similar logic with the leaflet plugin, is it possible and if, how? One could also further enrich this feature by also integrating the thumbnail in the marker info text.

    Thanks

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

    (@hupe13)

    My focus is more on integrating Leaflet plugins and some custom functionality for Leaflet. I did not use pages and posts as data source for the maps. The shortcode leaflet-directory has a similar function, but searches recursively files in a directory.

    Maybe is it possible to search, copy and adjust in the plugin you use.

    Thread Starter codade

    (@codade)

    Hi hupe13,

    thanks for your quick reply and sorry for my late one. I figured a way how to integrate the wished feature based on the logic the old plugin used. I defined a shortcode in my functions.php, which I can share, if you’re interested in integrating it into the plugin. Just let me know, how I can provide the information.

    While integrating the shortcode with the plugin I noticed two other problems:
    1) The Popup infotext provided as part of the link between the shortcode brackets is put inside a div_wrapper. The same doesn’t hold for the tooltip/hover info, which is why the layout differs when I tried to integrate a post thumbnail and post title inside an extra div with its own css.

    2) When showing more than one track in the elevation map, there’s no way to display a custom icon via the gps symbol, although this works with only one track.

    Thanks for your help!

    • This reply was modified 1 year, 4 months ago by codade.
    Plugin Author hupe13

    (@hupe13)

    I defined a shortcode in my functions.php, which I can share, if you’re interested in integrating it into the plugin.

    Immer her damit: Mailadresse auf dieser Seite unten.

    div_wrapper.

    Maybe this is from you theme. Do you have an URL to a test page?

    one track – multiple tracks on one map and icons

    The author of leaflet-elevation, Raruto, has much more knowledge than I do. Some things I just don’t understand. I have adapted this example.

    Thread Starter codade

    (@codade)

    Hi,

    just sent you a mail.

    You’ll find a test site at: https://draussentutgut.de/leafletmaptest/
    Seems like the icon handling is completely different when opting for multielevation. In that case a standard icon is loaded and no icon information is read from the gpx. Maybe you find out how to change specific icons or if this doesn’t work at least define a default custom icon. Moreover there’s no possibility to define the place of the elevation chart (detached or not) and whether it is displayed or shrinked to an icon.

    Thanks

    Plugin Author hupe13

    (@hupe13)

    Multielevation and icons: There is an option in the leaflet-elevation plugin for the icon. I will provide it. But these are only the starting points, waypoints are filtered out.

    Plugin Author hupe13

    (@hupe13)

    Version 3.5.3 with the new shortcode [overviewmap] is released. Thank you for your suggestions.

    Moreover there’s no possibility to define the place of the elevation chart (detached or not) and whether it is displayed or shrinked to an icon.

    I smoothly overlooked this question, sorry. There are options for this. Take a look to chart, detached, position, height,width.

    Thread Starter codade

    (@codade)

    Thanks for integrating this feature. Works like a charm.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Overview Map with markers defined in posts’ is closed to new replies.