Select to view content in your preferred language

KML drawing lines from local html

3043
2
10-25-2015 08:34 AM
BetzRacovsky
New Contributor

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.

0 Kudos
2 Replies
omega_cancer
Occasional Contributor II

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";
});
0 Kudos
RebeccaStrauch__GISP
MVP Emeritus

This appears to be a duplicate post of Grid Lines on KML Layer   

0 Kudos