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

Bug: Export only including one Marker #32

Closed morehawes closed 5 months ago

morehawes commented 5 months ago

I'm not sure why, but I am only getting one Marker when using the Export feature on the front end 😕

I have been able to replicate locally and on waymark.dev.

This does not appear to be a file format issue - is occurring on GPX/KML/GeoJSON.

No idea when this was introduced. Will need to look in to the export logic when I get more time.

morehawes commented 5 months ago

Fixed in this commit and will be included in the next release.

It turned out that the logic to determine if the Overlay is currently "visible" on the Map (if enabled, the Overlay Filter can hide Overlays by Type) was no longer working and there didn't seem to be an obvious solution.

I decided to remove the ability for the Overlay Filter to determine which Overlays Export and to just export all Overlays. The Export feature needs work, probably an overhaul so this de-coupling is going to make that easier and I can't think of anyone mentioning this feature.

If it is missed by anyone, perhaps it can be re-implemented in Export v2.