I'm working on web application where i use arcgis api for JS 4.10,i want to upload kml/ kmz file to the map same as This sample working, in this sample shape file is used where i want to upload kml/kmz. Is this possible !! need assistance.
Robert is correct. However a few workarounds were suggested in this thread that you can try:
https://community.esri.com/thread/183421-how-can-i-load-local-kml-file-as-kmllayer
There is no way that I know of to upload a KML via a file selector dialog like is shown in that sample for a shapefile. The KMLLayer only accepts a url.
Ok. So can we modify the shape file sample and make it to upload kml instead of shape file.!!
Irtiza,
I assume you have already seem the KMLLayer class?
https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KMLLayer.html
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.