var v_protocol=''; var vworldUrl=''; var vworld2DCache=''; var vworldBaseMapUrl=''; var vworldStyledMapUrl=''; if(location.protocol == 'https:'){ v_protocol="https://"; vworldUrl='https://map.vworld.kr'; vworld2DCache='https://2d.vworld.kr/2DCache'; vworldBaseMapUrl='https://cdn.vworld.kr/2d'; vworldStyledMapUrl='https://2d.vworld.kr/stmap'; }else{ v_protocol="http://"; vworldUrl='https://map.vworld.kr'; vworld2DCache='http://2d.vworld.kr:8895/2DCache'; vworldBaseMapUrl='http://cdn.vworld.kr:8080/2d'; vworldStyledMapUrl='http://2d.vworld.kr:8895/stmap'; } var vworldIsValid = 'false'; var vworldErrMsg = '인증키 사용기간이 만료되었습니다.'; var vworldApiKey = '8B81E671-19BA-3C85-874E-A34A5FF8C282'; var vworld3DUrl = vworldUrl + '/js/sopMapInit.js.do'; var vw=vw||{};vw.ol3={},vw.ol3.BaseURLs={vworldUrl:vworldUrl,vworld2DCache:vworld2DCache,vworldBaseMapUrl:vworldBaseMapUrl,vworldStyledMapUrl:vworldStyledMapUrl};var vworldVers={OpenLayers:"3.10.1",Base:"service",Hybrid:"service",Satellite:"service",Gray:"service",White:"service",Midnight:"service",ServerMaxLevel:18};vw.ol3.ExtUrls={vmapcss:vw.ol3.BaseURLs.vworldUrl+"/css/ol3/vwmap.ol3.css",vmap23css:vw.ol3.BaseURLs.vworldUrl+"/css/vmap23.css",openlayers:vw.ol3.BaseURLs.vworldUrl+"/js/map/OpenLayers-"+vworldVers.OpenLayers+"/ol.js",jqueryui:vw.ol3.BaseURLs.vworldUrl+"/jquery/ol3/jquery-ui.min.js",jquery:vw.ol3.BaseURLs.vworldUrl+"/jquery/ol3/jquery-1.11.3.min.js"},vw.ol3.MapUrls={earth:vworld3DUrl+"?version=2.0&apiKey="+vworldApiKey,base:vw.ol3.BaseURLs.vworldBaseMapUrl+"/Base/"+vworldVers.Base+"/",hybrid:vw.ol3.BaseURLs.vworldBaseMapUrl+"/Hybrid/"+vworldVers.Hybrid+"/",raster:vw.ol3.BaseURLs.vworldBaseMapUrl+"/Satellite/"+vworldVers.Satellite+"/",gray:vw.ol3.BaseURLs.vworldBaseMapUrl+"/gray/"+vworldVers.Gray+"/",white:vw.ol3.BaseURLs.vworldBaseMapUrl+"/white/"+vworldVers.White+"/",midnight:vw.ol3.BaseURLs.vworldBaseMapUrl+"/midnight/"+vworldVers.Midnight+"/",tile2d:vw.ol3.BaseURLs.vworld2DCache+"/tile",print:vw.ol3.BaseURLs.vworldUrl+"/printMap.do",wms:vw.ol3.BaseURLs.vworld2DCache+"/gis/map/WMS?",wms2:vw.ol3.BaseURLs.vworld2DCache+"/gis/map/WMS2?",wfs:vw.ol3.BaseURLs.vworld2DCache+"/gis/map/WFS?",apiCheck:vw.ol3.BaseURLs.vworldUrl+"/check2DNum.do?version=2.0&key="+vworldApiKey},vw.ol3.CommonFunc={_trim:function(e){return e.replace(/(^\s*)|(\s*$)/gi,"")},_getBrowser:function(e){var t=!1,r=navigator.userAgent.toLowerCase();return e=e.toLowerCase(),-1!=r.indexOf(e)&&(t=!0),t},_browserName:function(){var e=navigator.userAgent.toLowerCase();return-1!=e.indexOf("edge")?"Edge":-1!=e.indexOf("chrome")?"Chrome":-1!=e.indexOf("opera")?"Opera":-1!=e.indexOf("staroffice")?"Star Office":-1!=e.indexOf("webtv")?"WebTV":-1!=e.indexOf("beonex")?"Beonex":-1!=e.indexOf("chimera")?"Chimera":-1!=e.indexOf("netpositive")?"NetPositive":-1!=e.indexOf("phoenix")?"Phoenix":-1!=e.indexOf("firefox")?"Firefox":-1!=e.indexOf("safari")?"Safari":-1!=e.indexOf("skipstone")?"SkipStone":-1!=e.indexOf("msie")||-1!=e.indexOf("trident")?"Internet Explorer":-1!=e.indexOf("netscape")?"Netscape":-1!=e.indexOf("mozilla/5.0")?"Mozilla":""},_getElement:function(e){return document.getElementById(e)},_createElement:function(e){return window.document.createElement(e)},_append:function(e,t){$(e).append($(t))},_firstChildByClassName:function(e){for(var t,r=window.document.getElementsByClassName(e),s=0;s"+t+"시간 "+r+"분":0!=t&&0==r?""+t+"시간 ":0==t&&0!=r?""+r+"분":"1분 미만"},_getTimeString:function(e){var t=parseInt(e/60),r=parseInt(e%60);return 0!=t&&0!=r?t+"시간 "+r+"분":0!=t&&0==r?t+"시간 ":0==t&&0!=r?r+"분":"1분 미만"},_commify:function(e){var t=/(^[+-]?\d+)(\d{3})/;for(e+="";t.test(e);)e=e.replace(t,"$1,$2");return e},_sleep:function(e){for(var t=(new Date).getTime(),r=0;r<1e7&&!((new Date).getTime()-t>e);r++);},_loadExtLibs:function(e,t){var r="",s="",n=e;if(null!=n&&n.length>0&&(r=n.shift()),""!=r){n.length>0&&(s=n[0]);var o=this._createElement("script");o.setAttribute("type","text/javascript"),o.setAttribute("src",r),o.setAttribute("async",!1),o.onreadystatechange=function(){"loaded"!=o.readyState&&"complete"!=o.readyState||(""!=s?(o.onreadystatechange=null,vw.ol3.CommonFunc._loadExtLibs(n,t)):t())},o.onload=function(){""!=s?(o.onload=null,vw.ol3.CommonFunc._loadExtLibs(n,t)):t()},document.getElementsByTagName("head")[0].appendChild(o)}return!1},_ShimResize:function(e){if(null==vw.ol3.CommonFunc._getElement(vw.vworldIDs.idmenu)||null==vw.ol3.CommonFunc._getElement(vw.vworldIDs.idmenu))return!1;"on"==e&&(vw.ol3.CommonFunc._getElement(vw.vworldIDs.idmenu).style.height=vw.ol3.CommonFunc._getElement(vw.vworldIDs.idshim).style.height="132px",vw.ol3.CommonFunc._getElement(vw.vworldIDs.idmenu).style.opacity=vw.ol3.CommonFunc._getElement(vw.vworldIDs.idshim).style.opacity=1,vw.ol3.CommonFunc._getElement(vw.vworldIDs.idmenu).style.filter=vw.ol3.CommonFunc._getElement(vw.vworldIDs.idshim).style.filter="alpha(opacity=100)"),"off"==e&&(vw.ol3.CommonFunc._getElement(vw.vworldIDs.idmenu).style.height=vw.ol3.CommonFunc._getElement(vw.vworldIDs.idshim).style.height="66px",vw.ol3.CommonFunc._getElement(vw.vworldIDs.idmenu).style.opacity=vw.ol3.CommonFunc._getElement(vw.vworldIDs.idshim).style.opacity=1,vw.ol3.CommonFunc._getElement(vw.vworldIDs.idmenu).style.filter=vw.ol3.CommonFunc._getElement(vw.vworldIDs.idshim).style.filter="alpha(opacity=100)")},_isIE:function(){return-1!=navigator.userAgent.indexOf("MSIE")||-1!=navigator.userAgent.indexOf("Trident")},_makeinvisible:function(e,t){var r=vw.ol3.CommonFunc._getElement(e);null!=r&&(vw.ol3.CommonFunc._isIE()?(r.style.height="100%",1==t?(r.style.display="inline-block",r.style.visibility="visible"):(r.style.display="none",r.style.visibility="hidden")):1==t?(r.style.height="100%",r.style.visibility="visible",r.style.display="inline-block"):(r.style.height="0px",r.style.visibility="hidden"))},_isMobile:function(){try{var e=["iPhone","iPod","BlackBerry","Android","Windows CE","LG","MOT","SAMSUNG","SonyEricsson"];for(var t in e)if(null!=navigator.userAgent.toUpperCase().match(e[t].toUpperCase()))return!0;return!1}catch(e){return!1}},_isNumber:function(e){return""!=(e=(e+="").replace(/^\s*|\s*$/g,""))&&!isNaN(e)},_makeUniqeIds:function(){return Math.random().toString(36).substr(5,10)}},document.write("