@opengis/bi 1.1.2 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bi.js +11 -2
- package/dist/bi.umd.cjs +72 -720
- package/dist/import-file-D06AZEtP.js +3493 -0
- package/dist/style.css +1 -7
- package/dist/{vs-funnel-bar-mWZ8lvEq.js → vs-funnel-bar-C8m-602x.js} +11 -11
- package/dist/vs-list-BJ0NjSm5.js +525 -0
- package/dist/vs-map-PLlJqaaW.js +294 -0
- package/dist/vs-map-cluster-9tV6eiDA.js +356 -0
- package/dist/{vs-number-CRUhHKym.js → vs-number-B2V_BPer.js} +3 -3
- package/dist/{vs-table-OddIdr1s.js → vs-table-WGE9jyDq.js} +6 -6
- package/dist/vs-text-DkLKRC7F.js +1528 -0
- package/package.json +77 -84
- package/plugin.js +13 -13
- package/server/plugins/vite.js +69 -69
- package/server/routes/dashboard/controllers/utils/yaml.js +11 -11
- package/server/routes/data/controllers/data.js +7 -6
- package/server/routes/data/controllers/util/chartSQL.js +2 -2
- package/server/routes/map/controllers/cluster.js +125 -125
- package/server/routes/map/controllers/clusterVtile.js +166 -166
- package/server/routes/map/controllers/geojson.js +127 -127
- package/server/routes/map/controllers/map.js +69 -69
- package/server/routes/map/controllers/utils/downloadClusterData.js +44 -44
- package/server/routes/map/controllers/vtile.js +183 -183
- package/server/utils/getWidget.js +3 -3
- package/utils.js +12 -12
- package/config.js +0 -12
- package/dist/import-file-XFI3CaVb.js +0 -63458
- package/dist/vs-donut-al85JwBt.js +0 -148
- package/dist/vs-list-1QDnN3pH.js +0 -18510
- package/dist/vs-map-CwR6ZYur.js +0 -285
- package/dist/vs-map-cluster-YdXTBIVf.js +0 -314
- package/dist/vs-text-CQ9vn0qO.js +0 -40
package/dist/style.css
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}body{font-family:Inter,Segoe UI,Helvetica Neue,Roboto,sans-serif;font-weight:400}h1{font-family:Inter,Segoe UI,Helvetica Neue,Roboto,sans-serif;font-weight:700}em{font-family:Inter,Segoe UI,Helvetica Neue,Roboto,sans-serif;font-style:italic}.custom-x-scrollbar{overflow-x:auto;overflow-y:clip}.custom-x-scrollbar::-webkit-scrollbar{height:6px}.custom-x-scrollbar::-webkit-scrollbar-thumb{background-color:#e0e0e0}.custom-x-scrollbar::-webkit-scrollbar-track{background-color:#f1f1f1}.custom-scrollbar{overflow-y:auto;overflow-x:clip}.custom-scrollbar::-webkit-scrollbar{width:6px;margin-right:0}.custom-scrollbar::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:10px}.custom-scrollbar::-webkit-scrollbar-track{background-color:#f1f1f1}.vs-chart{width:100%;height:100%}.vs-chart-tooltip{border-radius:7px;max-height:100px;max-width:340px;min-width:140px;background-color:#fff;box-shadow:0 0 8px #0000002e}.vs-chart-tooltip__head{padding:5px;border-bottom:1px solid #eee;margin-bottom:5px}.vs-chart-tooltip__head-title{font-size:14px;font-weight:700;display:flex;align-items:center}.vs-chart-tooltip__head-value{margin-right:5px}.vs-chart-tooltip__head-series{font-size:14px;display:flex;align-items:center}.vs-chart-tooltip__color{width:12px;height:12px;display:block;border-radius:50%;margin-right:5px}.vs-chart-tooltip__body{padding:5px;font-size:14px;display:flex;align-items:start;flex-direction:column}.vs-chart-tooltip__body .vs-chart-tooltip__color{border-radius:3px}.vs-chart-tooltip__item{width:100%;display:flex;align-items:center;justify-content:space-between}.vs-chart-tooltip__text{margin-right:auto}.vs-chart-tooltip__body svg{margin-right:8px}body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}/*!
|
|
2
|
-
Theme: Ashes
|
|
3
|
-
Author: Jannik Siebert (https://github.com/janniks)
|
|
4
|
-
License: ~ MIT (or more permissive) [via base16-schemes-source]
|
|
5
|
-
Maintainer: @highlightjs/core-team
|
|
6
|
-
Version: 2021.09.0
|
|
7
|
-
*/pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#c7ccd1;background:#1c2023}.hljs ::selection,.hljs::selection{background-color:#565e65;color:#c7ccd1}.hljs-comment{color:#747c84}.hljs-tag{color:#adb3ba}.hljs-operator,.hljs-punctuation,.hljs-subst{color:#c7ccd1}.hljs-operator{opacity:.7}.hljs-bullet,.hljs-deletion,.hljs-name,.hljs-selector-tag,.hljs-template-variable,.hljs-variable{color:#c7ae95}.hljs-attr,.hljs-link,.hljs-literal,.hljs-number,.hljs-symbol,.hljs-variable.constant_{color:#c7c795}.hljs-class .hljs-title,.hljs-title,.hljs-title.class_{color:#aec795}.hljs-strong{font-weight:700;color:#aec795}.hljs-addition,.hljs-code,.hljs-string,.hljs-title.class_.inherited__{color:#95c7ae}.hljs-built_in,.hljs-doctag,.hljs-keyword.hljs-atrule,.hljs-quote,.hljs-regexp{color:#95aec7}.hljs-attribute,.hljs-function .hljs-title,.hljs-section,.hljs-title.function_,.ruby .hljs-property{color:#ae95c7}.diff .hljs-meta,.hljs-keyword,.hljs-template-tag,.hljs-type{color:#c795ae}.hljs-emphasis{color:#c795ae;font-style:italic}.hljs-meta,.hljs-meta .hljs-keyword,.hljs-meta .hljs-string{color:#c79595}.hljs-meta .hljs-keyword,.hljs-meta-keyword{font-weight:700}.custom-scrollbar[data-v-89cc241e]{overflow-y:auto;overflow-x:clip}.custom-scrollbar[data-v-89cc241e]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-89cc241e]::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:10px}.custom-scrollbar[data-v-89cc241e]::-webkit-scrollbar-track{background-color:#f1f1f1}.text-widget h1{font-size:18px}.text-widget h2{font-size:14px}.map__settings{display:flex;padding:3px 1px;background:#fff;position:absolute;right:0;bottom:15px;height:30px;align-items:center;font-weight:100;text-align:center}.map__settings-item{display:flex;white-space:nowrap;padding:0 2px;font-size:10px;font-weight:400}.map__settings-attribution{padding:0}.map__settings-menu{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:15px!important;position:absolute;background-color:#fff;bottom:60px;right:90px;width:260px}.map__settings-menu-item{display:flex;align-items:center;color:#2c2c2c;margin-bottom:5px;font-size:12px;justify-content:space-between;height:28px}.map__settings-menu-item-text{height:28px;line-height:28px;background-color:#fff;background-image:none;border-radius:4px;border:1px solid #dcdfe6;-webkit-box-sizing:border-box;box-sizing:border-box;color:#606266;display:inline-block;font-size:12px;height:40px;line-height:40px;outline:0;padding:0 10px}.map__settings-menu-item--checktext{color:#000!important;font-size:12px;display:inline-block;padding-left:10px;line-height:19px;cursor:pointer}.checked{color:#409eff!important}.vs-map-slot-layers{position:absolute;display:none;bottom:10px;left:15px}.vs-map-slot-layers__layer{width:50px;height:50px;background-color:#fff;box-shadow:0 0 7px #434c5626;padding:5px;border-radius:5px;margin-top:10px;margin-right:10px;cursor:pointer;transition:all .3s}.vs-map-slot-layers__layer:hover{background-color:#eee}.vs-map-slot-layers__image{width:100%;border-radius:5px;object-fit:contain}.focused{background-color:#1989fa!important}.maplibregl-popup-content{padding:0}
|
|
1
|
+
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}body{font-family:Inter,Segoe UI,Helvetica Neue,Roboto,sans-serif;font-weight:400}h1{font-family:Inter,Segoe UI,Helvetica Neue,Roboto,sans-serif;font-weight:700}em{font-family:Inter,Segoe UI,Helvetica Neue,Roboto,sans-serif;font-style:italic}.custom-x-scrollbar{overflow-x:auto;overflow-y:clip}.custom-x-scrollbar::-webkit-scrollbar{height:6px}.custom-x-scrollbar::-webkit-scrollbar-thumb{background-color:#e0e0e0}.custom-x-scrollbar::-webkit-scrollbar-track{background-color:#f1f1f1}.custom-scrollbar{overflow-y:auto;overflow-x:clip}.custom-scrollbar::-webkit-scrollbar{width:6px;margin-right:0}.custom-scrollbar::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:10px}.custom-scrollbar::-webkit-scrollbar-track{background-color:#f1f1f1}.vs-chart{width:100%;height:100%}.vs-chart-tooltip{border-radius:7px;max-height:100px;max-width:340px;min-width:140px;background-color:#fff;box-shadow:0 0 8px #0000002e}.vs-chart-tooltip__head{padding:5px;border-bottom:1px solid #eee;margin-bottom:5px}.vs-chart-tooltip__head-title{font-size:14px;font-weight:700;display:flex;align-items:center}.vs-chart-tooltip__head-value{margin-right:5px}.vs-chart-tooltip__head-series{font-size:14px;display:flex;align-items:center}.vs-chart-tooltip__color{width:12px;height:12px;display:block;border-radius:50%;margin-right:5px}.vs-chart-tooltip__body{padding:5px;font-size:14px;display:flex;align-items:start;flex-direction:column}.vs-chart-tooltip__body .vs-chart-tooltip__color{border-radius:3px}.vs-chart-tooltip__item{width:100%;display:flex;align-items:center;justify-content:space-between}.vs-chart-tooltip__text{margin-right:auto}.vs-chart-tooltip__body svg{margin-right:8px}body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-widget h1{font-size:18px}.text-widget h2{font-size:14px}.map__settings{display:flex;padding:3px 1px;background:#fff;position:absolute;right:0;bottom:15px;height:30px;align-items:center;font-weight:100;text-align:center}.map__settings-item{display:flex;white-space:nowrap;padding:0 2px;font-size:10px;font-weight:400}.map__settings-attribution{padding:0}.map__settings-menu{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:15px!important;position:absolute;background-color:#fff;bottom:60px;right:90px;width:260px}.map__settings-menu-item{display:flex;align-items:center;color:#2c2c2c;margin-bottom:5px;font-size:12px;justify-content:space-between;height:28px}.map__settings-menu-item-text{height:28px;line-height:28px;background-color:#fff;background-image:none;border-radius:4px;border:1px solid #dcdfe6;-webkit-box-sizing:border-box;box-sizing:border-box;color:#606266;display:inline-block;font-size:12px;height:40px;line-height:40px;outline:0;padding:0 10px}.map__settings-menu-item--checktext{color:#000!important;font-size:12px;display:inline-block;padding-left:10px;line-height:19px;cursor:pointer}.checked{color:#409eff!important}.vs-map-slot-layers{position:absolute;display:none;bottom:10px;left:15px}.vs-map-slot-layers__layer{width:50px;height:50px;background-color:#fff;box-shadow:0 0 7px #434c5626;padding:5px;border-radius:5px;margin-top:10px;margin-right:10px;cursor:pointer;transition:all .3s}.vs-map-slot-layers__layer:hover{background-color:#eee}.vs-map-slot-layers__image{width:100%;border-radius:5px;object-fit:contain}.focused{background-color:#1989fa!important}.maplibregl-popup-content{padding:0}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as n, c,
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { _ as n, c, a as h, b as l, d as o } from "./import-file-D06AZEtP.js";
|
|
2
|
+
import { openBlock as d, createElementBlock as p } from "vue";
|
|
3
|
+
const u = {
|
|
4
4
|
name: "VsFunnelBar",
|
|
5
5
|
mixins: [c],
|
|
6
6
|
data() {
|
|
@@ -19,7 +19,7 @@ const m = {
|
|
|
19
19
|
const { name: s, value: a, percent: e } = t;
|
|
20
20
|
return `
|
|
21
21
|
<div style="background-color:${r[0]};font-size: 12px; font-family: Helvetica, Arial, sans-serif;color:#ffff; padding:5px; border-radius:5px; ![box-shadow:none]">
|
|
22
|
-
${
|
|
22
|
+
${h(s)}: ${l(a)} (${e}%)
|
|
23
23
|
</div>`;
|
|
24
24
|
},
|
|
25
25
|
onChangedData() {
|
|
@@ -61,7 +61,7 @@ const m = {
|
|
|
61
61
|
},
|
|
62
62
|
async initChart(t) {
|
|
63
63
|
try {
|
|
64
|
-
const r = this.$refs.chart, s =
|
|
64
|
+
const r = this.$refs.chart, s = echarts.init(r), a = {
|
|
65
65
|
series: t,
|
|
66
66
|
...o(this.styleData),
|
|
67
67
|
tooltip: {
|
|
@@ -102,15 +102,15 @@ const m = {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
},
|
|
106
|
-
function
|
|
107
|
-
return
|
|
105
|
+
}, m = ["id"];
|
|
106
|
+
function f(t, r, s, a, e, i) {
|
|
107
|
+
return d(), p("div", {
|
|
108
108
|
ref: "chart",
|
|
109
109
|
id: e.uniqueID,
|
|
110
110
|
class: "h-[90%] custom-scrollbar min-h-[200px]"
|
|
111
|
-
}, null, 8,
|
|
111
|
+
}, null, 8, m);
|
|
112
112
|
}
|
|
113
|
-
const
|
|
113
|
+
const b = /* @__PURE__ */ n(u, [["render", f]]);
|
|
114
114
|
export {
|
|
115
|
-
|
|
115
|
+
b as default
|
|
116
116
|
};
|
|
@@ -0,0 +1,525 @@
|
|
|
1
|
+
import { openBlock as l, createElementBlock as h, createStaticVNode as V, createElementVNode as a, withDirectives as B, toDisplayString as L, vShow as P, Fragment as z, renderList as S, normalizeClass as G, resolveComponent as j, createVNode as D } from "vue";
|
|
2
|
+
import { _ as p } from "./import-file-D06AZEtP.js";
|
|
3
|
+
function N(t) {
|
|
4
|
+
return [
|
|
5
|
+
{
|
|
6
|
+
type: "fill",
|
|
7
|
+
paint: {
|
|
8
|
+
"fill-color": t.color || "#ccc",
|
|
9
|
+
"fill-outline-color": t.color || "blue",
|
|
10
|
+
"fill-opacity": t.opacity || 1
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
];
|
|
14
|
+
}
|
|
15
|
+
function F(t) {
|
|
16
|
+
return [
|
|
17
|
+
{
|
|
18
|
+
type: "line",
|
|
19
|
+
paint: {
|
|
20
|
+
"line-color": t.color || "#ccc",
|
|
21
|
+
"line-opacity": t.opacity || 1
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
];
|
|
25
|
+
}
|
|
26
|
+
function H(t) {
|
|
27
|
+
return [
|
|
28
|
+
{
|
|
29
|
+
type: "circle",
|
|
30
|
+
paint: {
|
|
31
|
+
"circle-radius": t.radius || 6,
|
|
32
|
+
"circle-stroke-color": t.stroke || "#ccc",
|
|
33
|
+
"circle-stroke-width": t.width || 1,
|
|
34
|
+
"circle-color": t.color || "blue"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
];
|
|
38
|
+
}
|
|
39
|
+
function x(t) {
|
|
40
|
+
if (!t) return null;
|
|
41
|
+
const e = t.type || "point";
|
|
42
|
+
return e === "polygon" ? N(t) : e === "line" ? F(t) : H(t);
|
|
43
|
+
}
|
|
44
|
+
const O = {
|
|
45
|
+
data() {
|
|
46
|
+
return {
|
|
47
|
+
layerList: [],
|
|
48
|
+
activeLayer: ""
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
computed: {
|
|
52
|
+
interactiveSources() {
|
|
53
|
+
return this.layerList.filter((t) => t == null ? void 0 : t.interactive).map((t) => t.id);
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
methods: {
|
|
57
|
+
moveLayer(t, e = this.map) {
|
|
58
|
+
e.getStyle().layers.forEach((i) => {
|
|
59
|
+
i.id.match(t) && e.moveLayer(i.id);
|
|
60
|
+
});
|
|
61
|
+
},
|
|
62
|
+
async setVisible(t, e = !0, i = this.map) {
|
|
63
|
+
if (!t) return;
|
|
64
|
+
const s = (t == null ? void 0 : t.id) || t, o = this.layerList.find((r) => r.id === t) || t;
|
|
65
|
+
if (!(o != null && o.id)) throw new Error("MixinError: Layer has no id");
|
|
66
|
+
const n = i.getStyle().layers.filter((r) => r.id.match(s));
|
|
67
|
+
n.forEach((r) => {
|
|
68
|
+
i.setLayoutProperty(
|
|
69
|
+
r.id,
|
|
70
|
+
"visibility",
|
|
71
|
+
e ? "visible" : "none"
|
|
72
|
+
);
|
|
73
|
+
}), !n.length && e && await this.addLayer(o);
|
|
74
|
+
},
|
|
75
|
+
async addLayer(t, e = this == null ? void 0 : this.map) {
|
|
76
|
+
var o, n;
|
|
77
|
+
const i = this.layerList.find((r) => r.id === t) || t;
|
|
78
|
+
!this.map.getStyle() || this.map.getStyle().layers.find((r) => r.id === i.id) || (this.layerList.find((r) => r.id === i.id) || this.layerList.push(i), (i.service === "vtile" || i.service === "vector" || (o = i.url) != null && o.includes(".vmt")) && this.addVtileLayer(i, e), i.service === "geojson" && this.addGeoJsonLayer(i, e), ((n = i.url) != null && n.includes(".png") || ["tms", "raster"].includes(i.service)) && await this.addRasterLayer(i, e));
|
|
79
|
+
},
|
|
80
|
+
async addRasterLayer(t, e = this == null ? void 0 : this.map) {
|
|
81
|
+
var i, s;
|
|
82
|
+
e.getSource(t.id) || (await e.addSource(t.id, {
|
|
83
|
+
type: "raster",
|
|
84
|
+
tiles: [t == null ? void 0 : t.url],
|
|
85
|
+
tileSize: 256,
|
|
86
|
+
...t != null && t.scheme ? { scheme: t == null ? void 0 : t.scheme } : {}
|
|
87
|
+
}), await e.addLayer(
|
|
88
|
+
{
|
|
89
|
+
id: t.id,
|
|
90
|
+
type: "raster",
|
|
91
|
+
source: t.id,
|
|
92
|
+
minzoom: 0,
|
|
93
|
+
maxzoom: (t == null ? void 0 : t.maxzoom) || 22
|
|
94
|
+
},
|
|
95
|
+
t.basemap ? (s = (i = this.map.getStyle().layers) == null ? void 0 : i[0]) == null ? void 0 : s.id : null
|
|
96
|
+
));
|
|
97
|
+
},
|
|
98
|
+
async addVtileLayer(t, e = this == null ? void 0 : this.map) {
|
|
99
|
+
var n;
|
|
100
|
+
const i = ["props", "pointZoom"].filter((r) => t[r]).map((r) => `&${r}=${t[r]}`), s = {
|
|
101
|
+
type: "vector",
|
|
102
|
+
tiles: [
|
|
103
|
+
`${(n = t == null ? void 0 : t.url) != null && n.startsWith("http") ? "" : window.location.origin}${t == null ? void 0 : t.url}${i}`
|
|
104
|
+
],
|
|
105
|
+
minzoom: t.minzoom || 3,
|
|
106
|
+
maxzoom: t.maxzoom || 24
|
|
107
|
+
};
|
|
108
|
+
e.addSource(t.id, s), (x(t.style) || t.layers || []).forEach((r, _) => {
|
|
109
|
+
const c = {
|
|
110
|
+
...r,
|
|
111
|
+
id: `${t.id}-${_}`,
|
|
112
|
+
source: t.id,
|
|
113
|
+
"source-layer": r["source-layer"] || t.source || t.id,
|
|
114
|
+
maxzoom: +r.maxzoom || 24,
|
|
115
|
+
minzoom: +r.minzoom || 0
|
|
116
|
+
};
|
|
117
|
+
e.addLayer(c);
|
|
118
|
+
});
|
|
119
|
+
},
|
|
120
|
+
async addGeoJsonLayer(t, e = this.map) {
|
|
121
|
+
var o;
|
|
122
|
+
const i = t.data || ((o = t == null ? void 0 : t.url) != null && o.startsWith("http") ? "" : window.location.origin) + t.url;
|
|
123
|
+
e.addSource(t.id, { type: "geojson", data: i }), (x(t.style) || t.layers || []).forEach((n) => {
|
|
124
|
+
const r = {
|
|
125
|
+
...n,
|
|
126
|
+
source: t.id,
|
|
127
|
+
id: n.id || t.id,
|
|
128
|
+
maxzoom: +n.maxzoom || 24,
|
|
129
|
+
minzoom: +n.minzoom || 0,
|
|
130
|
+
type: n.type || "circle"
|
|
131
|
+
};
|
|
132
|
+
e.addLayer(r);
|
|
133
|
+
});
|
|
134
|
+
},
|
|
135
|
+
setLayerData(t, e) {
|
|
136
|
+
this.layerList = this.layerList.map((i) => i.id === t ? { ...i, ...e } : i);
|
|
137
|
+
},
|
|
138
|
+
async removeLayer(t, e = this.map) {
|
|
139
|
+
e.getSource(t) && (await e.getStyle().layers.forEach(async (i) => {
|
|
140
|
+
i.source === t && await e.removeLayer(i.id);
|
|
141
|
+
}), await e.removeSource(t));
|
|
142
|
+
},
|
|
143
|
+
async setFilter(t, e) {
|
|
144
|
+
var o;
|
|
145
|
+
const i = this.layerList.find((n) => n.id === t), s = await ((o = this.map) == null ? void 0 : o.getSource(t));
|
|
146
|
+
if (s && i.service === "vtile") {
|
|
147
|
+
await s.setTiles([
|
|
148
|
+
`${window.location.origin}${i.url}${i.url.includes("?") ? "&" : "?"}filter=${e}${i.props ? `&props=${i.props}` : ""}`
|
|
149
|
+
]);
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
s && i.service;
|
|
153
|
+
},
|
|
154
|
+
async changeBaseLayer(t) {
|
|
155
|
+
const e = t != null && t.id ? t : this.layerList.find((s) => s.id === t), { id: i } = e;
|
|
156
|
+
if (i && i !== this.activeLayer) {
|
|
157
|
+
if (this.activeLayer && this.map.setLayoutProperty(this.activeLayer, "visibility", "none"), this.activeLayer = i, this.map.getLayer(i)) {
|
|
158
|
+
this.map.setLayoutProperty(i, "visibility", "visible");
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
await this.addRasterLayer(e);
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
async refreshLayer(t, e = this.map) {
|
|
165
|
+
await e.getStyle().layers.forEach((i) => {
|
|
166
|
+
i.source === t && e.removeLayer(i.id);
|
|
167
|
+
}), await e.removeSource(t), this.setVisible(t);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}, R = {}, W = {
|
|
171
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
172
|
+
width: "24",
|
|
173
|
+
height: "24",
|
|
174
|
+
viewBox: "0 0 24 24",
|
|
175
|
+
fill: "none",
|
|
176
|
+
stroke: "currentColor",
|
|
177
|
+
"stroke-width": "1",
|
|
178
|
+
"stroke-linecap": "round",
|
|
179
|
+
"stroke-linejoin": "round",
|
|
180
|
+
class: "icon icon-tabler icons-tabler-outline icon-tabler-list-details"
|
|
181
|
+
};
|
|
182
|
+
function J(t, e) {
|
|
183
|
+
return l(), h("svg", W, e[0] || (e[0] = [
|
|
184
|
+
V('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M13 5h8"></path><path d="M13 9h5"></path><path d="M13 15h8"></path><path d="M13 19h5"></path><path d="M3 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"></path><path d="M3 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"></path>', 7)
|
|
185
|
+
]));
|
|
186
|
+
}
|
|
187
|
+
const U = /* @__PURE__ */ p(R, [["render", J]]), Z = {}, q = {
|
|
188
|
+
class: "shrink-0 size-3",
|
|
189
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
190
|
+
width: "24",
|
|
191
|
+
height: "24",
|
|
192
|
+
viewBox: "0 0 24 24",
|
|
193
|
+
fill: "none",
|
|
194
|
+
stroke: "currentColor",
|
|
195
|
+
"stroke-width": "2",
|
|
196
|
+
"stroke-linecap": "round",
|
|
197
|
+
"stroke-linejoin": "round"
|
|
198
|
+
};
|
|
199
|
+
function A(t, e) {
|
|
200
|
+
return l(), h("svg", q, e[0] || (e[0] = [
|
|
201
|
+
a("path", { d: "M18 6 6 18" }, null, -1),
|
|
202
|
+
a("path", { d: "m6 6 12 12" }, null, -1)
|
|
203
|
+
]));
|
|
204
|
+
}
|
|
205
|
+
const K = /* @__PURE__ */ p(Z, [["render", A]]), zt = {
|
|
206
|
+
pink: ["#fde7e2", "#feafbe", "#fd58a4", "#d7038e", "#86007b"],
|
|
207
|
+
blue: ["#f1eef6", "#bdc9e1", "#74a9cf", "#2b8cbe", "#045a8d"],
|
|
208
|
+
green: ["#edf8fb", "#b2e2e2", "#66c2a4", "#2ca25f", "#006d2c"],
|
|
209
|
+
pink2: ["#f1eef6", "#d7b5d8", "#df65b0", "#dd1c77", "#980043"],
|
|
210
|
+
red: ["#fef0d9", "#fdcc8a", "#fc8d59", "#e34a33", "#b30000"],
|
|
211
|
+
teal: ["#f6eff7", "#bdc9e1", "#67a9cf", "#1c9099", "#016c59"]
|
|
212
|
+
};
|
|
213
|
+
function E(t, e, i) {
|
|
214
|
+
if (t !== null)
|
|
215
|
+
for (var s, o, n, r, _, c, y, b = 0, u = 0, v, k = t.type, $ = k === "FeatureCollection", M = k === "Feature", C = $ ? t.features.length : 1, f = 0; f < C; f++) {
|
|
216
|
+
y = $ ? t.features[f].geometry : M ? t.geometry : t, v = y ? y.type === "GeometryCollection" : !1, _ = v ? y.geometries.length : 1;
|
|
217
|
+
for (var w = 0; w < _; w++) {
|
|
218
|
+
var d = 0, m = 0;
|
|
219
|
+
if (r = v ? y.geometries[w] : y, r !== null) {
|
|
220
|
+
c = r.coordinates;
|
|
221
|
+
var g = r.type;
|
|
222
|
+
switch (b = 0, g) {
|
|
223
|
+
case null:
|
|
224
|
+
break;
|
|
225
|
+
case "Point":
|
|
226
|
+
if (e(
|
|
227
|
+
c,
|
|
228
|
+
u,
|
|
229
|
+
f,
|
|
230
|
+
d,
|
|
231
|
+
m
|
|
232
|
+
) === !1)
|
|
233
|
+
return !1;
|
|
234
|
+
u++, d++;
|
|
235
|
+
break;
|
|
236
|
+
case "LineString":
|
|
237
|
+
case "MultiPoint":
|
|
238
|
+
for (s = 0; s < c.length; s++) {
|
|
239
|
+
if (e(
|
|
240
|
+
c[s],
|
|
241
|
+
u,
|
|
242
|
+
f,
|
|
243
|
+
d,
|
|
244
|
+
m
|
|
245
|
+
) === !1)
|
|
246
|
+
return !1;
|
|
247
|
+
u++, g === "MultiPoint" && d++;
|
|
248
|
+
}
|
|
249
|
+
g === "LineString" && d++;
|
|
250
|
+
break;
|
|
251
|
+
case "Polygon":
|
|
252
|
+
case "MultiLineString":
|
|
253
|
+
for (s = 0; s < c.length; s++) {
|
|
254
|
+
for (o = 0; o < c[s].length - b; o++) {
|
|
255
|
+
if (e(
|
|
256
|
+
c[s][o],
|
|
257
|
+
u,
|
|
258
|
+
f,
|
|
259
|
+
d,
|
|
260
|
+
m
|
|
261
|
+
) === !1)
|
|
262
|
+
return !1;
|
|
263
|
+
u++;
|
|
264
|
+
}
|
|
265
|
+
g === "MultiLineString" && d++, g === "Polygon" && m++;
|
|
266
|
+
}
|
|
267
|
+
g === "Polygon" && d++;
|
|
268
|
+
break;
|
|
269
|
+
case "MultiPolygon":
|
|
270
|
+
for (s = 0; s < c.length; s++) {
|
|
271
|
+
for (m = 0, o = 0; o < c[s].length; o++) {
|
|
272
|
+
for (n = 0; n < c[s][o].length - b; n++) {
|
|
273
|
+
if (e(
|
|
274
|
+
c[s][o][n],
|
|
275
|
+
u,
|
|
276
|
+
f,
|
|
277
|
+
d,
|
|
278
|
+
m
|
|
279
|
+
) === !1)
|
|
280
|
+
return !1;
|
|
281
|
+
u++;
|
|
282
|
+
}
|
|
283
|
+
m++;
|
|
284
|
+
}
|
|
285
|
+
d++;
|
|
286
|
+
}
|
|
287
|
+
break;
|
|
288
|
+
case "GeometryCollection":
|
|
289
|
+
for (s = 0; s < r.geometries.length; s++)
|
|
290
|
+
if (E(r.geometries[s], e) === !1)
|
|
291
|
+
return !1;
|
|
292
|
+
break;
|
|
293
|
+
default:
|
|
294
|
+
throw new Error("Unknown Geometry Type");
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
function Q(t, e = {}) {
|
|
301
|
+
if (t.bbox != null && e.recompute !== !0)
|
|
302
|
+
return t.bbox;
|
|
303
|
+
const i = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
304
|
+
return E(t, (s) => {
|
|
305
|
+
i[0] > s[0] && (i[0] = s[0]), i[1] > s[1] && (i[1] = s[1]), i[2] < s[0] && (i[2] = s[0]), i[3] < s[1] && (i[3] = s[1]);
|
|
306
|
+
}), i;
|
|
307
|
+
}
|
|
308
|
+
const X = {
|
|
309
|
+
props: ["map", "coordinates"],
|
|
310
|
+
data() {
|
|
311
|
+
return {
|
|
312
|
+
isMenuVisible: !1
|
|
313
|
+
};
|
|
314
|
+
},
|
|
315
|
+
computed: {
|
|
316
|
+
getCoordinates() {
|
|
317
|
+
var e;
|
|
318
|
+
return !(this != null && this.coordinates) || ((e = this.coordinates) == null ? void 0 : e.length) !== 2 ? "" : (this == null ? void 0 : this.coordinates).slice().reverse().map((i) => Number(i).toFixed(5)).join(", ");
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}, Y = { class: "map__settings" }, T = {
|
|
322
|
+
ref: "attribution",
|
|
323
|
+
class: "map__settings-attribution map__settings-item mt-[3px]"
|
|
324
|
+
};
|
|
325
|
+
function I(t, e, i, s, o, n) {
|
|
326
|
+
return l(), h("div", Y, [
|
|
327
|
+
a("div", T, [
|
|
328
|
+
B(a("div", {
|
|
329
|
+
ref: "mouse",
|
|
330
|
+
class: "map__settings-item",
|
|
331
|
+
style: { "min-width": "115px" }
|
|
332
|
+
}, L(n.getCoordinates), 513), [
|
|
333
|
+
[P, n.getCoordinates]
|
|
334
|
+
])
|
|
335
|
+
], 512)
|
|
336
|
+
]);
|
|
337
|
+
}
|
|
338
|
+
const St = /* @__PURE__ */ p(X, [["render", I]]), tt = {
|
|
339
|
+
mixins: [O],
|
|
340
|
+
props: {
|
|
341
|
+
map: { type: Object, default: () => null }
|
|
342
|
+
},
|
|
343
|
+
data() {
|
|
344
|
+
return {
|
|
345
|
+
baseLayers: [
|
|
346
|
+
{
|
|
347
|
+
id: "orto10",
|
|
348
|
+
name: "Ortophoto 1:10К",
|
|
349
|
+
url: "https://data.gki.com.ua/api-user/rtile/orto10/ua/{z}/{x}/{y}.png",
|
|
350
|
+
service: "TMS",
|
|
351
|
+
image: "https://data.gki.com.ua/api-user/rtile/orto10/ua/13/4954/2876.png"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
id: "graymap",
|
|
355
|
+
name: "Сіра карта",
|
|
356
|
+
url: "https://data.gki.com.ua/api-user/rtile/voyager/ua/{z}/{x}/{y}.png",
|
|
357
|
+
service: "TMS",
|
|
358
|
+
image: "https://data.gki.com.ua/api-user/rtile/positron/ua/10/601/348.png"
|
|
359
|
+
}
|
|
360
|
+
]
|
|
361
|
+
};
|
|
362
|
+
},
|
|
363
|
+
watch: {
|
|
364
|
+
map(t) {
|
|
365
|
+
t && t.on("load", this.handleMapLoad);
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
created() {
|
|
369
|
+
this.baseLayers.forEach((t) => {
|
|
370
|
+
const e = { ...t, basemap: !0 };
|
|
371
|
+
this.layerList.push(e);
|
|
372
|
+
});
|
|
373
|
+
},
|
|
374
|
+
methods: {
|
|
375
|
+
handleMapLoad() {
|
|
376
|
+
this.changeBaseLayer("graymap");
|
|
377
|
+
},
|
|
378
|
+
isLayerInFocus(t) {
|
|
379
|
+
return t.id === this.activeLayer;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}, et = { class: "vs-map-slot-layers" }, it = ["onClick"], st = ["src"];
|
|
383
|
+
function rt(t, e, i, s, o, n) {
|
|
384
|
+
return l(), h("div", et, [
|
|
385
|
+
(l(!0), h(z, null, S(o.baseLayers, (r) => (l(), h("div", {
|
|
386
|
+
key: r.id,
|
|
387
|
+
class: G(["vs-map-slot-layers__layer", { focused: n.isLayerInFocus(r) }]),
|
|
388
|
+
onClick: (_) => t.changeBaseLayer(r.id)
|
|
389
|
+
}, [
|
|
390
|
+
a("img", {
|
|
391
|
+
src: r.image,
|
|
392
|
+
class: "vs-map-slot-layers__image"
|
|
393
|
+
}, null, 8, st)
|
|
394
|
+
], 10, it))), 128))
|
|
395
|
+
]);
|
|
396
|
+
}
|
|
397
|
+
const Et = /* @__PURE__ */ p(tt, [["render", rt]]), ot = {}, nt = {
|
|
398
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
399
|
+
width: "24",
|
|
400
|
+
height: "24",
|
|
401
|
+
viewBox: "0 0 24 24",
|
|
402
|
+
fill: "none",
|
|
403
|
+
stroke: "currentColor",
|
|
404
|
+
"stroke-width": "1",
|
|
405
|
+
"stroke-linecap": "round",
|
|
406
|
+
"stroke-linejoin": "round",
|
|
407
|
+
class: "icon icon-tabler icons-tabler-outline icon-tabler-home"
|
|
408
|
+
};
|
|
409
|
+
function at(t, e) {
|
|
410
|
+
return l(), h("svg", nt, e[0] || (e[0] = [
|
|
411
|
+
a("path", {
|
|
412
|
+
stroke: "none",
|
|
413
|
+
d: "M0 0h24v24H0z",
|
|
414
|
+
fill: "none"
|
|
415
|
+
}, null, -1),
|
|
416
|
+
a("path", { d: "M5 12l-2 0l9 -9l9 9l-2 0" }, null, -1),
|
|
417
|
+
a("path", { d: "M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" }, null, -1),
|
|
418
|
+
a("path", { d: "M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" }, null, -1)
|
|
419
|
+
]));
|
|
420
|
+
}
|
|
421
|
+
const ct = /* @__PURE__ */ p(ot, [["render", at]]), lt = {
|
|
422
|
+
props: ["bbox", "map"],
|
|
423
|
+
components: { homeIcon: ct },
|
|
424
|
+
methods: {
|
|
425
|
+
setBounds() {
|
|
426
|
+
const t = {
|
|
427
|
+
type: "Feature",
|
|
428
|
+
geometry: this == null ? void 0 : this.bbox
|
|
429
|
+
}, e = Q(t);
|
|
430
|
+
this.map.fitBounds(e);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}, ht = { class: "z-100 flex justify-center items-center rounded-md w-[32px] h-[32px] cursor-pointer bg-white p-1 border-[2px]" };
|
|
434
|
+
function dt(t, e, i, s, o, n) {
|
|
435
|
+
const r = j("homeIcon");
|
|
436
|
+
return l(), h("div", ht, [
|
|
437
|
+
D(r, { onClick: n.setBounds }, null, 8, ["onClick"])
|
|
438
|
+
]);
|
|
439
|
+
}
|
|
440
|
+
const Mt = /* @__PURE__ */ p(lt, [["render", dt]]), ut = {}, pt = {
|
|
441
|
+
class: "shrink-0 size-4",
|
|
442
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
443
|
+
width: "24",
|
|
444
|
+
height: "24",
|
|
445
|
+
viewBox: "0 0 24 24",
|
|
446
|
+
fill: "#9E9E9E",
|
|
447
|
+
stroke: "#9E9E9E",
|
|
448
|
+
"stroke-width": "2",
|
|
449
|
+
"stroke-linecap": "#9E9E9E",
|
|
450
|
+
"stroke-linejoin": "#9E9E9E"
|
|
451
|
+
};
|
|
452
|
+
function ft(t, e) {
|
|
453
|
+
return l(), h("svg", pt, e[0] || (e[0] = [
|
|
454
|
+
a("circle", {
|
|
455
|
+
cx: "12",
|
|
456
|
+
cy: "12",
|
|
457
|
+
r: "1"
|
|
458
|
+
}, null, -1),
|
|
459
|
+
a("circle", {
|
|
460
|
+
cx: "12",
|
|
461
|
+
cy: "5",
|
|
462
|
+
r: "1"
|
|
463
|
+
}, null, -1),
|
|
464
|
+
a("circle", {
|
|
465
|
+
cx: "12",
|
|
466
|
+
cy: "19",
|
|
467
|
+
r: "1"
|
|
468
|
+
}, null, -1)
|
|
469
|
+
]));
|
|
470
|
+
}
|
|
471
|
+
const mt = /* @__PURE__ */ p(ut, [["render", ft]]), yt = {
|
|
472
|
+
components: { legendIcon: U, menuIcon: mt, closeIcon: K },
|
|
473
|
+
props: ["source", "count", "total", "mapId"],
|
|
474
|
+
data() {
|
|
475
|
+
return {
|
|
476
|
+
isOpenLegend: !1,
|
|
477
|
+
palette: ["#69D2E7", "yellow", "#FE4365"]
|
|
478
|
+
};
|
|
479
|
+
},
|
|
480
|
+
methods: {
|
|
481
|
+
calcSize(t) {
|
|
482
|
+
return t / this.maxValue * 100 * 50 / 100;
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
computed: {
|
|
486
|
+
maxValue() {
|
|
487
|
+
var t, e, i, s, o, n;
|
|
488
|
+
return ((t = this.sizes) == null ? void 0 : t[0]) > ((i = this.sizes) == null ? void 0 : i[((e = this.sizes) == null ? void 0 : e.length) - 1]) ? (s = this.sizes) == null ? void 0 : s[0] : (n = this.sizes) == null ? void 0 : n[((o = this.sizes) == null ? void 0 : o.length) - 1];
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}, gt = { class: "w-full h-[calc(100%-40px)] bg-white" }, _t = { class: "w-full flex flex-col gap-[8px] h-[250px] overflow-auto [&::-webkit-scrollbar]:h-1.5 [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-gray-300 [&::-webkit-scrollbar-track]:bg-transparent text-xs" }, bt = { class: "relative min-w-full bg-white text-[12px]" }, vt = { class: "divide-gray-200 dark:divide-neutral-700" }, wt = { class: "px-2 py-1" }, Lt = { class: "px-2 py-1" };
|
|
492
|
+
function kt(t, e, i, s, o, n) {
|
|
493
|
+
return l(), h("div", gt, [
|
|
494
|
+
a("div", _t, [
|
|
495
|
+
a("table", bt, [
|
|
496
|
+
e[0] || (e[0] = a("thead", { class: "sticky top-[-1px] z-[1] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, [
|
|
497
|
+
a("tr", null, [
|
|
498
|
+
a("th", { class: "px-2 py-1 text-start" }, "Назва"),
|
|
499
|
+
a("th", { class: "px-2 py-1 text-start" }, "Метрика")
|
|
500
|
+
])
|
|
501
|
+
], -1)),
|
|
502
|
+
a("tbody", vt, [
|
|
503
|
+
(l(!0), h(z, null, S(i.source, (r) => (l(), h("tr", {
|
|
504
|
+
key: r.id,
|
|
505
|
+
class: "border-b cursor-pointer hover:bg-gray-100 odd:bg-gray-50"
|
|
506
|
+
}, [
|
|
507
|
+
a("td", wt, L(r.title || "—"), 1),
|
|
508
|
+
a("td", Lt, L(r.metric), 1)
|
|
509
|
+
]))), 128))
|
|
510
|
+
])
|
|
511
|
+
])
|
|
512
|
+
])
|
|
513
|
+
]);
|
|
514
|
+
}
|
|
515
|
+
const Ct = /* @__PURE__ */ p(yt, [["render", kt]]);
|
|
516
|
+
export {
|
|
517
|
+
St as V,
|
|
518
|
+
Et as a,
|
|
519
|
+
Mt as b,
|
|
520
|
+
K as c,
|
|
521
|
+
Ct as d,
|
|
522
|
+
O as e,
|
|
523
|
+
U as l,
|
|
524
|
+
zt as p
|
|
525
|
+
};
|