1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4207],{68784:function(n,e,t){"use strict";t.r(e);var o=t(67294),a=t(15313),i=t(85893),u=null,r=8,s=[],l=[],c=[],d=[];e.default=function(n){var e=n.list,t=void 0===e?[]:e,p=((0,a.I0)(),(0,a.v9)((function(n){return n.common}))),f=p.latitude,v=p.longitude,g=(0,o.useState)(!1),m=g[0],_=g[1],x=(0,o.useState)(),h=(x[0],x[1]),w=(0,o.useState)(),M=(w[0],w[1]),E=(0,o.useState)(),b=(E[0],E[1]),L=(0,o.useState)(),k=(L[0],L[1]),S=((0,o.useRef)(null),{latitude:Number(f)||"37.511337",longitude:Number(v)||"127.012084"}),y=(0,o.useState)(S),O=y[0],z=y[1],C=function(n,e){e.getMap()||e.setMap(n)},N=function(n,e){e.getMap()&&e.setMap(null)},P=function(n){for(var e=0;e<s.length;e++)s[e].setMap(null)},T=function(n){for(var e=0;e<c.length;e++)-1!==c[e].id.indexOf("cluster_sido_")&&c[e].setMap(null)},D=function(n){for(var e=0;e<c.length;e++)-1!==c[e].id.indexOf("cluster_gugun_")&&c[e].setMap(null)};return(0,o.useEffect)((function(){!0===m&&_(!1)}),[m]),(0,o.useEffect)((function(){null===t||void 0===t||t.map((function(n){n.lat&&n.lng&&function(n,e,t,o,a){var i=new naver.maps.LatLng(t,o);if("marker"===n){if(!l.includes(e)){var r=new naver.maps.Marker({position:i,map:u,title:"marker".concat(e)});s.push(r),l.push(e)}}else if("cluster"===n&&!d.includes(e)){var p=new naver.maps.Marker({position:i,map:u,title:"cluster_".concat(a.code,"_").concat(e),icon:{content:'<div style="width:50px;background-color:#5963D9;box-shadow:1px 1px 2px 1px rgb(0 0 0 / 20%);border-radius:3px;text-align:center;border:1px solid rgba(0, 0, 0, 0.1);color:#DBDCE8;font-size:11px;font-weight:normal;padding:4px 10px;">'+a.name+'<div style="padding-top:5px;color:#fff;">'+a.cnt+"</div></div>",size:new naver.maps.Size(22,35),anchor:new naver.maps.Point(11,35)}});c.push(p),d.push(e)}}(n.type,n.idx,n.lat,n.lng,n)}))}),[t]),(0,o.useEffect)((function(){u=new naver.maps.Map("map",{center:new naver.maps.LatLng(null===O||void 0===O?void 0:O.latitude,null===O||void 0===O?void 0:O.longitude),zoom:r,zoomControl:!0,zoomControlOptions:{style:naver.maps.ZoomControlStyle.SMALL,position:naver.maps.Position.TOP_RIGHT}}),naver.maps.Event.addListener(u,"zoom_changed",(function(n){r=n,n<=10?(!function(n){for(var e=0;e<c.length;e++)-1!==c[e].id.indexOf("cluster_sido_")&&c[e].setMap(n)}(u),D(),P()):11==n||12==n?(T(),function(n){for(var e=0;e<c.length;e++)-1!==c[e].id.indexOf("cluster_gugun_")&&c[e].setMap(n)}(u),P()):(T(),D(),function(n){for(var e=0;e<s.length;e++)s[e].setMap(n)}(u))})),naver.maps.Event.addListener(u,"bounds_changed",(function(n){h(n._sw.x),M(n._sw.y),b(n._ne.x),k(n._ne.y)})),naver.maps.Event.addListener(u,"idle",(function(){var n=u.getCenter();z({latitude:n.y,longitude:n.x}),_(!0),function(n,e){if(r>12){var t=n.getBounds();null===e||void 0===e||e.map((function(e){var o=e.getPosition();t.hasLatLng(o)?C(n,e):N(n,e)}))}}(u,s)})),_(!0)}),[]),(0,i.jsx)(i.Fragment,{})}},75186:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/test/MapTest",function(){return t(68784)}])}},function(n){n.O(0,[9774,2888,179],(function(){return e=75186,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.