I am overlaying a simple KML file containing just placemarks and an icon. Only a few locations are showing the proper icon, the rest are showing the generic yellow pushpin marker instead. Not every point has a unique icon. The KML file being used as I write this contains 159 points with 27 different icons. The points display correctly in ArcMap and Google Earth. Am I bumping up against some sort of limit or is this a server issue?
Link to page: Water Temperatures in the Middle Atlantic Region
Code below...
<link href="https://js.arcgis.com/3.14/dijit/themes/claro/claro.css" rel="stylesheet" /> <link href="https://js.arcgis.com/3.14/esri/css/esri.css" rel="stylesheet" /> <style type="text/css">html, body, #mapDiv{ padding: 0; margin: 0; height: 100%; } </style> <script src="https://js.arcgis.com/3.14/"></script> <script> var map; require([ "esri/map", "esri/layers/KMLLayer", "dojo/parser", "dojo/dom-style", "dojo/domReady!" ], function( Map, KMLLayer, parser, domStyle) { map = new Map("mapDiv", { center: [-77, 40], zoom: 7, basemap: "streets" }); parser.parse(); var kmlUrl = "https://www.weather.gov/source/marfc/tw.kml"; var kml = new KMLLayer(kmlUrl); map.addLayer(kml); kml.on("load", function() { domStyle.set("loading", "display", "none"); }); }); </script> <div id="mapDiv" style="width: 650px; height: 745px">
Jason,
It would seem that the esri kml utility service is not parsing the kml file correctly.
I would call esri tech support on this issue.
This issue has been addressed in the September 2017 ArcGIS Online update.
ArcGIS Online Issues Addressed List - September 2017 Release
BUG-000107194 KML files uploaded to ArcGIS Online display yellow pushpins instead of the correct symbology.