Object - 기능들 구현
2번 구현 위해서는 화살표 필요
다행히 예제 있다
LineString Arrows
import 'ol/ol.css'; import Map from 'ol/Map'; import View from 'ol/View'; import Point from 'ol/geom/Point'; import Draw from 'ol/interaction/Draw'; import {Tile as TileLayer, Vector as VectorLayer} from 'ol/layer'; import {OSM, Vector as VectorSource} from 'ol/source'; import {Icon, Stroke, Style} from 'ol/style'; var raster = new TileLayer({ source: new OSM() }); var
https://openlayers.org/en/latest/examples/line-arrows.html
3번4번 토글기능 구현 함수교체 필요
히든은 생성말고 함수를 따로 만들어야 할듯
Show/hide features on layer in OpenLayers?
Thanks for contributing an answer to Geographic Information Systems Stack Exchange! Please be sure to answer the question. Provide details and share your research! Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience.
https://gis.stackexchange.com/questions/270387/show-hide-features-on-layer-in-openlayers
처음에 안만드는거는 그냥 null 인 style set 하면 되는데
visible 하게 하려고 style 줄때 실수한 게
feature 만들어둔거를 setstyle 한다고 안바뀌고 layer 에서 얻어온 feature 를 바꿔줘야함
makeOLpvr 로 통합해서 show 함수 없에고 함수 개수 줄임
Seonglae Cho