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:
Code: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

Reply With Quote



Bookmarks