From 61b487f1292810b216aa769ba2632f712188c772 Mon Sep 17 00:00:00 2001 From: thcho Date: Mon, 24 Jun 2024 09:29:30 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8B=9C=EC=B6=94=EC=A0=95=EB=B3=B4=20?= =?UTF-8?q?=EC=9C=84=EC=B9=98=EC=9D=B4=EB=8F=99=20=EC=A0=9C=EC=96=B4=20?= =?UTF-8?q?=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 | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/main/webapp/js/map/main/map.js b/src/main/webapp/js/map/main/map.js index b7f89052..6121026f 100644 --- a/src/main/webapp/js/map/main/map.js +++ b/src/main/webapp/js/map/main/map.js @@ -1,15 +1,19 @@ // ================================================================ // 함수 : OnLoad 이벤트 // ================================================================ -addLoadEvent(initApp); -function addLoadEvent(func) { - var readyStateCheckInterval = setInterval(function() { - if (document.readyState === "complete") { - clearInterval(readyStateCheckInterval); - func(); - } - }, 100); -} +$(document).ready(function() { + initApp(); +}); + +//addLoadEvent(initApp); +//function addLoadEvent(func) { +// var readyStateCheckInterval = setInterval(function() { +// if (document.readyState === "complete") { +// clearInterval(readyStateCheckInterval); +// func(); +// } +// }, 100); +//} function hole_layerOnOff() {