Unable to show KMZ layer

09-03-2020 08:09 AM
New Contributor

I had a KML file from NOAA ( http://www.nhc.noaa.gov/gis/kml/nhc_active.kml ) which was working fine as an added layer. The file changed to include .KMZ links instead of .KML within in it, so that now the tree shows up but nothing displays on the map. I may be missing something as I know JavaScript but I do not know ESRI as well. Does anyone have any suggestions? Do I need to somehow programatically unzip these embedded KMZ links/files in order to display? If so, does anyone have examples on how to do this? 

Section of the KML file that corresponds to the screen shot:

<NetworkLink id="cone">
      <name>Cone of Uncertainty</name>

var layer = new KMLLayer({
      title: "Hurricanes",
      visible: true
layer.refreshInterval = 1;

0 Kudos
1 Reply
Esri Regular Contributor

The KMLLayer works with kml and kmz files.

KMLLayer | ArcGIS API for JavaScript 4.16 

This codepen shows the kmz file you referenced displayed on a map.


Perhaps there is something else going on here?

0 Kudos