Hi there,
I've tested my own KML of polygons with one of the online JS samples sandbox and it was working fine.
When I downloaded the html locally, the layer of the KML came up with lines in some places.
Any idea anyone ?
Thanks
B.
This appears to be a duplicate post of Grid Lines on KML Layer
Is your KML file publicly accessible?
because according to API Docs
Note: The KMLLayer uses a utility service from ArcGIS.com, therefore your kml/kmz must be publicly accessible on the internet. If your kml/kmz files are behind the firewall you will need to set the <A href="https://developers.arcgis.com/javascript/jshelp/inside_defaults.html" style="color: #00629b;" rel="nofollow noopener noreferrer" target="_blank">esriConfig.defaults.kmlService</A> to your own utility service. (Requires Portal for ArcGIS).
<A href="https://developers.arcgis.com/javascript/jshelp/inside_defaults.html" style="color: #00629b;" rel="nofollow noopener noreferrer" target="_blank">esriConfig.defaults.kmlService</A>
require(["esri/config"], function(esriConfig) { esriConfig.defaults.kmlService = "http://www.example.com/arcgis/sharing/kml"; });
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.