[ Openlayers ] μ€νλ μ΄μ΄μ€μμ μ’νκ³ λ³νμ΄ μλλ κ²½μ°( ol6 κΈ°μ€ )
λ€μμ κ²½μ°λ 5179μ’νκ³λ₯Ό μ¬μ©νλ geojsonμ μ½μ΄λ€μ¬ μ’νκ³ λ³νμ νλ κ²½μ°μ΄λ€. var vectorSource = new ol.source.Vector({ format: new ol.format.GeoJSON(), loader: function (extent) { const url = "./geojson/seoulHD.geojson";//5179 fetch(url) .then((response) => response.json()) .then((data) => { const features = vectorSource.getFormat().readFeatures(data); console.log("λ³νμ - ",features[0].getGeometry().getCoordinates()[0][..
β Programming/β GIS
2023. 3. 21. 11:19
λ°μν