{"id":12039,"date":"2022-02-18T20:39:16","date_gmt":"2022-02-18T11:39:16","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=12039"},"modified":"2022-02-18T20:41:14","modified_gmt":"2022-02-18T11:41:14","slug":"gwc-ui-library%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%9c-%ec%9e%85%eb%a0%a5%ed%8f%bc-%ea%b0%9c%eb%b0%9c","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=12039","title":{"rendered":"GWC UI Library\ub97c \uc774\uc6a9\ud55c \uc785\ub825\ud3fc \uac1c\ubc1c"},"content":{"rendered":"<p>GWC \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc774\uc6a9\ud574 \uc2e4\uc81c \ud504\ub85c\uc81d\ud2b8\uc5d0 \uc801\uc6a9\ud55c \uc608\uc785\ub2c8\ub2e4. \uc544\ub798\uc758 \uc601\uc0c1\uc740 GWC \ub77c\uc774\ube0c\ub7ec\ub9ac\ub9cc\uc744 \uc774\uc6a9\ud574 \ub9cc\ub4e0 UI\uc785\ub2c8\ub2e4.<\/p>\n<p><center><video controls=\"controls\" ><source src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2022\/02\/gwc-examples1.mp4\" \/>\ube44\ub514\uc624\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\ub294 \uc6f9\ube0c\ub77c\uc6b0\uc838\uc785\ub2c8\ub2e4.<\/video><\/center><\/p>\n<p>JS \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\">\r\nconst dlg = gwcCreateModalDialog(\"SHP \ud30c\uc77c\uc744 \ub808\uc774\uc5b4\ub85c \ucd94\uac00\");\r\ndlg.content = `\r\n    <div class=\"add-shp-file-dialog vertical-linear-layout\">\r\n        <div class=\"horizontal-linear-layout v-center\">\r\n            <gwc-label content=\"\uc81c\ubaa9\" outline-type=\"none\"><\/gwc-label>\r\n            <gwc-textinput class=\"title\" hint=\"\ub808\uc774\uc5b4\uc758 \uc81c\ubaa9\uc744 \uc785\ub825\ud558\uc138\uc694.\"><\/gwc-textinput>\r\n        <\/div>\r\n        <div class=\"horizontal-linear-layout v-center\">\r\n            <gwc-label content=\"\uc544\uce74\uc774\ube0c \ud3f4\ub354\" outline-type=\"none\"><\/gwc-label>\r\n            <gwc-textinput class=\"folder\" value=\"\/\"><\/gwc-textinput>\r\n            <gwc-toolbutton icon=\".\/images\/folder.svg\"><\/gwc-toolbutton>\r\n        <\/div>                                \r\n        <div class=\"horizontal-linear-layout v-center\">\r\n            <gwc-label content=\"SHP \ud30c\uc77c\" outline-type=\"none\"><\/gwc-label>\r\n            <div class=\"file-zone\">\uc774\uacf3\uc744 \ud074\ub9ad\ud558\uac70\ub098 <br>\uc774\uacf3\uc5d0 \ud30c\uc77c\uc744 \ub4dc\ub798\uadf8 \ud558\uc138\uc694.<\/div>\r\n        <\/div>\r\n        <div class=\"horizontal-linear-layout v-center\">\r\n            <gwc-label content=\"EPSG\" outline-type=\"none\"><\/gwc-label>\r\n            <gwc-select selected-index=\"1\"> \r\n                <items>\r\n                    <item>4326<\/item>\r\n                    <item>5174<\/item>\r\n                    <item>5178<\/item>\r\n                    <item>5179<\/item>\r\n                    <item>5181<\/item>\r\n                    <item>3857<\/item>\r\n                <\/items>\r\n            <\/gwc-select>\r\n        <\/div>                                \r\n        <div class=\"horizontal-linear-layout v-center\">\r\n            <gwc-label content=\"\uc124\uba85\" outline-type=\"none\"><\/gwc-label>\r\n            <gwc-resizable-panel resizable-bottom=\"true\" resizable-right=\"true\">\r\n                <gwc-memo hint=\"\ub808\uc774\uc5b4\uc758 \uc124\uba85\uc744 \uc785\ub825\ud558\uc138\uc694.\" max-length=\"200\"><\/gwc-memo>\r\n            <\/gwc-resizable-panel>\r\n        <\/div>\r\n        <div class=\"horizontal-linear-layout h-center v-space\">                \r\n            <gwc-button title=\"\ud655\uc778\"><\/gwc-button>\r\n            <gwc-button title=\"\ucde8\uc18c\"><\/gwc-button>\r\n        <\/div>\r\n    <\/div>\r\n`;\r\n\r\ndlg.content.querySelector(\"gwc-button\").addEventListener(\"click\", () => {\r\n    dlg.remove();\r\n});\r\n\r\ndlg.show();\r\n\r\nGeoServiceWebComponentManager.instance.update();\r\n<\/pre>\n<p>\uc704\uc758 \ucf54\ub4dc\uc5d0\uc11c \uc0ac\uc6a9\ud55c css\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\">\r\n\/* common *\/\r\n\r\n.vertical-linear-layout {\r\n    display: flex;\r\n    flex-direction: column;\r\n    gap: 0.3em;\r\n}\r\n\r\n.horizontal-linear-layout {\r\n    display: flex;\r\n    gap: 0.3em;\r\n    flex-direction: row;\r\n    padding: 0 1em;\r\n}\r\n\r\n.v-center {\r\n    align-items: center;\r\n}\r\n\r\n.h-center {\r\n    justify-content: center;\r\n}\r\n\r\n.v-space {\r\n    margin-top: 0.5em;\r\n    margin-bottom: 0.5em;\r\n}\r\n\r\ngwc-toolbutton {\r\n    zoom: 0.45;\r\n}\r\n\r\ngwc-button {\r\n    zoom: 0.9;\r\n}\r\n\r\ngwc-select {\r\n    zoom: 0.8;\r\n}\r\n\r\n\/* AddSHPFileDialog *\/\r\n\r\n.add-shp-file-dialog .file-zone {\r\n    font-size: 1em;\r\n    width: 20em;\r\n    height: 10em;\r\n    \r\n    color: white;\r\n    text-align: center;\r\n    display: flex;\r\n    align-items: center;\r\n    justify-content: center;\r\n    cursor: pointer;\r\n    border: 1px dashed rgba(255,255,255,0.3);\r\n    background-color: rgba(0,0,0,0.4);\r\n    box-shadow: inset 1px 1px 20px black, 1px 1px 5px black;\r\n    border-radius: 0.4em;\r\n}\r\n\r\n.add-shp-file-dialog gwc-label {\r\n    width: 120px;\r\n}\r\n\r\n.add-shp-file-dialog gwc-select {\r\n    width: 10em;\r\n}\r\n\r\n.add-shp-file-dialog .title {\r\n    width: 20em;\r\n}\r\n\r\n.add-shp-file-dialog .folder {\r\n    width: 17.3em;\r\n}\r\n\r\n.add-shp-file-dialog gwc-resizable-panel {\r\n    position:relative;\r\n    width: calc(20em + 7px);\r\n    height: 10em\r\n}\r\n\r\n.add-shp-file-dialog gwc-resizable-panel gwc-memo {\r\n    width: 100%;\r\n    height: 100%;\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>GWC \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc774\uc6a9\ud574 \uc2e4\uc81c \ud504\ub85c\uc81d\ud2b8\uc5d0 \uc801\uc6a9\ud55c \uc608\uc785\ub2c8\ub2e4. \uc544\ub798\uc758 \uc601\uc0c1\uc740 GWC \ub77c\uc774\ube0c\ub7ec\ub9ac\ub9cc\uc744 \uc774\uc6a9\ud574 \ub9cc\ub4e0 UI\uc785\ub2c8\ub2e4. \ube44\ub514\uc624\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\ub294 \uc6f9\ube0c\ub77c\uc6b0\uc838\uc785\ub2c8\ub2e4. JS \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4. const dlg = gwcCreateModalDialog(&#8220;SHP \ud30c\uc77c\uc744 \ub808\uc774\uc5b4\ub85c \ucd94\uac00&#8221;); dlg.content = ` \uc774\uacf3\uc744 \ud074\ub9ad\ud558\uac70\ub098 \uc774\uacf3\uc5d0 \ud30c\uc77c\uc744 \ub4dc\ub798\uadf8 \ud558\uc138\uc694. 4326 5174 5178 5179 5181 3857 `; dlg.content.querySelector(&#8220;gwc-button&#8221;).addEventListener(&#8220;click&#8221;, () => { dlg.remove(); }); dlg.show(); GeoServiceWebComponentManager.instance.update(); \uc704\uc758 \ucf54\ub4dc\uc5d0\uc11c &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=12039\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;GWC UI Library\ub97c \uc774\uc6a9\ud55c \uc785\ub825\ud3fc \uac1c\ubc1c&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140],"tags":[],"class_list":["post-12039","post","type-post","status-publish","format-standard","hentry","category-gwc"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/12039","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12039"}],"version-history":[{"count":3,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/12039\/revisions"}],"predecessor-version":[{"id":12043,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/12039\/revisions\/12043"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12039"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}