fix: 지도에 시추공 안 나오는 문제 수정

main
thkim 2025-01-22 18:40:36 +09:00
parent 79a787d884
commit 01ae7780ae
1 changed files with 17 additions and 13 deletions

View File

@ -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이 아직 정의되지 않았습니다.");
}
}