Missing KML icons

1421
2
09-14-2017 10:27 AM
JasonNolan
New Contributor

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"> 
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Jason,

   It would seem that the esri kml utility service is not parsing the kml file correctly.

http://utility.arcgis.com/sharing/kml?url=https%3A%2F%2Fwww.weather.gov%2Fsource%2Fmarfc%2Ftw.kml&mo... 

I would call esri tech support on this issue.

0 Kudos
JayantaPoddar
MVP Esteemed Contributor

This issue has been addressed in the September 2017 ArcGIS Online update.

ArcGIS Online Issues Addressed List - September 2017 Release 

BUG-000107194KML files uploaded to ArcGIS Online display yellow pushpins instead of the correct symbology.


Think Location