Adding KML layers to ArcGIS JS API v4 (beta)?

المشرف العام

Administrator
طاقم الإدارة
I have been building a web application using ArcGIS JS API v4.0.Beta1. I am having difficulties finding out how to add KML layers to the scene. How do I add the KMLs? I have tried adding a new feature layer with the URL from the host server and I am having no luck.

Example of what I've tried that doesn't work:

var featureLayer = new FeatureLayer({url: "[insert KML url here]",mode: FeatureLayer.MODE_SNAPSHOTAny ideas?



أكثر...
 
أعلى