Are you specifying outSR in the KMLLayer constructor? Your code should look something like this: var kmlLayer = new esri.layers.KMLLayer(kUrl, { outSR: new esri.SpatialReference({ wkid: 26912 }) });
var kmlLayer = new esri.layers.KMLLayer(kUrl, { outSR: new esri.SpatialReference({ wkid: 26912 }) });
My map and kml are in different projection system. i tried to use optional param but no change.
Version 2.4 of the API supports KML data via the KMLLayer class.Samples:ArcGIS API for JavaScript: KML LayerArcGIS API for JavaScript: KML Layer with buffer
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.