how to upload to a KML ZIP file on ArcGIS map in JavaScript give me one example of an HTML page.
To display a kml on a webmap, the KMLLayer component will do it from a url. I don't know if you can do it from a file yet. There was talk about implementing that functionality back 2013.
Esri sample codpen is pretty simple to follow: KML Layer
There are other solutions on here that dissect the xml into features, though not sure if you want to do that.
If this is not what you mean, please add some more details to your question.
I'd defer to Robert's knowledge on this capability in his answer posted on this thread not too long ago.
- unfortunately, there is no capability to upload a KML through a button.
how-can-i-load-local-kml-file-as-kmllayer
how can load the KML file?
If any suggestion for me otherwise give me a sample file.
KML must be in the Zip file to upload to the on map.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.