AnsweredAssumed Answered

ArcGIS interactive KML layer

Question asked by rparham on Oct 31, 2016
Latest reply on Oct 31, 2016 by rparham

I am working on an ArcGIS map. I need to be able to interact with KML layers.


Here is a minimal version of my current code:


    map = new Map("map", {
      basemap: "topo",
      center: [-108.663, 42.68],
      zoom: 6


    var kmlUrl = "";
    var kml = new KMLLayer(kmlUrl);
    kml.on("load", function() {


[Here is a fiddle](


I'm looking to achieve something more like [this map](, which outlines the layer on hover. (This example is from the [FeatureLayer]( class, but my KML is dynamically generated. Is it possible to create a featurelayer dynamically from KML data?)


How can I listen for mouseover on a KML shape?