Select to view content in your preferred language

how to upload to KML ZIP file on ArcGIS map in JavaScript

892
5
02-04-2021 03:15 AM
BaluMahendra_13
Emerging Contributor

how to upload to a KML ZIP file on ArcGIS map in JavaScript give me one example of an HTML page.

Tags (1)
0 Kudos
5 Replies
by Anonymous User
Not applicable

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.

 

0 Kudos
BaluMahendra_13
Emerging Contributor
 
0 Kudos
BaluMahendra_13
Emerging Contributor

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.

 

0 Kudos
by Anonymous User
Not applicable

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 

0 Kudos
BaluMahendra_13
Emerging Contributor

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.

0 Kudos