OpenGIS / Waymark

Waymark adds powerful mapping features to WordPress that are easy to use. Create beautiful, interactive Maps that you can customise to suit your needs.
https://www.waymark.dev
GNU General Public License v2.0
20 stars 6 forks source link

Feature Request: Ability to change elevation units on a per map basis #22

Closed randombuffalo closed 11 months ago

randombuffalo commented 11 months ago

Hi there! We love the plugin and are using it for an upcoming website launch. Instead of just a global option for units, it would be great if we could change the unit type on the elevation profile on a per map basis. Either by adding a shortcode parameter or by setting the option on the map editor. This would allow us to show maps/routes in the same unit as the region in the map uses.

Maybe this is already a thing but I couldn't find documentation to support it. Thanks for your time!

morehawes commented 11 months ago

Hi @randombuffalo,

Thanks for your suggestion. I have just added the ability to specify the elevation units (metric or imperial) through the Shortcode in the latest release (v0.9.28.5). You can do so like this:

[Waymark map_id="1234" elevation_units="metric"]

Please let me know if you experience any issues with this.

Cheers, Joe

randombuffalo commented 11 months ago

Thanks @morehawes! really appreciate you being open to the request. I'll test it out and let you know if we have any feedback!

morehawes commented 11 months ago

You’re welcome. Please star the GitHub repo/leave a WordPress review if you like the plugin as that really helps :)

Cheers,

Joe