Using KML layer in ArcGIS API for JS 4.7 ?

375
1
07-19-2018 01:49 AM
rishishady
New Contributor

I have KML layer and I couldn't use it in KMLLayer module from JavaScript API. Is there any limitation or something else.?

0 Kudos
1 Reply
KenBuja
MVP Honored Contributor

From the documentation:

Known Limitations

Also,

The KMLLayer uses a utility service from ArcGIS.com, therefore your kml/kmz files must be publicly accessible on the internet. If the kml/kmz files are behind a firewall you must to set the esriConfig.kmlServiceUrl to your own utility service (requires ArcGIS Enterprise).