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);
Is your KML file publicly accessible?
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.