Skip to content

Commit

Permalink
v1.4.3
Browse files Browse the repository at this point in the history
- Add missing MultiPolygon support. Raised [here](https://wordpress.org/support/topic/large-kml-display-issue/) and [here](#55).
- [Taxonomy label fix](#47).
- [Added Name to GPX metadata on Export](#48).
  • Loading branch information
Joe Hawes committed Jan 10, 2025
1 parent 1c480cf commit 3595aa9
Show file tree
Hide file tree
Showing 19 changed files with 1,593 additions and 1,517 deletions.
2 changes: 1 addition & 1 deletion Waymark.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin Name: Waymark
Plugin URI: https://www.waymark.dev/
Description: Mapping with WordPress made easy. With Waymark enabled, click on the "Maps" link in the sidebar to create and edit Maps. Once you are happy with your Map, copy the Waymark shortcode and add it to your content.
Version: 1.4.2
Version: 1.4.3
Text Domain: waymark
Author: Joe Hawes
Author URI: https://www.morehawes.ca/
Expand Down
2 changes: 1 addition & 1 deletion assets/js/admin.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/front.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 15 additions & 1 deletion assets/js/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,23 @@ function waymark_setup_map_export() {
switch (export_select.val()) {
//GPX
case "gpx":
const options = {
metadata: {},
};

// Name Metadata
var map_title = jQuery(
'input[name="map_title"]',
export_container,
).val();

if (map_title) {
options.metadata.name = map_title;
}

//Convert to GPX
//Thanks! https://github.com/tyrasd/togpx
var map_data = togpx(map_data_geojson);
var map_data = togpx(map_data_geojson, options);
var map_data_type = "application/gpx+xml;charset=utf-8";
var map_data_extension = "gpx";

Expand Down
Loading

0 comments on commit 3595aa9

Please sign in to comment.