betsyjsg

Adding KML layer to map

Discussion created by betsyjsg on Mar 14, 2012
Latest reply on Mar 14, 2012 by betsyjsg
I have to add a kml layer to a map.  This is the kml url address I was given:

http://edac-dap.northerngulfinstitute.org/erddap/griddap/MODIS_Aqua_3-day_composite_CHL.kml?chl_a[(last)][(17.086376190185547):(31.566356658935547)][(-97.91387176513672):(-78.65940856933594)]&.draw=surface&.vars=longitude|latitude|chl_a&.colorBar=Rainbow||Log|0|50|

This address will open in Google Earth and Google Maps properly but I can't seem to get it to do anything in the ArcGIS JavaScript API.  I've made sure to load the esri.layers.KMLLayers utility.  I made a variable called kmlURL and have the url address I posted above saved to that variable.  I then try to add the kml by using the new esri.layers.KMLLayer(kmlURL) to the map.  Nothing happens.  Is the URL address I've been given too complicate?  Any help would be greatly appreciated.

Outcomes