FacilMap / facilmap

FacilMap is a privacy-friendly, open-source versatile online map that combines different services based on OpenStreetMap and makes it easy to find places, plan trips and add markers, lines and routes to custom maps with live collaboration.
https://facilmap.org/
GNU Affero General Public License v3.0
321 stars 21 forks source link

Support KMZ import #47

Closed cdauth closed 4 months ago

Korb commented 4 months ago

Currently, when trying to import created on Google My Maps kmz-file, I get an error message

Parsing error The selected file could not be parsed.

cdauth commented 4 months ago

I've implemented basic support for KMZ, it can now be imported on facilmap.org. If you need support for any specific KMZ features, feel free to open issues for those.

Korb commented 4 months ago

Error reading files. The operation was aborted.

drive.google.com/file/d/15G0wd2pfp7w5qYKUuJVH4b5oy4P5-God/view

cdauth commented 4 months ago

Thanks for the example file. It seems like the file does not contain the compressed file sizes (it was probably generated as a stream), so the code that I wrote fails to find the position of the contained KML file.

I have changed the code to use an external library instead, please try again.