var countryLayer = new GraphicsLayer(); var myLine ={geometry:{"paths":[[[4.0264,48.09885],[0.223,46.085]]], "spatialReference":{"wkid":4326}}, "symbol":{"color":[0,0,0,255],"width":1,"type":"esriSLS","style":"esriSLSSolid"}}; var gra= new Graphic(myLine); countryLayer.add(gra); map.addLayer(countryLayer);
var myLine ={geometry:{"paths":[[[4.0264,48.09885],[0.223,46.085]]], "spatialReference":{"wkid":4326}}, "symbol":{"color":[0,0,0,255],"width":1,"type":"esriSLS","style":"esriSLSSolid"}}; var graphic= new Graphic(myLine);
map.graphics.add(graphic);
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.