AnsweredAssumed Answered

Missing KML icons

Question asked by jrn105 on Sep 14, 2017
Latest reply on Sep 22, 2017 by jayanta.poddar

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"> 

Outcomes