Getting Started
Shortcodes
The [Waymark] Shortcode can be passed the following
parameters.
| Parameter | Value | Description |
map_id |
Map ID | Display a single Map. You can create Maps (and obtain Map IDs) in WP Admin > Waymark > Maps. |
collection_id |
Collection ID | Display all Maps in a Collection. You can create Collections (and obtain Collection IDs) in WP Admin > Waymark > Collections. |
map_centre |
Latitude,Longitude | The initial centre coordinates of the Map. By default Waymark centres the Map so all Data is visible. |
map_zoom |
0-18 | The initial zoom of the Map. By default Waymark zooms the Map so all Data is visible. |
basemap |
Basemap Name | Which Basemap to display when the Map first loads (instead of the default). The value must match a Basemap Name listed in Waymark Settings > Maps > Basemaps. |
map_height |
Number of pixels | Specify the desired height of the Map. The default can be changed in Waymark Settings > Maps > Misc. |
map_width |
Number of pixels | Specify the desired width of the Map. |
shortcode_header |
0 or 1 | Whether to display the Shortcode Header (if Meta exists for the Map). The default can be changed in Waymark Settings > Maps > Shortcodes |
show_gallery |
0 or 1 | Whether to display an image gallery for Markers that have images associated with them. The default can be changed in Waymark Settings > Maps > Misc. |
show_filter |
0 or 1 | Whether to display the Overlay Filter. This enables visitors to filter for which Markers, Lines and Shapes are currently visible on the Map. The default can be changed in Waymark Settings > Maps > Misc. |
show_cluster |
0 or 1 | Whether to cluster (stack) Markers that are close together. The default can be changed in Waymark Settings > Maps > Clustering |
show_elevation |
0 or 1 | Display an interactive elevation profile graph below the Map for Lines that have elevation data. The default can be changed in Waymark Settings > Elevation |
map_hash |
Alpha-numeric text |
By default, Waymark adds a unique ID to the Shortcode HTML container
like this: waymark-shortcode-23a60b. When you provide a
Map Hash the ID will become: waymark-shortcode-maphash.
This can be useful if you are adding multiple occurrences of the
same Waymark Shortcode on a single page which will cause a “Map
container is already initialized.” error.
|
max_zoom |
1-18 | Providing a maximum zoom level will prevent the Map from being zoomed in further than this. |
elevation_units |
metric or imperial | This will override the Waymark > Elevation > Elevation Units option. |
Tutorials
Customising
Features
Examples
- Text Markers
- Show/Hide Types Initially
- Hiding Map Controls
- Hide Locate Button
- Move the Locate Button
- Marker Without Background
- Hide Tooltip Type Labels
- Elevation Profile Colours