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.
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 esriConfig.defaults.kmlService
to your own utility service. (Requires Portal for ArcGIS).
require(["esri/config"], function(esriConfig) { esriConfig.defaults.kmlService = "http://www.example.com/arcgis/sharing/kml"; });
This appears to be a duplicate post of Grid Lines on KML Layer