From 01ae7780ae01b6b1d1c79c9cb3a208f36ee55077 Mon Sep 17 00:00:00 2001 From: thkim Date: Wed, 22 Jan 2025 18:40:36 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=A7=80=EB=8F=84=EC=97=90=20=EC=8B=9C?= =?UTF-8?q?=EC=B6=94=EA=B3=B5=20=EC=95=88=20=EB=82=98=EC=98=A4=EB=8A=94=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/js/map/main/map.js | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/src/main/webapp/js/map/main/map.js b/src/main/webapp/js/map/main/map.js index a1307904..4b6d5bd4 100644 --- a/src/main/webapp/js/map/main/map.js +++ b/src/main/webapp/js/map/main/map.js @@ -202,7 +202,7 @@ function initApp(param){ controls : [ new OpenLayers.Control.Navigation({ handleRightClicks : true, - PanOptions: { + dragPanOptions: { enableKinetic: false }, draw: function() { @@ -333,7 +333,7 @@ function initApp(param){ // 시추공지도 - /*HOLE_LAYER = new OpenLayers.Layer.WMS( + HOLE_LAYER = new OpenLayers.Layer.WMS( "HOLES", O2MAP_URL, { @@ -348,7 +348,8 @@ function initApp(param){ transitionEffect: "resize", buffer : 0, removeBackBufferDelay : 0 - }); + } + ); HOLE_LAYER_M = new OpenLayers.Layer.WMS( "HOLES_M", @@ -369,7 +370,7 @@ function initApp(param){ // 액상화위험지도 - LIQ_PUSAN_LPI_LAYER = new OpenLayers.Layer.WMS( + /*LIQ_PUSAN_LPI_LAYER = new OpenLayers.Layer.WMS( "LIQ_PUSAN_LPI", O2MAP_URL, { @@ -435,15 +436,17 @@ function initApp(param){ transitionEffect: "resize", buffer : 0, removeBackBufferDelay : 0 - }); + });*/ HOLE_LAYER.mergeNewParams({version : '1.3.0'}); HOLE_LAYER_M.mergeNewParams({version : '1.3.0'}); + /* LIQ_PUSAN_LPI_LAYER.mergeNewParams({version : '1.3.0'}); LIQ_PUSAN_LSN_LAYER.mergeNewParams({version : '1.3.0'}); LIQ_SEJONG_LPI_LAYER.mergeNewParams({version : '1.3.0'}); - LIQ_SEJONG_LSN_LAYER.mergeNewParams({version : '1.3.0'});*/ + LIQ_SEJONG_LSN_LAYER.mergeNewParams({version : '1.3.0'}); + */ //BASE_MAP.addLayers([HOLE_LAYER,HOLE_LAYER_M]); /*if(document.getElementById("cls").value == '3'){ @@ -464,7 +467,7 @@ function initApp(param){ BASE_MAP.addLayer(HOLE_LAYER); }*/ - /*BASE_MAP.addLayer(HOLE_LAYER);*/ + BASE_MAP.addLayer(HOLE_LAYER); // --------------------- // 컨트롤 생성 // --------------------- @@ -1007,7 +1010,7 @@ function initApp(param){ BASE_MAP.addControl(CTL_TOOLTIP); CTL_TOOLTIP.activate(); - /*BASE_MAP.events.register("moveend", BASE_MAP, function (evt) { + BASE_MAP.events.register("moveend", BASE_MAP, function (evt) { var map = evt.object; HOLE_TOOLTIP.removeAllFeatures(); @@ -1036,8 +1039,8 @@ function initApp(param){ } }); } - });*/ - + }); + BASE_MAP.events.register("mousemove", BASE_MAP, function (evt) { @@ -1265,7 +1268,7 @@ function initApp(param){ function addTooltip(feature) { - //removeTooltip(); + removeTooltip(); var attributes = feature.attributes; @@ -2353,7 +2356,8 @@ function initControl(){ for(var i = 0; i < parent.BASE_MAP.layers.length; i ++){ if(parent.BASE_MAP.layers[i].name == 'Jihaanjeon'){ - parent.BASE_MAP.layers[i].setVisibility(false); + //parent.BASE_MAP.layers[i].setVisibility(false); + parent.BASE_MAP.layers[i].removeAllFeatures(); } } @@ -3472,7 +3476,7 @@ function checkBaseMap() { clearInterval(intervalId); // 루프를 멈춥니다. } else { // BASE_MAP이 아직 정의되지 않았으면 콘솔에 메시지를 출력합니다. - console.log("BASE_MAP이 아직 정의되지 않았습니다."); + //console.log("BASE_MAP이 아직 정의되지 않았습니다."); } }