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>
<visibility>1</visibility>
<open>0</open>
<Link>
<href>https://www.nhc.noaa.gov/storm_graphics/api/AL152020_012adv_CONE.kmz</href>
</Link>
</NetworkLink>
Code:
var layer = new KMLLayer({
url:
"http://www.nhc.noaa.gov/gis/kml/nhc_active.kml",
title: "Hurricanes",
visible: true
});
layer.refreshInterval = 1;
map.add(layer);
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.
https://codepen.io/noash/pen/VwaEKEL
Perhaps there is something else going on here?