I need to read the KML file from the File Object and show it on the map
I moved the conversation to the right forum: https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-display-of-kml-file-in-esri-javascript-from/m-p/1250786/thread-id/80032
Sorry for the inconveniences.
@Vinay_Kumar please provide more info. You are writing the the ArcGIS REST JS forum, are you using this technology? This is mainly to access ArcGIS REST/web services.
What is the File Object? Is it the KML? It is hosted in ArcGIS?
Please share as much information as you can (to help us to help you) 😉.
Like User will upload the KML file we need to display on the ArcGIS REST JS Map. It was not hosted in ArcGIS. Is there an alternative without hosting?
I think you are talking about the ArcGIS Maps SDK for JS and not ArcGIS REST JS, are you?
If that's the case, the Maps SDK which is for client-side applications (UI) with maps have a KMLLayer class you can use to load data from an external source.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.