Support » Plugin: Waymark » Show a marker on the “centre” location

  • I am designing my hiking website so that it will show not only the “normal” map with the complete GPX trail, but also some small “highlight maps”, with a zoom on the start/end location.

    The “complete maps” are pre-generated in the “Waymark maps” section, and I am using the classic shortcode to show them.
    Example:
    [Waymark map_id="3430"]

    But the “hihglight maps” are generated “on the fly”, using a shortcode that shows a map centered on the desired location passing the coordinates in the shortcode.
    Example:
    [Waymark map_centre="45.8074769645311,7.82282659261358" map_height="300" map_zoom="16" basemap="OpenTopoMaps"]

    I am dreaming of an option to show, on the “centre” location, a marker 🙂 This way these “highlight maps”, which aim is just to focus on a particular point, whould highlight explicitly the focus point (right now the focus point is simply “centerd” in the map: good, but it could be better).

    See the “Marker_centre” flag here:

    [Waymark map_centre="45.8074769645311,7.82282659261358" marker_centre="1" map_height="300" map_zoom="16" basemap="OpenTopoMaps"]

    Yes, I know: I could pre-generate these highlight maps as well, and add the marker wherever I want. But it would be really time-consuming: my website will contain about 50 trails, and I would like to avoid generating additional 100 mini-maps by hand (instead, my shortcodes for the highlight maps are currently automatically generated with the help of a formula in an Excel sheet)…

    I know I am continuously asking for something, but my website is really leveraging a lot on your plugin 🙂

    Bye!
    A.-

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

    (@morehawes)

    Hi @mistermagoo8691,

    I am dreaming of an option to show, on the “centre” location, a marker 🙂 This way these “highlight maps”, which aim is just to focus on a particular point, whould highlight explicitly the focus point

    I like this, I’ll add it to the list!

    I know I am continuously asking for something

    No problem, as long as you don’t expect any features to be included any time soon! :0)

    I work on Waymark in my limited spare time and priorotise features that I myself need (the list is long), followed by popular requests.

    but my website is really leveraging a lot on your plugin

    I’m glad you find the plugin so useful! Waymark is open source, so if you can’t wait for me for a feature then I would recommend hiring a developer to contribute.

    Making any changes available through a pull request would be a great way to contribute to the plugin!

    Cheers,

    Joe

    Thread Starter Angelo Mariani

    (@mistermagoo8691)

    Thanks Joe!

    It is a personal website (about hiking in the Alps), therefore I can wait 🙂

    In the meanwhile, if anyone wants to see the exact point, I’ve addded a “see it in google maps” link (google maps allows you to easily build an URL that shows a map centered on a visible marker: it’s a terrible workaround, but I think acceptable for my website).

    Bye!
    A.-

    Plugin Author Joe Hawes

    (@morehawes)

    @mistermagoo8691,

    Glad you found a solution. I’ll have a think about this.

    Cheers,

    Joe

    Plugin Author Joe Hawes

    (@morehawes)

    Hi @mistermagoo8691,

    I have got this working and will roll it into the next development release. This supports the following Shortcode parameters (hopefully self-explanatory):

    [Waymark marker_centre="54.526814,-3.017289" marker_type="shelter" marker_title="Emergency Shelter" marker_description="Built in 1590 as a shelter for shepherds and their trusty dogs." marker_image="https://www.waymark.dev/wp-content/uploads/2019/11/UNADJUSTEDNONRAW_thumb_6458-1024x768.jpg"]

    However as that won’t be for a while (even this takes a surprising amount of time!), you can download the development version containing this change here.

    If you do check out this version, because this is the development branch, please proceed with caution (i.e. always backup, not production ready!!!).

    Please do let me know how you get on with it.

    Cheers,

    Joe

    • This reply was modified 9 months ago by Joe Hawes.
    Thread Starter Angelo Mariani

    (@mistermagoo8691)

    WOW! That’s awesome, thanks Joe! My website is not in production yet (still a couple of months of contribution ahead), therefore from now on I’ll be using the developement version only, testing it thoroughly (each of my pages contains at least 4 Waymark maps…)

    I will install it tomorrow, looking forward to it!
    Bye,
    A.-

    Thread Starter Angelo Mariani

    (@mistermagoo8691)

    (
    Couldn’t resist, installed it now, it works great! see here:
    https://imgur.com/a/o3D342N
    Thanks again!
    )

    Plugin Author Joe Hawes

    (@morehawes)

    @mistermagoo8691,

    Glad that works for you, I think it’s a nice addition so thanks for the suggestion. I have merged this into the development branch so it will be available in the next release.

    Cheers,

    Joe

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Show a marker on the “centre” location’ is closed to new replies.