I'm writing a ArcGIS JS project, in which user will upload KMZ which will be displayed on map, since ArcGIS doesn't have a magic trick to do it, I want to convert KMZ to JSON (or KML) and then display that JSON.
I've already tried https://github.com/sntran/kmz-geojson , but I don't think it works anymore. It says package is moved and asks to install 'toGeojson' Package which doesn't support KMZ.
I've tried doing it with zip.js but stuck at zip.blobreader(blob)
is not a constructor. I've tried usong jsZIP but still no luck.
I want to convert KMZ to JSON (or KML)
to convert KMZ to KML just unzip it. Note though that not all KML is vector data, so it might not then all easily convert the KML to JSON.