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.
Dear sir,
I want that type of file sample which is the Image attached below
Click on the "Choose File" button to upload a KML Zip file With throw the button.
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 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.