
λ€μμ κ²½μ°λ 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

ν΄λ¦¬κ³€ νμΆ μ νΉμ μ§μμ νμ΄λΌμ΄ν ν΄μΌνλ κ²½μ°κ° μλλ° μ΄λ ol.interaction.select κ°μ²΄λ₯Ό νμ©νλ©΄ κ°λ¨ν νμ΄λΌμ΄ν ν¨κ³Όλ₯Ό μ€ μ μμ΅λλ€. μμ€μ½λ κ²°κ³Όνλ©΄
β Programming/β GIS
2020. 4. 9. 12:22