Hi there,
I'm loading a map using KML which I created.
When loading the KML via one of the sandbox all looks good.
When I use the exact same code locally in HTML file , i get grid lines coming on the layer.
The KML is a combination of polygons.
Please see below the one with the lines and the one without.
Please can someone assist?
Thanks
Betz
Is your KML 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"; });