[ Openlayers ] geojson์ผ๋ก ๋ ์ด์ด ํ์ถํ๊ธฐ( ol6 ๊ธฐ์ค )
geojson ํ์ผ์ ์ฝ์ด๋ค์ฌ ๋ฒกํฐ๋ ์ด์ด๋ก ์์ฑํ๊ณ ํ์ถํ๋ ์ฝ๋ ์ ๋๋ค. ํ ์คํธ์ฉ ์์ธ์ ํ์ ๊ตฌ์ญ geojson ๋ฐ์ดํฐ๋ ํจ๊ป ์ฌ๋ ค๋์์ต๋๋ค. var vectorSource = new ol.source.Vector({ url:"./geojson/seoulHD.geojson", //geojson ํ์ผ format: new ol.format.GeoJSON() }); var vectorLayer = new ol.layer.Vector({ source: vectorSource, style: new ol.style.Style({ // fill: new ol.style.Fill({ // color: "rgba(255,255,0,0.3)", // }), stroke: new ol.style.Stroke({ colo..
โ Programming/โ GIS
2023. 3. 21. 13:19
๋ฐ์ํ