【GIS】GeoJson和Leaflet坐标调换

            XY2YX(coordinates) {
                var yx = []
                for (let i = 0; i < coordinates.length; i++) {
                    var yxChild = []
                    for (let j = 0; j < coordinates[i].length; j++) {
                        yxChild.push([coordinates[i][j][1], coordinates[i][j][0]])
                    }
                    yx.push(yxChild)
                }
                return yx;
            },

 

【GIS】GeoJson和Leaflet坐标调换

上一篇:js语句


下一篇:P2P行业专业术语(最全)