Loading KML

Discussion created by wz2b on May 3, 2012
Latest reply on Sep 25, 2012 by khutchins-esristaff
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");

var kmlUrl = 'https://myserver.something.com/maptest/status.kml';
var kml = new esri.layers.KMLLayer(kmlUrl);

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?