Waymark
Create beautiful, interactive Maps with Waymark.
Install in
- Overlays – Create Markers, Lines and Shapes with a:
- Title
- Image (Media Library or link to external image)
- Description (Rich text editor, HTML supported)
- Type (defined in Settings)
- Import
- GPX
- KML
- GeoJSON
- EXIF (Image location metadata)
- Elevation data (adds an interactive profile chart for Lines with elevation data)
- Meta – Add extra information to your Maps; these are customisable form inputs that allow you to add additional content to your Maps.
- Types – Set options to visually distinguish between Overlays (colours/icons etc.), then select it when using the Editor.
- Collections – Group Maps together and display multiple Maps at once. Create complex Collection hierarchies to suit your needs and associate Maps with multiple Collections.
- Submissions – Allow registered users, or guests to create Maps from the front-end of your site. You can control who can Submit Maps, what editor features are available and whether submissions should be approved before they are published.
🌟 GitHub
👐 WordPress
📖 Demo & Help
Displaying Maps
Embed your Maps using the [Waymark] Shortcode, or link to the Map Details page.
- Shortcodes
- Display a single Map, or a Collection of Maps anywhere that Shortcodes are supported.
- An optional Shortcode Header displays the Map/Collection title, a link to the Map Details page and any Meta.
- Display a Marker defined through the Shortcode.
- Display a Basemap only, without any Overlays by providing centre and zoom parameters.
- Basemaps – Uses OpenStreetMap by default, with support for multiple raster tiled/”slippy” Basemaps. You can switch Basemaps using the Overlay Filter.
- Overlay Filter – Allow the user to filter which Overlays are currently visible on the Map.
- Image Viewer – Click an Overlay image to view it over the Map, step through every image on the Map with the Previous/Next buttons or arrow keys, and open the original full-size file in a new tab.
- Export
- (Optionally) Let anyone Export Maps into GPX, KML and GeoJSON formats through the Shortcode Header or on the Map Details page.
- Works on mobile devices.
Customising
Built to be flexible, Waymark has lots of Settings and Types provide one place to control how Overlays (Markers/Lines/Shapes) are displayed.
Marker Icons can be provided as:
– Font Icons (Ionic Icons v2/Font Awesome v4)
– Simple Text, or Emojis (i.e. 🏕️, 🚩, 📸).
– Custom HTML (good ol’ <img src="https://example.com/icon.svg">, or a more complex structure). So you can pretty much create any kind of Icon you want.
For developers:
- Most elements can be styled using CSS and have sensibly named
waymark-classes. - WordPress integration:
- Geographical data is stored in GeoJSON format. Types are specified using the
typeProperty, i.e.{feature: { geometry: { type: 'Point', coordinates: [0, 0] } }, properties: { type: 'Alert', title: 'Bridge Removed!' }. - Specify which GeoJSON feature properties to store when importing (Settings > Overlays > Properties). These can be automatically appended to the Overlay Description, or accessed programmatically via the
layer.feature.propertiesObject. - Maps are displayed using the Leaflet JavaScript library, which is bundled with Waymark and can be extended using the
waymark_loaded_callbackcallback function.
User Examples
- Association Franc-Comtoise du Chemin de Compostelle – eGuide
- Cres & Lošinj Trail – Lošinj Trail 2025
- hikingTICINO
- Horizontes – PT281
- Il Cammino del Lago Maggiore – Le 11 tappe
- Merritt Mountain Bike Association – Iron Mountain
- Trekkaholic – Trekking al lago Bianco in Alpe Veglia
- Via Apsyrtides
- Zadar Archipelago – Interactive Map
- Zagorje Outdoor – Konjička staza broj 10
Development
Note: Docker, Node.js and NPM required.
# Clone the repository
git clone https://github.com/opengis/waymark-wp.git
# Navigate to the Waymark directory
cd waymark-wp
# Install the dependencies (or pnpm/yarn install)
npm install
# Start WordPress at http://localhost:8888, seed an untouched instance with demo data
# and rebuild assets on change
npm run dev
Help
The help site is a Nuxt 4 app in help/, built with @nuxt/content. Node 24.15 or newer is required.
cd help
npm ci
npm run sync-assets
npm run dev
The local preview runs at http://localhost:11003. To build the static site for GitHub Pages:
NUXT_APP_BASE_URL=/waymark-wp/ npm run generate
Assets
Styles and scripts are compiled from Less and JavaScript sources into the minified bundles enqueued by the plugin — edit the sources, not the build output:
assets/— the plugin CSS (compiled fromassets/less/) and JavaScript, served as thefrontandadminbundles.waymark-js/— the bundled Waymark JS library powering the Viewer and Editor: sources insrc/andlibs/, built intodist/.
Translations
Waymark uses the waymark text domain, with the translation template at languages/waymark.pot.
- JavaScript strings are mirrored in
Waymark_Lang, the JavaScript language defaults and the documentation demo config, so update all three when adding or changing a string. npm run i18n:checkverifies that the PHP, JavaScript and documentation language defaults stay in parity, and thatwaymark_php_langkeys are both localised and read.npm run gruntrebuilds the POT and compiled assets after source changes.- Stable Type and Meta keys are internal identifiers, not translated labels. They are used in Shortcodes and CSS and must not be translated.
- Translations ship through WordPress.org language packs.
Testing
Three suites cover the plugin — JavaScript unit tests (Vitest), PHP integration tests (PHPUnit) and browser end-to-end tests (Playwright). The PHP and browser suites run against the disposable wp-env tests instance at http://localhost:8889 and never touch the development instance on 8888; npm run dev may seed that instance with demo data when it is untouched. The wp-env environment (npm run dev) must be running first.
# JavaScript unit tests (Vitest, jsdom) — Viewer, Editor and description sanitisation
npm run test:js
# PHP integration tests (PHPUnit against the WordPress test library)
npm run test:php
# Browser end-to-end tests (Playwright/Chromium) — login, Maps, Markers, responsive admin layout, front-end
npm run test:e2e
# Run all three in sequence
npm test
# One-off: prepare the tests container (after a fresh "wp-env destroy")
npm run test:php:setup
All three suites also run automatically in CI on pull requests and pushes to master.
wp-env pins PHP 8.3 to match the plugin’s declared floor. WP_ENV_PHP_VERSION and WP_ENV_CORE override the PHP and WordPress versions — useful for testing a release candidate or a newer PHP:
WP_ENV_PHP_VERSION=8.5 WP_ENV_CORE=WordPress/WordPress#trunk npm run test:php
npm run test:php:lint checks PHP syntax at the floor. CI exercises both boundaries — WordPress 6.4 with PHP 8.3, and current WordPress with PHP 8.5 — while the browser suite runs on current WordPress only.
Written by Joobi from the project's own listing. See the source page
1.8.5
- Feature: Signed-in users who can upload files now get the WordPress Media Library for marker images when submitting a Map from the front end, matching the admin editor. Guests and users without upload permission keep the native file picker.
- Feature: The image lightbox shows each feature’s description beneath the photo.
- Fix: The Map Editor’s Marker image placeholder no longer enlarges on hover when there is no image URL, non-square images crop to fill instead of stretching, and the 60px to 240px growth animates over 0.4s with a reduced-motion opt-out.
- Fix: Tracks whose elevation values are all zero show a flat elevation profile instead of no profile at all.
- Developer:
npm run devseeds an untouched development instance with demo data, whose photos carry EXIF metadata and whose markers carry descriptions. - Thanks to @JoshJourney (ljosh) for reporting issues #89 and #91.
1.8.4
- Fix: Lines with all-zero elevation data no longer show a broken elevation profile that could push the Info Window out of view.
- Help: the homepage demo now offers its example route as GeoJSON and GPX downloads.
- Developer: a released tag is no longer republished after a transient WordPress.org SVN failure, and the changelog is included in the GitHub release notes.
- Thanks to @JoshJourney (ljosh) for reporting issue #87.
1.8.3
- Feature: Images on Markers, Lines and Shapes open in an in-page viewer with previous/next navigation, instead of a new browser tab.
- Feature: Moving through the viewer pans the Map to the photo’s location and opens its Info Window. The viewer is centred on screen and uses larger touch targets on phones.
- Feature: The Map Editor image controls are labelled “Add Image”, and the Media Library dialog carries its own “Add Image” and “Use Image” labels.
- Fix: New Maps no longer fail to load when no Shortcode sets a centre or zoom.
- Fix: The Map Editor keeps its height after saving, so the corner controls are no longer crushed by the “Post updated” notice.
- Developer: test and build scratch output now writes to the gitignored
temp/directory. - Thanks to @JoshJourney (ljosh) for reporting issues #86, #88 and #90.
1.8.2
- Fix: Multi-select Meta values display as line breaks instead of visible break markup.
- Fix: Info windows stay in view when zooming out.
- Fix: Editor info window buttons no longer overlap when a theme resets box-sizing.
- Fix: Marker and route preset panels only show a scrollbar when they overflow.
- Fix: The Meta fields Settings link opens the correct tab.
- Fix: Sharper shortcode header text, fixing blurry titles on some themes.
- Fix: Resolve deprecated jQuery event warnings in the editor and map scripts.
1.8.1
- Help: renamed the admin Documentation links to Help.
- Help: refreshed the guides, examples and live map demos, removing legacy placeholder content.
1.8.0
- Feature: Waymark is now fully translatable, with locale-aware number, coordinate and place formatting and right-to-left layout support.
- Fix: Settings labels and controls are compact and consistently aligned; help icons sit beside their fields.
- Fix: Marker icon helper links no longer overlap the Icon Name input.
- Developer: add an i18n key/value parity check and stable type, meta and group keys with legacy aliases.
- Translators: many translation keys changed; existing translations should be reviewed.
1.7.2
- Fix “Array to string conversion” warnings when repeatable Settings values are incomplete.
- Fix Settings rows losing a value when a repeatable column has fewer entries than the other columns.
1.7.1
- Documentation: record the 1.7.0 changes in this changelog.
1.7.0
- Security: Waymark now requires PHP 8.3 and WordPress 6.4.
- Fix fatal errors when attachment metadata, GeoJSON or Collection data is malformed.
- Fix PHP 8.1+ deprecation notices when optional values are empty or missing.
- Development: test against the PHP 8.3 / WordPress 6.4 floor as well as current releases.
Follow this listing's changes (Atom feed)