Loading views...
openlayers event linking

openlayers event linking

Date
Date
2020 Feb 3 0:0
Created by
Created by
Seonglae ChoSeonglae Cho
Created time
Created time
2023 Feb 28 12:39
Last edited by
Last edited by
Seonglae ChoSeonglae Cho
Last edited time
Last edited time
2023 Apr 15 16:51
Refs
Refs

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
 
 
 

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.
Show/hide features on layer in OpenLayers?
 
처음에 안만드는거는 그냥 null 인 style set 하면 되는데
visible 하게 하려고 style 줄때 실수한 게
 

feature 만들어둔거를 setstyle 한다고 안바뀌고 layer 에서 얻어온 feature 를 바꿔줘야함

 
makeOLpvr 로 통합해서 show 함수 없에고 함수 개수 줄임
 

move save


 
 
 
 
 
 

Recommendations