3 Replies Latest reply on Sep 25, 2012 7:39 AM by khutchins-esristaff

    Loading KML

    wz2b
      I am having trouble loading KML.  I'm surprised, because from the docs it looks like it should be really simple.  My init looks like this:

      var map = new esri.Map('map')
      
      var basemap = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer");
      map.addLayer(basemap);
      
      var kmlUrl = 'https://myserver.something.com/maptest/status.kml';
      var kml = new esri.layers.KMLLayer(kmlUrl);
      map.addLayer(kml);



      What I notice is that it doesn't ever hit my server to retrieve the kml file.

      Do I need to somehow trigger a refresh so that it loads the kml?  Or is what I did above enough?

      --Chris