function addGraphic(geo) { //For each path... for ( var path = 0; path < geo.paths.length; path ++ ) { //For each point in the path... for ( var pt = 0; pt < geo.paths[path].length; pt++ ) { //Do something with each point in here... //X coordinate: geo.paths[path][pt][0] //Y coordinate: geo.paths[path][pt][1] } } }
var polylinePointCollection = geometry.paths;
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.