Select to view content in your preferred language

Grid Lines on KML Layer

2790
1
10-27-2015 02:54 AM
BetzRacovsky
Deactivated User

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

         

0 Kudos
1 Reply
omega_cancer
Frequent Contributor

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