@map-colonies/react-components 4.13.0 → 4.13.3
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/@map-colonies/react-components.es.js +1086 -1068
- package/dist/@map-colonies/react-components.umd.js +12 -12
- package/dist/cesium-map/base-map/base-map-widget.d.ts +3 -2
- package/dist/cesium-map/debug/wfs-debug-widget.d.ts +3 -2
- package/dist/cesium-map/geocoder/geocoder-widget.d.ts +3 -2
- package/dist/cesium-map/widget/widget-wrapper.css +3 -0
- package/dist/cesium-map/widget/widget-wrapper.d.ts +6 -0
- package/dist/date-range-picker/date-range-picker.d.ts +1 -0
- package/dist/models/defaults.d.ts +1 -0
- package/dist/multi-selection/multi-selection.d.ts +1 -1
- package/package.json +3 -2
|
@@ -1,83 +1,87 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('body[dir=rtl] .drpOpener .mdc-text-field{direction:ltr}body[dir=rtl] .drpContainer .MuiInputLabel-formControl{right:0px;left:unset}body[dir=rtl] .drpContainer .MuiInputBase-input{direction:ltr;text-align:end}.map{height:100%;width:100%}.ol-mouse-position{top:auto!important;right:auto!important;bottom:8px;left:8px;background-color:#fff;opacity:.7;font-size:12px;padding:2px;border-radius:2px}.ol-zoom{top:2.5em;right:.5em;left:unset}.cesium-viewer .activeLayersPanel .layer{display:flex;justify-content:space-between;align-items:center;width:90%}.cesium-viewer .activeLayersPanel .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cesium-viewer .activeLayersPanel .name.disabled{opacity:.5;pointer-events:none}.cesium-viewer .activeLayersPanel .icons{display:flex;justify-content:flex-end;align-items:center}.cesium-viewer .activeLayersPanel .icon{width:17px;height:17px;margin-left:8px;cursor:pointer}.cesium-viewer .activeLayersPanel .icon.disabled{opacity:0;pointer-events:none}.cesium-viewer .wfsContainer .title{text-align:center;font-weight:700;margin-bottom:12px;width:260px}.cesium-viewer .wfsContainer .featureType{font-size:12px;margin-bottom:12px;direction:ltr}body[dir=rtl] .cesium-viewer .wfsContainer .featureType{direction:rtl}.cesium-viewer .wfsContainer .name{color:#aef;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:260px}.cesium-viewer .wfsContainer .info{display:flex}.cesium-viewer .wfsContainer .spacer{margin:0 20px}.cesium-viewer .wfsContainer .blinking{animation:blink 1s infinite}@keyframes blink{0%,to{opacity:1}50%{opacity:.5}}.cesium-viewer .geocoderContainer{display:flex;flex-direction:row-reverse;color:var(--mdc-theme-cesium-color)}.cesium-viewer .geocoderContainer .mdc-text-field__input{width:100%;border-radius:4px;padding:4px}.cesium-viewer .geocoderContainer .listsContainer{max-height:348px;overflow-y:auto;overflow-x:hidden;width:100%}.cesium-viewer .geocoderContainer .listContainer{border:1px solid var(--mdc-theme-cesium-color);min-height:56px;width:308px;max-height:56px;overflow-y:auto;overflow-x:hidden;padding-top:2px}.cesium-viewer .geocoderContainer .listContainer .queryItemResult{display:flex;justify-content:space-between;width:100%}.cesium-viewer .geocoderContainer .listContainer .queryNoResults{justify-content:normal;color:unset}.cesium-viewer .geocoderContainer .listContainer .queryError{color:var(--mdc-theme-cesium-error)}.cesium-viewer .geocoderContainer .listContainer .queryWarning{color:var(--mdc-theme-cesium-warning)}.cesium-viewer .geocoderContainer .listContainer .generalListItem{font-size:var(--mdc-theme-cesium-font-size);text-wrap:wrap!important;padding:unset;padding-right:4px;padding-left:4px}body[dir=ltr] .cesium-viewer .geocoderContainer .geocoderForm{position:relative;right:8%}body[dir=rtl] .cesium-viewer .geocoderContainer .geocoderForm{position:relative;right:0%}.cesium-viewer .geocoderContainer .checkboxesContainer{display:flex;justify-content:space-between;padding-bottom:8px}.cesium-viewer .geocoderContainer .checkboxElement{font-size:var(--mdc-theme-cesium-font-size);font-weight:700;flex:1}.cesium-viewer .geocoderContainer .bold{font-weight:700}.cesium-viewer .geocoderContainer .cesium-geocoder-searchButton{position:relative!important}.cesium-viewer .geocoderContainer .cesium-geocoder-input{width:100%;background:transparent;border-color:var(--mdc-theme-cesium-color)}.viewer .mapLegendSidebarContainer{width:340px;height:100%;position:relative;overflow-y:auto;overflow-x:hidden;font-size:16px}.viewer .mapLegendSidebarContainer.mdc-drawer--animate{transform:translate(0)!important;transition:none!important}.viewer .mapLegendSidebarContainer.mdc-drawer--dismissible{position:relative}.viewer div.MuiPaper-root{transition:none!important}.viewer .mapLegendCloseBtn{position:absolute;top:0;right:0;cursor:pointer;width:50px;height:50px;padding:20px;font-size:24px}body[dir=rtl] .viewer .mapLegendCloseBtn{right:unset;left:0}.viewer .mapLegendIcon{width:2rem;height:2rem;transform:translate(8%,8%)}.viewer .sidebarHeaderContainer{text-align:center;margin-top:40px}.viewer .sidebarTitle{font-size:1.5rem;font-weight:700}.viewer .mapLegend{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 14px}.viewer .layerNameContainer{width:90%;display:flex;justify-content:center;align-items:center}.viewer .layerName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.viewer .legendImg{width:90%;height:150px;border:1px solid black;border-radius:5px;object-fit:cover;cursor:pointer}.viewer .legendActionsContainer{display:flex;flex-direction:row;align-self:center}.viewer .legendAction:not(:last-child):after{content:"|";margin:0 4px}.viewer .mapLegendsList{display:flex;flex-direction:column;padding:20px 0;width:100%;height:90%}.viewer .legendAction{text-decoration:underline;cursor:pointer;font-size:1.1rem;transition:all .1s ease-in-out;width:max-content}.viewer .legendAction:hover{filter:brightness(1.2)}.viewer .noLegendsContainer{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.viewer .noLegendsMsg{text-align:center}.cesium-viewer .compass{top:20px;right:0px}body[dir=rtl] .cesium-viewer .compass{right:unset;left:0px}.cesium-viewer .coordinatesTracker{background-color:var(--mdc-theme-surface);padding-top:7px;border-radius:2px;font-size:12px;text-align:center;white-space:nowrap;min-width:200px}.cesium-viewer .scaleTracker{background-color:var(--mdc-theme-surface);padding-top:4px;border-radius:2px;font-size:12px;width:110px}.cesium-viewer .scaleTrackerLabel{text-align:center}.cesium-viewer .scaleTrackerBar{background:var(--mdc-theme-on-surface);margin:0 auto;display:block;transition:all .5s ease-in-out}.cesium-viewer .zoomButtons{display:flex;flex-direction:column;gap:2px;position:absolute;bottom:48px;right:30px}body[dir=rtl] .cesium-viewer .zoomButtons{right:unset;left:30px}.cesium-viewer .zoomButton{width:32px;height:32px;background:#303336;border:1px solid #444;border-radius:4px;box-sizing:border-box;display:flex;justify-content:center;padding:4px;cursor:pointer}.cesium-viewer .zoomButton:hover{background:#48b;border-color:#aef}.cesium-viewer .zoomLevel{background-color:var(--mdc-theme-surface);border-radius:2px;padding:2px;height:24px}.cesium-viewer .zoomLevelValue{margin:2px;font-size:14px;line-height:12px;text-align:center}.cesium-viewer .zoomLevelLabel{font-size:8px;line-height:8px;display:table;margin:auto}.cesium-viewer .cesium-widget-credits{display:none!important}.cesium-viewer .cesium-viewer-toolbar{display:flex;flex-direction:column;align-items:flex-end;top:116px;right:27px}body[dir=rtl] .cesium-viewer .cesium-viewer-toolbar{left:27px;right:unset}.cesium-viewer .widgetsContainer{top:24px;left:10px}body[dir=rtl] .cesium-viewer .widgetsContainer{left:unset;right:10px}.cesium-viewer .cesium-mc-tool{display:block;position:absolute;box-sizing:content-box;top:auto;right:0;width:320px;max-height:500px;margin-top:5px;background-color:#262626bf;border:1px solid #444;padding:6px;overflow:auto;border-radius:10px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;transform:translateY(-20%);visibility:hidden;opacity:0;transition:visibility 0s .2s,opacity .2s ease-in,transform .2s ease-in}.cesium-viewer .cesium-mc-tool-visible{transform:translate(0);visibility:visible;opacity:1;transition:opacity .2s ease-out,transform .2s ease-out}.cesium-viewer .cesium-mc-title{display:block;font-family:sans-serif;font-size:16pt;text-align:left;margin-bottom:4px}body[dir=rtl] .cesium-viewer .cesium-mc-title{text-align:right}.cesium-viewer .cesium-mc-tool{color:var(--mdc-theme-cesium-color);right:40px;margin-top:0}body[dir=rtl] .cesium-viewer .cesium-mc-tool{right:unset;left:40px}.cesium-viewer .cesium-mc-choices{display:block;border:1px solid #888;border-radius:5px;padding:5px 0;margin-bottom:5px}.cesium-viewer .cesium-baseLayerPicker-dropDown{right:40px;margin-top:0}body[dir=rtl] .cesium-viewer .cesium-baseLayerPicker-dropDown{right:unset;left:40px}body[dir=rtl] .cesium-viewer .cesium-baseLayerPicker-sectionTitle{text-align:right}.cesium-viewer span.cesium-sceneModePicker-wrapper{width:100%;display:flex;flex-direction:row-reverse;align-items:center;column-gap:4px;margin:3px 3px 1px}.cesium-viewer .cesium-viewer-fullscreenContainer{width:32px;height:32px;bottom:9px;right:30px}body[dir=rtl] .cesium-viewer .cesium-viewer-fullscreenContainer{right:unset;left:30px}.cesium-viewer .cesium-button.cesium-fullscreenButton{border-radius:14%;box-sizing:border-box}.cesium-viewer .bottomToolsContainer{color:var(--mdc-theme-on-surface);opacity:.7;display:flex;gap:8px;position:absolute;bottom:10px;right:70px}body[dir=rtl] .cesium-viewer .bottomToolsContainer{left:70px;right:unset}.cesium-viewer input[type=checkbox]{accent-color:var(--mdc-theme-cesium-checkbox-color)}.cesium-viewer input::placeholder{color:unset;opacity:.8}.cesium-viewer input{font-size:var(--mdc-theme-cesium-font-size);color:unset;font-weight:700;caret-color:unset}.cesium-viewer ::-webkit-scrollbar{width:6px;height:6px}.cesium-viewer ::-webkit-scrollbar-track{box-shadow:inset 0 0 6px #0000004d;border-radius:6px}.cesium-viewer ::-webkit-scrollbar-thumb{background-color:#aaa;border-radius:6px}.cesium-viewer .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-theme-cesium-checkbox-color);background-color:var(--mdc-theme-cesium-checkbox-color)}.cesium-viewer .mdc-checkbox--upgraded{--mdc-checkbox-checked-color: var(--mdc-theme-cesium-checkbox-color)}.cesium-viewer .mdc-checkbox{width:var(--mdc-theme-cesium-checkbox-width);height:var(--mdc-theme-cesium-checkbox-height)}.cesium-viewer .mdc-checkbox__background{width:12px;height:12px}.cesium-viewer .mdc-form-field{color:unset;margin:-2% -2% -4%}.cesium-viewer .mdc-form-field>label{color:unset}.cesium-viewer .mdc-ripple-upgraded--unbounded{--mdc-ripple-fg-size: 0px !important}.cesium-viewer .mdc-list{font-size:var(--mdc-theme-cesium-font-size);font-family:sans-serif;padding:1px;color:unset}.cesium-viewer .mdc-list-item{padding:unset;padding-right:4px;padding-left:4px;height:24px;font-weight:700}.cesium-viewer .mdc-text-field--filled{height:32px}.cesium-viewer .mdc-text-field__input{box-sizing:border-box;border:unset}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:transparent!important}.cesium-viewer .mdc-text-field{padding:unset;padding-right:4px;padding-left:4px}.cesium-viewer .mdc-line-ripple:before,.cesium-viewer .mdc-line-ripple:after{border-bottom:none!important}.cesium-viewer .disabled{opacity:.6;cursor:initial}.cesium-viewer .search-results{padding:4px}.viewer{display:flex;flex-direction:row}.viewer .mdc-linear-progress__bar-inner{border-top-width:10px}.twipsy{display:block;position:absolute;visibility:visible;max-width:200px;min-width:100px;padding:5px;font-size:11px;z-index:100;opacity:.8;-khtml-opacity:.8;-moz-opacity:.8;filter:alpha(opacity=80)}.twipsy.left .twipsy-arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000}.twipsy.right .twipsy-arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid #000000}.twipsy-inner{padding:3px 8px;background-color:#000;color:#fff;text-align:center;max-width:200px;text-decoration:none;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.twipsy-arrow{position:absolute;width:0;height:0}.toolbar{margin:0;padding:0;background:white}.toolbar>.button{margin:5px;padding:5px;border:1px solid #eee;cursor:pointer}.toolbar>.button:hover{background:#eee}.infoWindow{position:absolute;min-width:100px;max-width:300px}.infoWindow #frame{padding:10px;border:1px solid black;background:white}.infoWindow #close{float:right;margin:5px 2px;font-size:small;color:gray;cursor:pointer}.infoWindow #arrow{position:absolute;bottom:-8px;left:50%;margin-left:-10px;border-right:10px solid transparent;border-left:10px solid transparent;border-top:10px solid white}.react-autocomplete-input{background-clip:padding-box;background-color:#fff;bottom:auto;box-shadow:0 6px 12px #0000002d;display:block;font-size:14px;list-style:none;padding:1px;position:absolute;z-index:200;margin-block-start:unset;margin-block-end:unset}.react-autocomplete-input>li{cursor:pointer;padding:10px;min-width:100px}.react-autocomplete-input>li.active{background-color:#337ab7;color:#fff}body[dir=rtl] .chonky-fileListWrapper [class^=listContainer-]{direction:rtl!important}body[dir=rtl] .chonky-fileEntryClickableWrapper [class^=listFileEntryProperty-],body[dir=rtl] .chonky-navbarContainer{direction:ltr!important}body[dir=rtl] .chonky-chonkyRoot{text-align:right}body[dir=rtl] .chonky-infoText{margin-left:unset;margin-right:12px}body[dir=rtl] .chonky-contextMenuList .MuiListItemText-root,body[dir=rtl] .chonky-dropdownList .MuiListItemText-root{text-align:right}body[dir=rtl] .chonky-icon{margin-right:unset;margin-left:8px}.chonky-chonkyRoot div[class^=folderBackSide]{box-shadow:unset}.chonky-chonkyRoot div[class^=folderBackSide]:after{border-color:var(--fp-theme-background, #fff) var(--fp-theme-background, #fff) transparent transparent}.chonky-chonkyRoot div[class^=listFileEntryIcon-]{color:#d5d5d5}.chonky-chonkyRoot div[class*=previewFile-d]{background-color:#d5d5d5}.chonky-chonkyRoot div[class^=selectionIndicator-]{background:var(--fp-theme-selection-background, #455570)}.chonky-chonkyRoot{background-color:var(--fp-theme-background, #fff)!important}.chonky-contextMenuList{background-color:var(--fp-theme-surface, #fff)!important}button[class*=chonky-activeButton],.chonky-selectionSizeText{color:var(--fp-theme-primary, #24aee9)!important}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var ue = (e, t, n) => (
|
|
5
|
-
import { jsx as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('body[dir=rtl] .drpOpener .mdc-text-field{direction:ltr}body[dir=rtl] .drpContainer .MuiInputLabel-formControl{right:0px;left:unset}body[dir=rtl] .drpContainer .MuiInputBase-input{direction:ltr;text-align:end}.map{height:100%;width:100%}.ol-mouse-position{top:auto!important;right:auto!important;bottom:8px;left:8px;background-color:#fff;opacity:.7;font-size:12px;padding:2px;border-radius:2px}.ol-zoom{top:2.5em;right:.5em;left:unset}.cesium-viewer .activeLayersPanel .layer{display:flex;justify-content:space-between;align-items:center;width:90%}.cesium-viewer .activeLayersPanel .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cesium-viewer .activeLayersPanel .name.disabled{opacity:.5;pointer-events:none}.cesium-viewer .activeLayersPanel .icons{display:flex;justify-content:flex-end;align-items:center}.cesium-viewer .activeLayersPanel .icon{width:17px;height:17px;margin-left:8px;cursor:pointer}.cesium-viewer .activeLayersPanel .icon.disabled{opacity:0;pointer-events:none}.disappear{display:contents}.cesium-viewer .wfsContainer .title{text-align:center;font-weight:700;margin-bottom:12px;width:260px}.cesium-viewer .wfsContainer .featureType{font-size:12px;margin-bottom:12px;direction:ltr}body[dir=rtl] .cesium-viewer .wfsContainer .featureType{direction:rtl}.cesium-viewer .wfsContainer .name{color:#aef;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:260px}.cesium-viewer .wfsContainer .info{display:flex}.cesium-viewer .wfsContainer .spacer{margin:0 20px}.cesium-viewer .wfsContainer .blinking{animation:blink 1s infinite}@keyframes blink{0%,to{opacity:1}50%{opacity:.5}}.cesium-viewer .geocoderContainer{display:flex;flex-direction:row-reverse;color:var(--mdc-theme-cesium-color)}.cesium-viewer .geocoderContainer .mdc-text-field__input{width:100%;border-radius:4px;padding:4px}.cesium-viewer .geocoderContainer .listsContainer{max-height:348px;overflow-y:auto;overflow-x:hidden;width:100%}.cesium-viewer .geocoderContainer .listContainer{border:1px solid var(--mdc-theme-cesium-color);min-height:56px;width:308px;max-height:56px;overflow-y:auto;overflow-x:hidden;padding-top:2px}.cesium-viewer .geocoderContainer .listContainer .queryItemResult{display:flex;justify-content:space-between;width:100%}.cesium-viewer .geocoderContainer .listContainer .queryNoResults{justify-content:normal;color:unset}.cesium-viewer .geocoderContainer .listContainer .queryError{color:var(--mdc-theme-cesium-error)}.cesium-viewer .geocoderContainer .listContainer .queryWarning{color:var(--mdc-theme-cesium-warning)}.cesium-viewer .geocoderContainer .listContainer .generalListItem{font-size:var(--mdc-theme-cesium-font-size);text-wrap:wrap!important;padding:unset;padding-right:4px;padding-left:4px}body[dir=ltr] .cesium-viewer .geocoderContainer .geocoderForm{position:relative;right:8%}body[dir=rtl] .cesium-viewer .geocoderContainer .geocoderForm{position:relative;right:0%}.cesium-viewer .geocoderContainer .checkboxesContainer{display:flex;justify-content:space-between;padding-bottom:8px}.cesium-viewer .geocoderContainer .checkboxElement{font-size:var(--mdc-theme-cesium-font-size);font-weight:700;flex:1}.cesium-viewer .geocoderContainer .bold{font-weight:700}.cesium-viewer .geocoderContainer .cesium-geocoder-searchButton{position:relative!important}.cesium-viewer .geocoderContainer .cesium-geocoder-input{width:100%;background:transparent;border-color:var(--mdc-theme-cesium-color)}.viewer .mapLegendSidebarContainer{width:340px;height:100%;position:relative;overflow-y:auto;overflow-x:hidden;font-size:16px}.viewer .mapLegendSidebarContainer.mdc-drawer--animate{transform:translate(0)!important;transition:none!important}.viewer .mapLegendSidebarContainer.mdc-drawer--dismissible{position:relative}.viewer div.MuiPaper-root{transition:none!important}.viewer .mapLegendCloseBtn{position:absolute;top:0;right:0;cursor:pointer;width:50px;height:50px;padding:20px;font-size:24px}body[dir=rtl] .viewer .mapLegendCloseBtn{right:unset;left:0}.viewer .mapLegendIcon{width:2rem;height:2rem;transform:translate(8%,8%)}.viewer .sidebarHeaderContainer{text-align:center;margin-top:40px}.viewer .sidebarTitle{font-size:1.5rem;font-weight:700}.viewer .mapLegend{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 14px}.viewer .layerNameContainer{width:90%;display:flex;justify-content:center;align-items:center}.viewer .layerName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.viewer .legendImg{width:90%;height:150px;border:1px solid black;border-radius:5px;object-fit:cover;cursor:pointer}.viewer .legendActionsContainer{display:flex;flex-direction:row;align-self:center}.viewer .legendAction:not(:last-child):after{content:"|";margin:0 4px}.viewer .mapLegendsList{display:flex;flex-direction:column;padding:20px 0;width:100%;height:90%}.viewer .legendAction{text-decoration:underline;cursor:pointer;font-size:1.1rem;transition:all .1s ease-in-out;width:max-content}.viewer .legendAction:hover{filter:brightness(1.2)}.viewer .noLegendsContainer{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.viewer .noLegendsMsg{text-align:center}.cesium-viewer .compass{top:20px;right:0px}body[dir=rtl] .cesium-viewer .compass{right:unset;left:0px}.cesium-viewer .coordinatesTracker{background-color:var(--mdc-theme-surface);padding-top:7px;border-radius:2px;font-size:12px;text-align:center;white-space:nowrap;min-width:200px}.cesium-viewer .scaleTracker{background-color:var(--mdc-theme-surface);padding-top:4px;border-radius:2px;font-size:12px;width:110px}.cesium-viewer .scaleTrackerLabel{text-align:center}.cesium-viewer .scaleTrackerBar{background:var(--mdc-theme-on-surface);margin:0 auto;display:block;transition:all .5s ease-in-out}.cesium-viewer .zoomButtons{display:flex;flex-direction:column;gap:2px;position:absolute;bottom:48px;right:30px}body[dir=rtl] .cesium-viewer .zoomButtons{right:unset;left:30px}.cesium-viewer .zoomButton{width:32px;height:32px;background:#303336;border:1px solid #444;border-radius:4px;box-sizing:border-box;display:flex;justify-content:center;padding:4px;cursor:pointer}.cesium-viewer .zoomButton:hover{background:#48b;border-color:#aef}.cesium-viewer .zoomLevel{background-color:var(--mdc-theme-surface);border-radius:2px;padding:2px;height:24px}.cesium-viewer .zoomLevelValue{margin:2px;font-size:14px;line-height:12px;text-align:center}.cesium-viewer .zoomLevelLabel{font-size:8px;line-height:8px;display:table;margin:auto}.cesium-viewer .cesium-widget-credits{display:none!important}.cesium-viewer .cesium-viewer-toolbar{display:flex;flex-direction:column;align-items:flex-end;top:116px;right:27px}body[dir=rtl] .cesium-viewer .cesium-viewer-toolbar{left:27px;right:unset}.cesium-viewer .widgetsContainer{top:24px;left:10px}body[dir=rtl] .cesium-viewer .widgetsContainer{left:unset;right:10px}.cesium-viewer .cesium-mc-tool{display:block;position:absolute;box-sizing:content-box;top:auto;right:0;width:320px;max-height:500px;margin-top:5px;background-color:#262626bf;border:1px solid #444;padding:6px;overflow:auto;border-radius:10px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;transform:translateY(-20%);visibility:hidden;opacity:0;transition:visibility 0s .2s,opacity .2s ease-in,transform .2s ease-in}.cesium-viewer .cesium-mc-tool-visible{transform:translate(0);visibility:visible;opacity:1;transition:opacity .2s ease-out,transform .2s ease-out}.cesium-viewer .cesium-mc-title{display:block;font-family:sans-serif;font-size:16pt;text-align:left;margin-bottom:4px}body[dir=rtl] .cesium-viewer .cesium-mc-title{text-align:right}.cesium-viewer .cesium-mc-tool{color:var(--mdc-theme-cesium-color);right:40px;margin-top:0}body[dir=rtl] .cesium-viewer .cesium-mc-tool{right:unset;left:40px}.cesium-viewer .cesium-mc-choices{display:block;border:1px solid #888;border-radius:5px;padding:5px 0;margin-bottom:5px}.cesium-viewer .cesium-baseLayerPicker-dropDown{right:40px;margin-top:0}body[dir=rtl] .cesium-viewer .cesium-baseLayerPicker-dropDown{right:unset;left:40px}body[dir=rtl] .cesium-viewer .cesium-baseLayerPicker-sectionTitle{text-align:right}.cesium-viewer span.cesium-sceneModePicker-wrapper{width:100%;display:flex;flex-direction:row-reverse;align-items:center;column-gap:4px;margin:3px 3px 1px}.cesium-viewer .cesium-viewer-fullscreenContainer{width:32px;height:32px;bottom:9px;right:30px}body[dir=rtl] .cesium-viewer .cesium-viewer-fullscreenContainer{right:unset;left:30px}.cesium-viewer .cesium-button.cesium-fullscreenButton{border-radius:14%;box-sizing:border-box}.cesium-viewer .bottomToolsContainer{color:var(--mdc-theme-on-surface);opacity:.7;display:flex;gap:8px;position:absolute;bottom:10px;right:70px}body[dir=rtl] .cesium-viewer .bottomToolsContainer{left:70px;right:unset}.cesium-viewer input[type=checkbox]{accent-color:var(--mdc-theme-cesium-checkbox-color)}.cesium-viewer input::placeholder{color:unset;opacity:.8}.cesium-viewer input{font-size:var(--mdc-theme-cesium-font-size);color:unset;font-weight:700;caret-color:unset}.cesium-viewer ::-webkit-scrollbar{width:6px;height:6px}.cesium-viewer ::-webkit-scrollbar-track{box-shadow:inset 0 0 6px #0000004d;border-radius:6px}.cesium-viewer ::-webkit-scrollbar-thumb{background-color:#aaa;border-radius:6px}.cesium-viewer .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-theme-cesium-checkbox-color);background-color:var(--mdc-theme-cesium-checkbox-color)}.cesium-viewer .mdc-checkbox--upgraded{--mdc-checkbox-checked-color: var(--mdc-theme-cesium-checkbox-color)}.cesium-viewer .mdc-checkbox{width:var(--mdc-theme-cesium-checkbox-width);height:var(--mdc-theme-cesium-checkbox-height)}.cesium-viewer .mdc-checkbox__background{width:12px;height:12px}.cesium-viewer .mdc-form-field{color:unset;margin:-2% -2% -4%}.cesium-viewer .mdc-form-field>label{color:unset}.cesium-viewer .mdc-ripple-upgraded--unbounded{--mdc-ripple-fg-size: 0px !important}.cesium-viewer .mdc-list{font-size:var(--mdc-theme-cesium-font-size);font-family:sans-serif;padding:1px;color:unset}.cesium-viewer .mdc-list-item{padding:unset;padding-right:4px;padding-left:4px;height:24px;font-weight:700}.cesium-viewer .mdc-text-field--filled{height:32px}.cesium-viewer .mdc-text-field__input{box-sizing:border-box;border:unset}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:transparent!important}.cesium-viewer .mdc-text-field{padding:unset;padding-right:4px;padding-left:4px}.cesium-viewer .mdc-line-ripple:before,.cesium-viewer .mdc-line-ripple:after{border-bottom:none!important}.cesium-viewer .disabled{opacity:.6;cursor:initial}.cesium-viewer .search-results{padding:4px}.viewer{display:flex;flex-direction:row}.viewer .mdc-linear-progress__bar-inner{border-top-width:10px}.twipsy{display:block;position:absolute;visibility:visible;max-width:200px;min-width:100px;padding:5px;font-size:11px;z-index:100;opacity:.8;-khtml-opacity:.8;-moz-opacity:.8;filter:alpha(opacity=80)}.twipsy.left .twipsy-arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000}.twipsy.right .twipsy-arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid #000000}.twipsy-inner{padding:3px 8px;background-color:#000;color:#fff;text-align:center;max-width:200px;text-decoration:none;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.twipsy-arrow{position:absolute;width:0;height:0}.toolbar{margin:0;padding:0;background:white}.toolbar>.button{margin:5px;padding:5px;border:1px solid #eee;cursor:pointer}.toolbar>.button:hover{background:#eee}.infoWindow{position:absolute;min-width:100px;max-width:300px}.infoWindow #frame{padding:10px;border:1px solid black;background:white}.infoWindow #close{float:right;margin:5px 2px;font-size:small;color:gray;cursor:pointer}.infoWindow #arrow{position:absolute;bottom:-8px;left:50%;margin-left:-10px;border-right:10px solid transparent;border-left:10px solid transparent;border-top:10px solid white}.react-autocomplete-input{background-clip:padding-box;background-color:#fff;bottom:auto;box-shadow:0 6px 12px #0000002d;display:block;font-size:14px;list-style:none;padding:1px;position:absolute;z-index:200;margin-block-start:unset;margin-block-end:unset}.react-autocomplete-input>li{cursor:pointer;padding:10px;min-width:100px}.react-autocomplete-input>li.active{background-color:#337ab7;color:#fff}body[dir=rtl] .chonky-fileListWrapper [class^=listContainer-]{direction:rtl!important}body[dir=rtl] .chonky-fileEntryClickableWrapper [class^=listFileEntryProperty-],body[dir=rtl] .chonky-navbarContainer{direction:ltr!important}body[dir=rtl] .chonky-chonkyRoot{text-align:right}body[dir=rtl] .chonky-infoText{margin-left:unset;margin-right:12px}body[dir=rtl] .chonky-contextMenuList .MuiListItemText-root,body[dir=rtl] .chonky-dropdownList .MuiListItemText-root{text-align:right}body[dir=rtl] .chonky-icon{margin-right:unset;margin-left:8px}.chonky-chonkyRoot div[class^=folderBackSide]{box-shadow:unset}.chonky-chonkyRoot div[class^=folderBackSide]:after{border-color:var(--fp-theme-background, #fff) var(--fp-theme-background, #fff) transparent transparent}.chonky-chonkyRoot div[class^=listFileEntryIcon-]{color:#d5d5d5}.chonky-chonkyRoot div[class*=previewFile-d]{background-color:#d5d5d5}.chonky-chonkyRoot div[class^=selectionIndicator-]{background:var(--fp-theme-selection-background, #455570)}.chonky-chonkyRoot{background-color:var(--fp-theme-background, #fff)!important}.chonky-contextMenuList{background-color:var(--fp-theme-surface, #fff)!important}button[class*=chonky-activeButton],.chonky-selectionSizeText{color:var(--fp-theme-primary, #24aee9)!important}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
|
+
var mi = Object.defineProperty;
|
|
3
|
+
var pi = (e, t, n) => t in e ? mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var ue = (e, t, n) => (pi(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as a, jsxs as z, Fragment as ge } from "react/jsx-runtime";
|
|
6
6
|
import * as Rn from "react";
|
|
7
|
-
import ke, { useState as
|
|
8
|
-
import { isValid as $e, isBefore as
|
|
7
|
+
import ke, { useState as B, useEffect as O, useMemo as ae, forwardRef as gi, createContext as ze, useContext as Ve, useRef as Te, useLayoutEffect as Dn, useCallback as Le } from "react";
|
|
8
|
+
import { isValid as $e, isBefore as fi, format as It, endOfDay as yi, isSameDay as on } from "date-fns";
|
|
9
9
|
import { he as On, enUS as kn } from "date-fns/locale";
|
|
10
|
-
import
|
|
11
|
-
import Bn from "@
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { useTheme as lt, ThemeProvider as
|
|
15
|
-
import { default as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
10
|
+
import Nn from "@date-io/date-fns";
|
|
11
|
+
import { MuiPickersUtilsProvider as Bn, KeyboardDateTimePicker as Fn, KeyboardDatePicker as Gn } from "@material-ui/pickers";
|
|
12
|
+
import { Box as vi, ThemeProvider as Vt, Popover as wi, Paper as Pt, TableRow as ot, TableCell as Ze, TableSortLabel as Ei, IconButton as Li, Collapse as Ci, TableContainer as bi, Table as Ti, TableBody as Si, Typography as _i, TablePagination as Mi, Input as Ii } from "@material-ui/core";
|
|
13
|
+
import { createTheme as Pi, makeStyles as ct, createStyles as Ht } from "@material-ui/core/styles";
|
|
14
|
+
import { useTheme as lt, ThemeProvider as Vn, Button as Je, TextField as Qe, Tooltip as We, Menu as xi, MenuItem as ft, Typography as xt, Checkbox as At, List as Ai, ListItem as Ri, ListItemSecondaryText as yt, Drawer as Di, DrawerHeader as Oi, DrawerTitle as ki, DrawerContent as Ni, Icon as Hn, LinearProgress as Bi } from "@map-colonies/react-core";
|
|
15
|
+
import { default as Yl } from "@material-ui/core/useMediaQuery";
|
|
16
|
+
import Fi, { registerLocale as Gi } from "react-datepicker";
|
|
17
|
+
import Vi from "date-fns/locale/he";
|
|
18
18
|
import je from "moment";
|
|
19
|
-
import
|
|
20
|
-
import { Map as
|
|
19
|
+
import Hi from "@turf/rewind";
|
|
20
|
+
import { Map as Wi, View as zi } from "ol";
|
|
21
21
|
import "ol/ol.css";
|
|
22
22
|
import { format as sn } from "ol/coordinate";
|
|
23
|
-
import { defaults as
|
|
23
|
+
import { defaults as Ui, FullScreen as an } from "ol/control";
|
|
24
24
|
import vt from "ol/control/MousePosition";
|
|
25
|
-
import { transform as
|
|
26
|
-
import { Tile as
|
|
27
|
-
import { Vector as
|
|
28
|
-
import { GeoJSON as
|
|
29
|
-
import { Draw as
|
|
30
|
-
import { createBox as
|
|
31
|
-
import
|
|
32
|
-
import { Fill as
|
|
33
|
-
import
|
|
34
|
-
import { getWidth as
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
25
|
+
import { transform as $i, get as ji } from "ol/proj";
|
|
26
|
+
import { Tile as Yi, Vector as Zi } from "ol/layer";
|
|
27
|
+
import { Vector as Xi, OSM as Ki, WMTS as qi } from "ol/source";
|
|
28
|
+
import { GeoJSON as Wn, MVT as Ji } from "ol/format";
|
|
29
|
+
import { Draw as Qi } from "ol/interaction";
|
|
30
|
+
import { createBox as er } from "ol/interaction/Draw";
|
|
31
|
+
import tr from "ol/layer/VectorTile";
|
|
32
|
+
import { Fill as nr, Stroke as ir, Style as rr, Circle as or } from "ol/style";
|
|
33
|
+
import sr from "ol/tilegrid/WMTS";
|
|
34
|
+
import { getWidth as ar, getTopLeft as cr } from "ol/extent";
|
|
35
|
+
import lr from "ol/source/TileWMS";
|
|
36
|
+
import dr from "ol/source/XYZ";
|
|
37
|
+
import ur from "ol/source/VectorTile";
|
|
38
38
|
import cn from "ol-ext/legend/Legend";
|
|
39
|
-
import
|
|
39
|
+
import hr from "ol-ext/control/Legend";
|
|
40
40
|
import "ol-ext/dist/ol-ext.css";
|
|
41
|
-
import
|
|
42
|
-
import { createSvgIcon as
|
|
43
|
-
import
|
|
44
|
-
import
|
|
41
|
+
import mr from "@material-ui/core/TableHead";
|
|
42
|
+
import { createSvgIcon as zn } from "@material-ui/core/utils";
|
|
43
|
+
import pr from "@material-ui/core/CssBaseline";
|
|
44
|
+
import gr from "@material-ui/core/ScopedCssBaseline";
|
|
45
45
|
import { createPortal as wt } from "react-dom";
|
|
46
|
-
import { Viewer as
|
|
46
|
+
import { Viewer as fr, Cesium3DTileset as yr, GeoJsonDataSource as vr, ImageryLayer as wr, Entity as Er, EntityDescription as Un, PolygonGraphics as Lr, RectangleGraphics as Cr, CustomDataSource as br, PolylineGraphics as Tr } from "resium";
|
|
47
47
|
import * as T from "cesium";
|
|
48
|
-
import { Rectangle as Be, EllipsoidTerrainProvider as
|
|
49
|
-
import { Entity as
|
|
50
|
-
import { get as
|
|
48
|
+
import { Rectangle as Be, EllipsoidTerrainProvider as $n, PolylineDashMaterialProperty as Sr, ConstantProperty as _r, ConstantPositionProperty as Mr, Cartesian2 as Ie, Cartesian3 as Se, Cartographic as Oe, BoundingSphere as jn, Ellipsoid as Wt, GeographicTilingScheme as Ir, Resource as Pr, CesiumTerrainProvider as xr, PolylineGraphics as Yn, JulianDate as Ye, PositionProperty as Ar, BillboardGraphics as Rt, Color as Ge, PolygonHierarchy as Zn, Scene as Rr, VerticalOrigin as st, HorizontalOrigin as Dr, SceneMode as Fe, LabelStyle as Xn, HeightReference as Dt, Math as ne, defined as Ot, PerspectiveFrustum as Or, PolygonGraphics as kr, GeoJsonDataSource as zt, SceneTransforms as Kn, UrlTemplateImageryProvider as Ut, WebMapServiceImageryProvider as $t, WebMapTileServiceImageryProvider as jt, Event as ln, SingleTileImageryProvider as Nr, ScreenSpaceEventType as kt, WebMercatorProjection as Br, EventHelper as Fr, EllipsoidGeodesic as Gr, Viewer as Vr, Matrix4 as Hr, OpenStreetMapImageryProvider as Wr, ScreenSpaceEventHandler as zr, viewerCesiumInspectorMixin as Ur, sampleTerrainMostDetailed as $r } from "cesium";
|
|
49
|
+
import { Entity as Xl, PolygonGraphics as Kl, GeoJsonDataSource as ql, Math as Jl, SceneTransforms as Ql, sampleTerrainMostDetailed as ed } from "cesium";
|
|
50
|
+
import { get as ee, debounce as jr, isEmpty as Nt, isNumber as et, isArray as dn, cloneDeep as Yr, find as un } from "lodash";
|
|
51
51
|
import dt from "@turf/bbox";
|
|
52
|
-
import { getType as
|
|
52
|
+
import { getType as Zr } from "@turf/invariant";
|
|
53
53
|
import hn from "@turf/area";
|
|
54
54
|
import ut from "@turf/bbox-polygon";
|
|
55
|
-
import
|
|
56
|
-
import * as
|
|
57
|
-
import { point as
|
|
55
|
+
import Xr from "@turf/centroid";
|
|
56
|
+
import * as qn from "@turf/helpers";
|
|
57
|
+
import { point as Kr } from "@turf/helpers";
|
|
58
58
|
import mn from "@turf/intersect";
|
|
59
59
|
import qr from "@turf/point-to-polygon-distance";
|
|
60
60
|
import "@map-colonies/react-core/dist/list/styles";
|
|
61
61
|
import "@map-colonies/react-core/dist/textfield/styles";
|
|
62
|
-
import
|
|
63
|
-
import
|
|
62
|
+
import Jr from "@turf/boolean-point-in-polygon";
|
|
63
|
+
import Qr from "@cmcleese/cesium-navigation";
|
|
64
64
|
import "@cmcleese/cesium-navigation/dist/index.css";
|
|
65
65
|
import "@map-colonies/react-core/dist/linear-progress/styles";
|
|
66
66
|
import "@map-colonies/react-core/dist/checkbox/styles";
|
|
67
67
|
import Et from "p-map";
|
|
68
68
|
import { v4 as pn } from "uuid";
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import { ChonkyActions as ie, FileHelper as
|
|
73
|
-
import { ChonkyIconFA as
|
|
74
|
-
import
|
|
75
|
-
import
|
|
76
|
-
import { buildStyles as
|
|
77
|
-
import { buildStyles as
|
|
69
|
+
import eo from "@turf/boolean-valid";
|
|
70
|
+
import to from "textarea-caret";
|
|
71
|
+
import no, { setCaretPosition as io } from "get-input-selection";
|
|
72
|
+
import { ChonkyActions as ie, FileHelper as Jn, setChonkyDefaults as ro, FullFileBrowser as oo } from "chonky";
|
|
73
|
+
import { ChonkyIconFA as so } from "chonky-icon-fontawesome";
|
|
74
|
+
import ao from "filesize";
|
|
75
|
+
import co, { components as lo } from "react-select";
|
|
76
|
+
import { buildStyles as uo, CircularProgressbarWithChildren as ho, CircularProgressbar as mo } from "react-circular-progressbar";
|
|
77
|
+
import { buildStyles as nd } from "react-circular-progressbar";
|
|
78
78
|
import "react-circular-progressbar/dist/styles.css";
|
|
79
|
-
import { Animate as
|
|
80
|
-
|
|
79
|
+
import { Animate as po } from "react-move";
|
|
80
|
+
const q = (e) => {
|
|
81
|
+
const { children: t, ...n } = e;
|
|
82
|
+
return /* @__PURE__ */ a(vi, { ...n, children: t });
|
|
83
|
+
};
|
|
84
|
+
var be = /* @__PURE__ */ ((e) => (e.BOX = "BOX", e.POLYGON = "POLYGON", e.UNKNOWN = "UNKNOWN", e))(be || {}), Me = /* @__PURE__ */ ((e) => (e.HE = "he", e.EN = "en", e.RU = "ru", e))(Me || {}), Bt = /* @__PURE__ */ ((e) => (e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e))(Bt || {});
|
|
81
85
|
const me = {
|
|
82
86
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
83
87
|
DATE_PICKER: {
|
|
@@ -103,15 +107,13 @@ const me = {
|
|
|
103
107
|
},
|
|
104
108
|
renderAsButton: !0,
|
|
105
109
|
offset: 0,
|
|
106
|
-
disableFuture: !0
|
|
110
|
+
disableFuture: !0,
|
|
111
|
+
showTime: !0
|
|
107
112
|
}
|
|
108
|
-
},
|
|
109
|
-
const { children: t, ...n } = e;
|
|
110
|
-
return /* @__PURE__ */ s(vi, { ...n, children: t });
|
|
111
|
-
}, Zt = (e) => {
|
|
113
|
+
}, Yt = (e) => {
|
|
112
114
|
const t = e.type === "dark";
|
|
113
|
-
return ke.useMemo(() =>
|
|
114
|
-
},
|
|
115
|
+
return ke.useMemo(() => go(e, t), [t, e]);
|
|
116
|
+
}, go = (e, t = !1) => Pi({
|
|
115
117
|
palette: {
|
|
116
118
|
type: t ? "dark" : "light",
|
|
117
119
|
primary: {
|
|
@@ -132,7 +134,7 @@ const me = {
|
|
|
132
134
|
secondary: t ? e.textSecondaryOnDark : e.textSecondaryOnLight
|
|
133
135
|
}
|
|
134
136
|
}
|
|
135
|
-
}),
|
|
137
|
+
}), fo = (e) => ke.useMemo(() => ({
|
|
136
138
|
...e,
|
|
137
139
|
"cesium-color": "#EDFFFF",
|
|
138
140
|
"cesium-error": e["--mdc-theme-gc-error-medium"] ?? "#FF3636",
|
|
@@ -142,51 +144,51 @@ const me = {
|
|
|
142
144
|
"cesium-checkbox-height": "12px",
|
|
143
145
|
"cesium-font-size": "10pt"
|
|
144
146
|
}), [e]);
|
|
145
|
-
const
|
|
147
|
+
const yo = 2, vo = 0.5, wo = ct(
|
|
146
148
|
(e) => Ht({
|
|
147
149
|
container: {
|
|
148
|
-
padding: e.spacing(
|
|
150
|
+
padding: e.spacing(yo),
|
|
149
151
|
alignItems: "center"
|
|
150
152
|
},
|
|
151
153
|
setButton: {
|
|
152
154
|
marginTop: e.spacing(1)
|
|
153
155
|
},
|
|
154
156
|
margin: {
|
|
155
|
-
marginLeft: e.spacing(
|
|
157
|
+
marginLeft: e.spacing(vo)
|
|
156
158
|
}
|
|
157
159
|
})
|
|
158
|
-
),
|
|
159
|
-
var
|
|
160
|
-
const t =
|
|
161
|
-
|
|
160
|
+
), Eo = (e) => {
|
|
161
|
+
var Z, V, Y, J;
|
|
162
|
+
const t = wo(), n = lt(), i = Yt(n), [o, r] = B(null), [l, d] = B(null), [h, f] = B(me.DATE_RANGE_PICKER.dateFormat), C = e.controlsLayout ?? me.DATE_RANGE_PICKER.controlsLayout, L = e.disableFuture ?? me.DATE_RANGE_PICKER.disableFuture, u = ((Z = e.local) == null ? void 0 : Z.startPlaceHolderText) ?? me.DATE_RANGE_PICKER.local.startPlaceHolderText, g = ((V = e.local) == null ? void 0 : V.endPlaceHolderText) ?? me.DATE_RANGE_PICKER.local.endPlaceHolderText, _ = ((Y = e.local) == null ? void 0 : Y.setText) ?? me.DATE_RANGE_PICKER.local.setText, v = ((J = e.local) == null ? void 0 : J.calendarLocale) ?? me.DATE_RANGE_PICKER.local.calendarLocale, k = e.showTime ?? me.DATE_RANGE_PICKER.showTime, G = v === Me.HE ? On : kn;
|
|
163
|
+
O(() => {
|
|
162
164
|
r(e.from ?? null);
|
|
163
|
-
}, [e.from]),
|
|
165
|
+
}, [e.from]), O(() => {
|
|
164
166
|
d(e.to ?? null);
|
|
165
|
-
}, [e.to]),
|
|
167
|
+
}, [e.to]), O(() => {
|
|
166
168
|
f(e.dateFormat ?? me.DATE_RANGE_PICKER.dateFormat);
|
|
167
169
|
}, [e.dateFormat]);
|
|
168
|
-
const
|
|
169
|
-
$e(o) && !l || $e(l) && !o || o && l && $e(o) && $e(l) &&
|
|
170
|
-
),
|
|
170
|
+
const $ = Boolean(
|
|
171
|
+
$e(o) && !l || $e(l) && !o || o && l && $e(o) && $e(l) && fi(o, l)
|
|
172
|
+
), j = () => {
|
|
171
173
|
e.onChange({
|
|
172
174
|
from: o && $e(o) ? o : void 0,
|
|
173
175
|
to: l && $e(l) ? l : void 0
|
|
174
176
|
});
|
|
175
|
-
};
|
|
176
|
-
return /* @__PURE__ */
|
|
177
|
-
|
|
177
|
+
}, N = k ? Fn : Gn;
|
|
178
|
+
return /* @__PURE__ */ a(Vt, { theme: i, children: /* @__PURE__ */ a(
|
|
179
|
+
q,
|
|
178
180
|
{
|
|
179
181
|
className: `${t.container} drpContainer`,
|
|
180
182
|
display: "flex",
|
|
181
183
|
flexDirection: C,
|
|
182
184
|
width: C === "column" ? e.contentWidth : "unset",
|
|
183
|
-
children: /* @__PURE__ */ z(
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
-
|
|
185
|
+
children: /* @__PURE__ */ z(Bn, { utils: Nn, locale: G, children: [
|
|
186
|
+
/* @__PURE__ */ a(
|
|
187
|
+
N,
|
|
186
188
|
{
|
|
187
189
|
variant: "inline",
|
|
188
190
|
placeholder: u,
|
|
189
|
-
onChange: (
|
|
191
|
+
onChange: (s) => r(s),
|
|
190
192
|
value: o,
|
|
191
193
|
disableFuture: L,
|
|
192
194
|
format: h,
|
|
@@ -194,13 +196,13 @@ const fo = 2, yo = 0.5, vo = ct(
|
|
|
194
196
|
minDate: e.minDate
|
|
195
197
|
}
|
|
196
198
|
),
|
|
197
|
-
/* @__PURE__ */
|
|
198
|
-
|
|
199
|
+
/* @__PURE__ */ a(
|
|
200
|
+
N,
|
|
199
201
|
{
|
|
200
202
|
variant: "inline",
|
|
201
203
|
placeholder: g,
|
|
202
204
|
className: t.margin,
|
|
203
|
-
onChange: (
|
|
205
|
+
onChange: (s) => d(s),
|
|
204
206
|
value: l,
|
|
205
207
|
disableFuture: L,
|
|
206
208
|
format: h,
|
|
@@ -208,42 +210,42 @@ const fo = 2, yo = 0.5, vo = ct(
|
|
|
208
210
|
minDate: e.minDate
|
|
209
211
|
}
|
|
210
212
|
),
|
|
211
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ a(Vn, { options: n, children: /* @__PURE__ */ a(
|
|
212
214
|
Je,
|
|
213
215
|
{
|
|
214
216
|
className: `${t.setButton} ${t.margin}`,
|
|
215
217
|
raised: !0,
|
|
216
|
-
onClick:
|
|
217
|
-
disabled:
|
|
218
|
+
onClick: j,
|
|
219
|
+
disabled: !$,
|
|
218
220
|
children: _
|
|
219
221
|
}
|
|
220
222
|
) })
|
|
221
223
|
] })
|
|
222
224
|
}
|
|
223
225
|
) });
|
|
224
|
-
},
|
|
226
|
+
}, Lo = (e) => {
|
|
225
227
|
const { children: t, ...n } = e;
|
|
226
|
-
return /* @__PURE__ */
|
|
228
|
+
return /* @__PURE__ */ a(wi, { ...n, children: t });
|
|
227
229
|
};
|
|
228
|
-
const
|
|
230
|
+
const Fc = (e) => {
|
|
229
231
|
var N, Z;
|
|
230
|
-
const [t, n] =
|
|
232
|
+
const [t, n] = B(null), [i, o] = B(null), [r, l] = B(me.DATE_RANGE_PICKER.dateFormat), [d, h] = ke.useState(null), f = (V) => {
|
|
231
233
|
h(V.currentTarget);
|
|
232
234
|
}, C = (V) => {
|
|
233
235
|
V.currentTarget.tagName === "I" ? h(V.currentTarget.previousElementSibling) : h(V.currentTarget);
|
|
234
236
|
}, L = () => {
|
|
235
237
|
h(null);
|
|
236
238
|
}, u = Boolean(d), g = e.controlsLayout ?? "column";
|
|
237
|
-
|
|
239
|
+
O(() => {
|
|
238
240
|
n(e.from ?? null);
|
|
239
|
-
}, [e.from]),
|
|
241
|
+
}, [e.from]), O(() => {
|
|
240
242
|
o(e.to ?? null);
|
|
241
|
-
}, [e.to]),
|
|
243
|
+
}, [e.to]), O(() => {
|
|
242
244
|
l(e.dateFormat ?? me.DATE_RANGE_PICKER.dateFormat);
|
|
243
245
|
}, [e.dateFormat]);
|
|
244
246
|
const _ = ((N = e.local) == null ? void 0 : N.startPlaceHolderText) ?? me.DATE_RANGE_PICKER.local.startPlaceHolderText, v = ((Z = e.local) == null ? void 0 : Z.endPlaceHolderText) ?? me.DATE_RANGE_PICKER.local.endPlaceHolderText, k = e.renderAsButton === void 0 ? me.DATE_RANGE_PICKER.renderAsButton : e.renderAsButton, G = e.offset === void 0 ? me.DATE_RANGE_PICKER.offset : e.offset, $ = e.disableFuture === void 0 ? me.DATE_RANGE_PICKER.disableFuture : e.disableFuture, j = ae(() => `${t ? It(t, r) : _} - ${i ? It(i, r) : v}`, [t, i, r, _, v]);
|
|
245
247
|
return /* @__PURE__ */ z(ge, { children: [
|
|
246
|
-
k ? /* @__PURE__ */
|
|
248
|
+
k ? /* @__PURE__ */ a(Je, { style: { width: e.width }, raised: !0, onClick: f, className: "drpOpener", children: j }) : /* @__PURE__ */ a(
|
|
247
249
|
Qe,
|
|
248
250
|
{
|
|
249
251
|
className: "drpOpener",
|
|
@@ -258,8 +260,8 @@ const Oc = (e) => {
|
|
|
258
260
|
}
|
|
259
261
|
}
|
|
260
262
|
),
|
|
261
|
-
/* @__PURE__ */
|
|
262
|
-
|
|
263
|
+
/* @__PURE__ */ a(Lo, { open: u, anchorEl: d, onClose: L, anchorOrigin: { vertical: "bottom", horizontal: "left" }, keepMounted: !0, children: /* @__PURE__ */ a(
|
|
264
|
+
Eo,
|
|
263
265
|
{
|
|
264
266
|
controlsLayout: g,
|
|
265
267
|
contentWidth: ((d == null ? void 0 : d.clientWidth) ?? 0) - G,
|
|
@@ -276,7 +278,7 @@ const Oc = (e) => {
|
|
|
276
278
|
}
|
|
277
279
|
) })
|
|
278
280
|
] });
|
|
279
|
-
}, Lt = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e,
|
|
281
|
+
}, Lt = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e, Gc = ({
|
|
280
282
|
endDate: e,
|
|
281
283
|
startDate: t,
|
|
282
284
|
setEndDate: n = () => {
|
|
@@ -291,7 +293,7 @@ const Oc = (e) => {
|
|
|
291
293
|
startTimeLabel: f = "",
|
|
292
294
|
startTimeWrapperClassName: C = ""
|
|
293
295
|
}) => /* @__PURE__ */ z("div", { className: `timeRangeWrapper ${d}`, children: [
|
|
294
|
-
/* @__PURE__ */
|
|
296
|
+
/* @__PURE__ */ a("div", { className: `startTimeWrapper ${C}`, children: /* @__PURE__ */ a(
|
|
295
297
|
Qe,
|
|
296
298
|
{
|
|
297
299
|
label: f,
|
|
@@ -309,7 +311,7 @@ const Oc = (e) => {
|
|
|
309
311
|
}
|
|
310
312
|
}
|
|
311
313
|
) }),
|
|
312
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ a("div", { className: `endTimeWrapper ${l}`, children: /* @__PURE__ */ a(
|
|
313
315
|
Qe,
|
|
314
316
|
{
|
|
315
317
|
label: r,
|
|
@@ -327,8 +329,8 @@ const Oc = (e) => {
|
|
|
327
329
|
}
|
|
328
330
|
}
|
|
329
331
|
) })
|
|
330
|
-
] }),
|
|
331
|
-
({ value: e, onClick: t, onInputClick: n, ...i }, o) => /* @__PURE__ */
|
|
332
|
+
] }), Co = gi(
|
|
333
|
+
({ value: e, onClick: t, onInputClick: n, ...i }, o) => /* @__PURE__ */ a(
|
|
332
334
|
Qe,
|
|
333
335
|
{
|
|
334
336
|
...i,
|
|
@@ -341,23 +343,23 @@ const Oc = (e) => {
|
|
|
341
343
|
value: e
|
|
342
344
|
}
|
|
343
345
|
)
|
|
344
|
-
),
|
|
346
|
+
), bo = ({ setStartDate: e = () => {
|
|
345
347
|
}, setEndDate: t = () => {
|
|
346
348
|
}, shortcuts: n, dateRange: i, onShortcut: o }) => {
|
|
347
|
-
const [r, l] =
|
|
349
|
+
const [r, l] = B(), d = ae(
|
|
348
350
|
() => n.map((h) => h instanceof Function ? h() : h),
|
|
349
351
|
[n]
|
|
350
352
|
);
|
|
351
|
-
return
|
|
353
|
+
return O(() => {
|
|
352
354
|
for (const h of d) {
|
|
353
355
|
const f = i.startDate && i.endDate && on(h.startDate, i.startDate) && on(h.endDate, i.endDate);
|
|
354
356
|
r ? h.id === r && (f || l(void 0)) : f && l(h.id);
|
|
355
357
|
}
|
|
356
|
-
}, [i, r, d]), /* @__PURE__ */
|
|
358
|
+
}, [i, r, d]), /* @__PURE__ */ a("div", { className: "shortcutsContainer", children: d.map((h, f) => {
|
|
357
359
|
const C = () => {
|
|
358
360
|
e(h.startDate), t(h.endDate);
|
|
359
361
|
};
|
|
360
|
-
return /* @__PURE__ */
|
|
362
|
+
return /* @__PURE__ */ a(
|
|
361
363
|
Je,
|
|
362
364
|
{
|
|
363
365
|
type: "button",
|
|
@@ -371,7 +373,7 @@ const Oc = (e) => {
|
|
|
371
373
|
h.id + f
|
|
372
374
|
);
|
|
373
375
|
}) });
|
|
374
|
-
},
|
|
376
|
+
}, Vc = ke.forwardRef((e, t) => {
|
|
375
377
|
const {
|
|
376
378
|
// Time range input props
|
|
377
379
|
// endTimeInputClassName,
|
|
@@ -392,10 +394,10 @@ const Oc = (e) => {
|
|
|
392
394
|
// withTimeRange,
|
|
393
395
|
withShortcuts: f,
|
|
394
396
|
locale: C = "en"
|
|
395
|
-
} = e, [L, u] =
|
|
396
|
-
|
|
397
|
-
C === "he" &&
|
|
398
|
-
}, [C]),
|
|
397
|
+
} = e, [L, u] = B(null), [g, _] = B(null), [v, k] = B(!1), G = r ? { startDate: L, endDate: g } : L;
|
|
398
|
+
O(() => {
|
|
399
|
+
C === "he" && Gi("he", Vi);
|
|
400
|
+
}, [C]), O(() => {
|
|
399
401
|
var N, Z;
|
|
400
402
|
((N = e.startDate) == null ? void 0 : N.toString()) !== (L == null ? void 0 : L.toString()) && u(e.startDate), ((Z = e.endDate) == null ? void 0 : Z.toString()) !== (g == null ? void 0 : g.toString()) && _(e.endDate);
|
|
401
403
|
}, [e.startDate, e.endDate, L, g]);
|
|
@@ -407,8 +409,8 @@ const Oc = (e) => {
|
|
|
407
409
|
showYearDropdown: !0,
|
|
408
410
|
dropdownMode: "select"
|
|
409
411
|
} : {};
|
|
410
|
-
return /* @__PURE__ */
|
|
411
|
-
|
|
412
|
+
return /* @__PURE__ */ a("div", { className: $, style: { direction: C === "he" ? "rtl" : "ltr" }, children: /* @__PURE__ */ a(
|
|
413
|
+
Fi,
|
|
412
414
|
{
|
|
413
415
|
...e,
|
|
414
416
|
ref: t,
|
|
@@ -425,16 +427,16 @@ const Oc = (e) => {
|
|
|
425
427
|
onChange: (N, Z) => {
|
|
426
428
|
if (Array.isArray(N)) {
|
|
427
429
|
const [V, Y] = N;
|
|
428
|
-
u(V), _(Y), l == null || l({ startDate: V, endDate: Y &&
|
|
430
|
+
u(V), _(Y), l == null || l({ startDate: V, endDate: Y && yi(Y) }, Z);
|
|
429
431
|
} else
|
|
430
432
|
u(N), l == null || l(N, Z);
|
|
431
433
|
},
|
|
432
|
-
customInput: /* @__PURE__ */
|
|
434
|
+
customInput: /* @__PURE__ */ a(Co, { name: d, onInputClick: () => {
|
|
433
435
|
k(!0);
|
|
434
436
|
} }),
|
|
435
437
|
showTimeInput: !!(f && r),
|
|
436
438
|
timeInputLabel: "",
|
|
437
|
-
customTimeInput: f && Lt(G) && /* @__PURE__ */
|
|
439
|
+
customTimeInput: f && Lt(G) && /* @__PURE__ */ a(bo, { onShortcut: (N) => {
|
|
438
440
|
l == null || l(N), k(!1);
|
|
439
441
|
}, shortcuts: f, setEndDate: _, setStartDate: u, dateRange: G }),
|
|
440
442
|
showMonthYearDropdown: void 0,
|
|
@@ -442,8 +444,8 @@ const Oc = (e) => {
|
|
|
442
444
|
}
|
|
443
445
|
) });
|
|
444
446
|
});
|
|
445
|
-
const
|
|
446
|
-
const t = lt(), n =
|
|
447
|
+
const Hc = (e) => {
|
|
448
|
+
const t = lt(), n = Yt(t), {
|
|
447
449
|
format: i = me.DATE_PICKER.dateFormat,
|
|
448
450
|
variant: o = me.DATE_PICKER.variant,
|
|
449
451
|
disableFuture: r = me.DATE_PICKER.disableFuture,
|
|
@@ -458,9 +460,9 @@ const Bc = (e) => {
|
|
|
458
460
|
}, g = u === Me.HE ? On : kn, _ = (v) => {
|
|
459
461
|
d(v);
|
|
460
462
|
};
|
|
461
|
-
return /* @__PURE__ */
|
|
462
|
-
h && /* @__PURE__ */
|
|
463
|
-
|
|
463
|
+
return /* @__PURE__ */ a(Vt, { theme: n, children: /* @__PURE__ */ z(Bn, { utils: Nn, locale: g, children: [
|
|
464
|
+
h && /* @__PURE__ */ a(
|
|
465
|
+
Fn,
|
|
464
466
|
{
|
|
465
467
|
variant: o,
|
|
466
468
|
placeholder: L,
|
|
@@ -471,8 +473,8 @@ const Bc = (e) => {
|
|
|
471
473
|
...C
|
|
472
474
|
}
|
|
473
475
|
),
|
|
474
|
-
!h && /* @__PURE__ */
|
|
475
|
-
|
|
476
|
+
!h && /* @__PURE__ */ a(
|
|
477
|
+
Gn,
|
|
476
478
|
{
|
|
477
479
|
variant: o,
|
|
478
480
|
placeholder: L,
|
|
@@ -484,32 +486,32 @@ const Bc = (e) => {
|
|
|
484
486
|
}
|
|
485
487
|
)
|
|
486
488
|
] }) });
|
|
487
|
-
},
|
|
489
|
+
}, To = 18, So = ct(
|
|
488
490
|
(e) => Ht({
|
|
489
491
|
drawingButton: {
|
|
490
|
-
width: e.spacing(
|
|
492
|
+
width: e.spacing(To)
|
|
491
493
|
},
|
|
492
494
|
fullWidth: {
|
|
493
495
|
width: "100%",
|
|
494
496
|
marginTop: "36px"
|
|
495
497
|
}
|
|
496
498
|
})
|
|
497
|
-
),
|
|
498
|
-
const t =
|
|
499
|
+
), _o = (e) => {
|
|
500
|
+
const t = So(), [n, i] = ke.useState(null), { isSelectionEnabled: o, onCancelDraw: r, onStartDraw: l, onReset: d } = e, h = (C) => {
|
|
499
501
|
i(C.currentTarget);
|
|
500
502
|
}, f = () => {
|
|
501
503
|
i(null);
|
|
502
504
|
};
|
|
503
|
-
return o ? /* @__PURE__ */
|
|
504
|
-
/* @__PURE__ */
|
|
505
|
+
return o ? /* @__PURE__ */ a(We, { content: "Cancel the ongoing draw", align: "bottomLeft", children: /* @__PURE__ */ a(Je, { className: t.drawingButton, raised: !0, onClick: r, children: "Cancel Draw" }) }) : /* @__PURE__ */ z(q, { position: "relative", children: [
|
|
506
|
+
/* @__PURE__ */ a(We, { content: "draw an Area of interest to limit the search", align: "bottomLeft", children: /* @__PURE__ */ a(Je, { className: t.drawingButton, raised: !0, onClick: h, children: "Draw AOI" }) }),
|
|
505
507
|
/* @__PURE__ */ z(
|
|
506
|
-
|
|
508
|
+
xi,
|
|
507
509
|
{
|
|
508
510
|
className: t.fullWidth,
|
|
509
511
|
open: Boolean(n),
|
|
510
512
|
onClose: f,
|
|
511
513
|
children: [
|
|
512
|
-
/* @__PURE__ */
|
|
514
|
+
/* @__PURE__ */ a(
|
|
513
515
|
ft,
|
|
514
516
|
{
|
|
515
517
|
onClick: () => {
|
|
@@ -518,7 +520,7 @@ const Bc = (e) => {
|
|
|
518
520
|
children: "Polygon"
|
|
519
521
|
}
|
|
520
522
|
),
|
|
521
|
-
/* @__PURE__ */
|
|
523
|
+
/* @__PURE__ */ a(
|
|
522
524
|
ft,
|
|
523
525
|
{
|
|
524
526
|
onClick: () => {
|
|
@@ -527,7 +529,7 @@ const Bc = (e) => {
|
|
|
527
529
|
children: "Box"
|
|
528
530
|
}
|
|
529
531
|
),
|
|
530
|
-
/* @__PURE__ */
|
|
532
|
+
/* @__PURE__ */ a(
|
|
531
533
|
ft,
|
|
532
534
|
{
|
|
533
535
|
onClick: () => {
|
|
@@ -542,108 +544,108 @@ const Bc = (e) => {
|
|
|
542
544
|
] });
|
|
543
545
|
};
|
|
544
546
|
var Re = /* @__PURE__ */ ((e) => (e.WGS84 = "EPSG:4326", e.WEB_MERCATOR = "EPSG:3857", e))(Re || {});
|
|
545
|
-
const
|
|
547
|
+
const Ft = 5, Gt = 2, Qn = ze(null), Mo = Qn.Provider, gn = 35, fn = 32, Io = 10, Po = (e) => e !== void 0 && e !== Re.WGS84 ? $i([gn, fn], Re.WGS84, e) : [gn, fn], xo = (e) => {
|
|
546
548
|
switch (e) {
|
|
547
549
|
case Re.WEB_MERCATOR:
|
|
548
|
-
return (t) => sn(t, "Mercator: {y}m, {x}m",
|
|
550
|
+
return (t) => sn(t, "Mercator: {y}m, {x}m", Gt);
|
|
549
551
|
case Re.WGS84:
|
|
550
|
-
return (t) => sn(t, "WGS84: {y}°N {x}°E",
|
|
552
|
+
return (t) => sn(t, "WGS84: {y}°N {x}°E", Ft);
|
|
551
553
|
default:
|
|
552
554
|
return (t) => "";
|
|
553
555
|
}
|
|
554
556
|
}, Xe = () => {
|
|
555
|
-
const e = Ve(
|
|
557
|
+
const e = Ve(Qn);
|
|
556
558
|
if (e === null)
|
|
557
559
|
throw new Error("map context is null, please check the provider");
|
|
558
560
|
return e;
|
|
559
|
-
},
|
|
560
|
-
const t =
|
|
561
|
-
new
|
|
562
|
-
view: new
|
|
561
|
+
}, Ao = (e) => {
|
|
562
|
+
const t = Te(null), { allowFullScreen: n, showMousePosition: i, projection: o } = e, [r] = B(
|
|
563
|
+
new Wi({
|
|
564
|
+
view: new zi({
|
|
563
565
|
projection: o ?? Re.WGS84
|
|
564
566
|
}),
|
|
565
|
-
controls:
|
|
567
|
+
controls: Ui()
|
|
566
568
|
})
|
|
567
569
|
);
|
|
568
|
-
|
|
569
|
-
r.getView().setCenter(e.center ??
|
|
570
|
-
}, [r, e.center, e.projection]),
|
|
571
|
-
r.getView().setZoom(e.zoom ??
|
|
570
|
+
O(() => {
|
|
571
|
+
r.getView().setCenter(e.center ?? Po(e.projection));
|
|
572
|
+
}, [r, e.center, e.projection]), O(() => {
|
|
573
|
+
r.getView().setZoom(e.zoom ?? Io);
|
|
572
574
|
}, [r, e.zoom, e.projection]);
|
|
573
575
|
const l = (d, h) => {
|
|
574
576
|
h.getControls().forEach((C) => {
|
|
575
577
|
C instanceof d && h.removeControl(C);
|
|
576
578
|
});
|
|
577
579
|
};
|
|
578
|
-
return
|
|
580
|
+
return O(() => {
|
|
579
581
|
r.setTarget(t.current), n !== void 0 && n ? r.addControl(new an()) : l(an, r);
|
|
580
|
-
}, [r, n]),
|
|
582
|
+
}, [r, n]), O(() => {
|
|
581
583
|
i !== void 0 && i ? (l(vt, r), r.addControl(
|
|
582
584
|
new vt({
|
|
583
|
-
coordinateFormat:
|
|
585
|
+
coordinateFormat: xo(o ?? Re.WGS84),
|
|
584
586
|
projection: o ?? Re.WGS84,
|
|
585
587
|
undefinedHTML: " "
|
|
586
588
|
})
|
|
587
589
|
)) : l(vt, r);
|
|
588
|
-
}, [r, i, o]), /* @__PURE__ */ z(
|
|
589
|
-
/* @__PURE__ */
|
|
590
|
+
}, [r, i, o]), /* @__PURE__ */ z(Mo, { value: r, children: [
|
|
591
|
+
/* @__PURE__ */ a("div", { className: "map", ref: t }),
|
|
590
592
|
e.children
|
|
591
593
|
] });
|
|
592
|
-
},
|
|
593
|
-
const e = Ve(
|
|
594
|
+
}, ei = ze(null), Ro = ei.Provider, ht = () => {
|
|
595
|
+
const e = Ve(ei);
|
|
594
596
|
if (e === null)
|
|
595
597
|
throw new Error("tile layer context is null, please check the provider");
|
|
596
598
|
return e;
|
|
597
|
-
},
|
|
598
|
-
const n = Xe(), [i] =
|
|
599
|
-
return
|
|
599
|
+
}, Do = ({ options: e, children: t }) => {
|
|
600
|
+
const n = Xe(), [i] = B(new Yi(e));
|
|
601
|
+
return O(() => (n.addLayer(i), () => {
|
|
600
602
|
n.removeLayer(i);
|
|
601
|
-
}), [n, i]), /* @__PURE__ */
|
|
602
|
-
},
|
|
603
|
-
const e = Ve(
|
|
603
|
+
}), [n, i]), /* @__PURE__ */ a(Ro, { value: i, children: t });
|
|
604
|
+
}, ti = ze(null), Oo = ti.Provider, ko = () => {
|
|
605
|
+
const e = Ve(ti);
|
|
604
606
|
if (e === null)
|
|
605
607
|
throw new Error("vector layer context is null, please check the provider");
|
|
606
608
|
return e;
|
|
607
|
-
},
|
|
608
|
-
const t = Xe(), [n] =
|
|
609
|
-
return
|
|
609
|
+
}, No = ({ children: e }) => {
|
|
610
|
+
const t = Xe(), [n] = B(new Zi());
|
|
611
|
+
return O(() => (t.addLayer(n), () => {
|
|
610
612
|
t.removeLayer(n);
|
|
611
|
-
}), [t, n]), /* @__PURE__ */
|
|
612
|
-
},
|
|
613
|
-
const e = Ve(
|
|
613
|
+
}), [t, n]), /* @__PURE__ */ a(Oo, { value: n, children: e });
|
|
614
|
+
}, ni = ze(null), Bo = ni.Provider, Fo = () => {
|
|
615
|
+
const e = Ve(ni);
|
|
614
616
|
if (e === null)
|
|
615
617
|
throw new Error("vector source context is null, please check the provider");
|
|
616
618
|
return e;
|
|
617
|
-
},
|
|
618
|
-
const t =
|
|
619
|
-
return
|
|
619
|
+
}, Go = ({ children: e }) => {
|
|
620
|
+
const t = ko(), [n] = B(new Xi());
|
|
621
|
+
return O(() => {
|
|
620
622
|
t.setSource(n);
|
|
621
|
-
}, [n, t]), /* @__PURE__ */
|
|
622
|
-
},
|
|
623
|
-
const o =
|
|
623
|
+
}, [n, t]), /* @__PURE__ */ a(Bo, { value: n, children: e });
|
|
624
|
+
}, Vo = ({ geometry: e, fitOptions: t, fit: n, featureStyle: i }) => {
|
|
625
|
+
const o = Fo(), r = Xe();
|
|
624
626
|
return Dn(() => {
|
|
625
|
-
const d = new
|
|
627
|
+
const d = new Wn().readFeature(e);
|
|
626
628
|
return n && o.on("addfeature", function() {
|
|
627
629
|
r.getView().fit(o.getExtent(), t);
|
|
628
630
|
}), i && d.setStyle(i), o.addFeature(d), () => {
|
|
629
631
|
o.removeFeature(d);
|
|
630
632
|
};
|
|
631
633
|
}, [e, o, n]), null;
|
|
632
|
-
},
|
|
634
|
+
}, Ho = (e) => {
|
|
633
635
|
const t = ht();
|
|
634
|
-
return
|
|
635
|
-
t.setSource(new
|
|
636
|
+
return O(() => {
|
|
637
|
+
t.setSource(new Ki());
|
|
636
638
|
}, [t]), null;
|
|
637
|
-
},
|
|
639
|
+
}, Wo = ({ drawType: e, onPolygonSelected: t }) => {
|
|
638
640
|
const n = Xe();
|
|
639
|
-
return
|
|
641
|
+
return O(() => {
|
|
640
642
|
const i = {
|
|
641
643
|
type: "Circle"
|
|
642
644
|
/* CIRCLE */
|
|
643
645
|
};
|
|
644
646
|
switch (e) {
|
|
645
647
|
case be.BOX:
|
|
646
|
-
i.geometryFunction =
|
|
648
|
+
i.geometryFunction = er();
|
|
647
649
|
break;
|
|
648
650
|
case be.POLYGON:
|
|
649
651
|
i.type = "Polygon";
|
|
@@ -651,10 +653,10 @@ const Gt = 5, Vt = 2, Kn = ze(null), _o = Kn.Provider, gn = 35, fn = 32, Mo = 10
|
|
|
651
653
|
default:
|
|
652
654
|
return;
|
|
653
655
|
}
|
|
654
|
-
const o = new
|
|
656
|
+
const o = new Qi(i);
|
|
655
657
|
n.addInteraction(o);
|
|
656
658
|
const r = (l) => {
|
|
657
|
-
const h = new
|
|
659
|
+
const h = new Wn().writeGeometryObject(l.feature.getGeometry());
|
|
658
660
|
t == null || t(h);
|
|
659
661
|
};
|
|
660
662
|
return o.on("drawend", r), () => {
|
|
@@ -662,18 +664,18 @@ const Gt = 5, Vt = 2, Kn = ze(null), _o = Kn.Provider, gn = 35, fn = 32, Mo = 10
|
|
|
662
664
|
};
|
|
663
665
|
}, [t, e, n]), null;
|
|
664
666
|
};
|
|
665
|
-
const
|
|
667
|
+
const zo = (e) => {
|
|
666
668
|
const t = (n) => {
|
|
667
|
-
const i =
|
|
669
|
+
const i = Hi(n);
|
|
668
670
|
e.onPolygonSelection(i);
|
|
669
671
|
};
|
|
670
|
-
return /* @__PURE__ */ z(
|
|
671
|
-
/* @__PURE__ */
|
|
672
|
-
e.selectionPolygon && /* @__PURE__ */
|
|
672
|
+
return /* @__PURE__ */ z(Ao, { allowFullScreen: !0, showMousePosition: !0, children: [
|
|
673
|
+
/* @__PURE__ */ a(Do, { children: /* @__PURE__ */ a(Ho, {}) }),
|
|
674
|
+
e.selectionPolygon && /* @__PURE__ */ a(No, { children: /* @__PURE__ */ a(Go, { children: /* @__PURE__ */ a(Vo, { geometry: e.selectionPolygon }) }) }),
|
|
673
675
|
e.children,
|
|
674
|
-
e.drawType !== void 0 && /* @__PURE__ */
|
|
676
|
+
e.drawType !== void 0 && /* @__PURE__ */ a(Wo, { drawType: e.drawType, onPolygonSelected: t })
|
|
675
677
|
] });
|
|
676
|
-
}, Ct = 1.5,
|
|
678
|
+
}, Ct = 1.5, Uo = 80, $o = ct(
|
|
677
679
|
(e) => Ht({
|
|
678
680
|
map: {
|
|
679
681
|
height: "100%",
|
|
@@ -688,7 +690,7 @@ const Wo = (e) => {
|
|
|
688
690
|
},
|
|
689
691
|
contentContainer: {
|
|
690
692
|
marginTop: e.spacing(Ct),
|
|
691
|
-
width: e.spacing(
|
|
693
|
+
width: e.spacing(Uo)
|
|
692
694
|
},
|
|
693
695
|
filtersContainer: {
|
|
694
696
|
display: "flex",
|
|
@@ -698,18 +700,18 @@ const Wo = (e) => {
|
|
|
698
700
|
marginLeft: e.spacing(1)
|
|
699
701
|
}
|
|
700
702
|
})
|
|
701
|
-
),
|
|
703
|
+
), Wc = (e) => {
|
|
702
704
|
var h;
|
|
703
|
-
const [t, n] =
|
|
705
|
+
const [t, n] = B(), [i, o] = B(), r = $o(), l = (f) => {
|
|
704
706
|
o(f), n(void 0), e.handlePolygonSelected(f);
|
|
705
707
|
}, d = () => {
|
|
706
708
|
o(void 0), e.handlePolygonReset();
|
|
707
709
|
};
|
|
708
710
|
return /* @__PURE__ */ z("div", { className: r.map, children: [
|
|
709
711
|
/* @__PURE__ */ z("div", { className: `${r.absolute}`, children: [
|
|
710
|
-
/* @__PURE__ */ z(
|
|
711
|
-
/* @__PURE__ */
|
|
712
|
-
|
|
712
|
+
/* @__PURE__ */ z(Pt, { className: r.filtersContainer, children: [
|
|
713
|
+
/* @__PURE__ */ a(
|
|
714
|
+
_o,
|
|
713
715
|
{
|
|
714
716
|
onCancelDraw: () => n(void 0),
|
|
715
717
|
onReset: d,
|
|
@@ -717,20 +719,20 @@ const Wo = (e) => {
|
|
|
717
719
|
isSelectionEnabled: t !== void 0
|
|
718
720
|
}
|
|
719
721
|
),
|
|
720
|
-
(h = e.filters) == null ? void 0 : h.map((f, C) => /* @__PURE__ */
|
|
722
|
+
(h = e.filters) == null ? void 0 : h.map((f, C) => /* @__PURE__ */ a("div", { className: r.filtersMargin, children: f }, C))
|
|
721
723
|
] }),
|
|
722
|
-
/* @__PURE__ */
|
|
724
|
+
/* @__PURE__ */ a(Pt, { color: "red", className: `${r.contentContainer}`, children: e.children })
|
|
723
725
|
] }),
|
|
724
|
-
/* @__PURE__ */
|
|
726
|
+
/* @__PURE__ */ a(zo, { children: e.mapContent, onPolygonSelection: l, drawType: t, selectionPolygon: i })
|
|
725
727
|
] });
|
|
726
|
-
}, yn = new
|
|
728
|
+
}, yn = new nr({
|
|
727
729
|
color: "rgba(255,255,255,0.4)"
|
|
728
|
-
}), vn = new
|
|
730
|
+
}), vn = new ir({
|
|
729
731
|
color: "#3399CC",
|
|
730
732
|
width: 1.25
|
|
731
733
|
}), wn = [
|
|
732
|
-
new
|
|
733
|
-
image: new
|
|
734
|
+
new rr({
|
|
735
|
+
image: new or({
|
|
734
736
|
fill: yn,
|
|
735
737
|
stroke: vn,
|
|
736
738
|
radius: 5
|
|
@@ -738,27 +740,27 @@ const Wo = (e) => {
|
|
|
738
740
|
fill: yn,
|
|
739
741
|
stroke: vn
|
|
740
742
|
})
|
|
741
|
-
],
|
|
742
|
-
const e = Ve(
|
|
743
|
+
], ii = ze(null), jo = ii.Provider, Yo = () => {
|
|
744
|
+
const e = Ve(ii);
|
|
743
745
|
if (e === null)
|
|
744
746
|
throw new Error("vector tile layer context is null, please check the provider");
|
|
745
747
|
return e;
|
|
746
|
-
},
|
|
747
|
-
const i = Xe(), [o] =
|
|
748
|
-
new
|
|
748
|
+
}, zc = ({ children: e, options: t, style: n }) => {
|
|
749
|
+
const i = Xe(), [o] = B(
|
|
750
|
+
new tr({
|
|
749
751
|
...t,
|
|
750
752
|
style: n || wn
|
|
751
753
|
})
|
|
752
754
|
);
|
|
753
|
-
return
|
|
755
|
+
return O(() => (i.addLayer(o), () => {
|
|
754
756
|
i.removeLayer(o);
|
|
755
|
-
}), [i, o]),
|
|
757
|
+
}), [i, o]), O(() => {
|
|
756
758
|
o.setStyle(n || wn);
|
|
757
|
-
}, [o, n]), /* @__PURE__ */
|
|
758
|
-
}, bt = 20,
|
|
759
|
-
const t =
|
|
759
|
+
}, [o, n]), /* @__PURE__ */ a(jo, { value: o, children: e });
|
|
760
|
+
}, bt = 20, Zo = 256, Xo = 2, Ko = 2, qo = "REST", Uc = (e) => {
|
|
761
|
+
const t = ji(e.projection), n = t.getExtent(), i = new Array(bt), o = new Array(bt), r = ar(n) / Zo, l = e.heightWidthRatio !== void 0 ? e.heightWidthRatio : Ko, d = e.requestEncoding !== void 0 ? e.requestEncoding : qo;
|
|
760
762
|
for (let f = 0; f < bt; ++f)
|
|
761
|
-
i[f] = r / Math.pow(
|
|
763
|
+
i[f] = r / Math.pow(Xo, f) / l, o[f] = f.toString();
|
|
762
764
|
return {
|
|
763
765
|
attributions: e.attributions,
|
|
764
766
|
url: e.url,
|
|
@@ -766,8 +768,8 @@ const Wo = (e) => {
|
|
|
766
768
|
matrixSet: e.matrixSet,
|
|
767
769
|
format: e.format,
|
|
768
770
|
projection: t,
|
|
769
|
-
tileGrid: new
|
|
770
|
-
origin:
|
|
771
|
+
tileGrid: new sr({
|
|
772
|
+
origin: cr(n),
|
|
771
773
|
resolutions: i,
|
|
772
774
|
matrixIds: o
|
|
773
775
|
}),
|
|
@@ -775,12 +777,12 @@ const Wo = (e) => {
|
|
|
775
777
|
requestEncoding: d,
|
|
776
778
|
wrapX: e.wrapX !== void 0 ? e.wrapX : !0
|
|
777
779
|
};
|
|
778
|
-
},
|
|
780
|
+
}, $c = (e) => {
|
|
779
781
|
const t = ht(), { options: n } = e;
|
|
780
|
-
return
|
|
782
|
+
return O(() => {
|
|
781
783
|
t.setSource(new qi(n));
|
|
782
784
|
}, [t, n]), null;
|
|
783
|
-
},
|
|
785
|
+
}, jc = (e) => {
|
|
784
786
|
const { attributions: t, url: n, params: i, serverType: o, transition: r } = e;
|
|
785
787
|
return {
|
|
786
788
|
attributions: t,
|
|
@@ -789,46 +791,46 @@ const Wo = (e) => {
|
|
|
789
791
|
serverType: o,
|
|
790
792
|
transition: r
|
|
791
793
|
};
|
|
792
|
-
},
|
|
794
|
+
}, Yc = (e) => {
|
|
793
795
|
const t = ht(), { options: n } = e;
|
|
794
|
-
return
|
|
795
|
-
t.setSource(new
|
|
796
|
+
return O(() => {
|
|
797
|
+
t.setSource(new lr(n));
|
|
796
798
|
}, [t, n]), null;
|
|
797
|
-
},
|
|
799
|
+
}, Zc = (e) => {
|
|
798
800
|
const { attributions: t, url: n } = e;
|
|
799
801
|
return {
|
|
800
802
|
attributions: t,
|
|
801
803
|
url: n
|
|
802
804
|
};
|
|
803
|
-
},
|
|
805
|
+
}, Xc = (e) => {
|
|
804
806
|
const t = ht(), { options: n } = e;
|
|
805
|
-
return
|
|
806
|
-
t.setSource(new
|
|
807
|
+
return O(() => {
|
|
808
|
+
t.setSource(new dr(n));
|
|
807
809
|
}, [t, n]), null;
|
|
808
|
-
},
|
|
809
|
-
const e = Ve(
|
|
810
|
+
}, Jo = ze(null), Kc = () => {
|
|
811
|
+
const e = Ve(Jo);
|
|
810
812
|
if (e === null)
|
|
811
813
|
throw new Error("vector tile source context is null, please check the provider");
|
|
812
814
|
return e;
|
|
813
|
-
},
|
|
815
|
+
}, qc = (e) => {
|
|
814
816
|
const { url: t } = e;
|
|
815
817
|
return {
|
|
816
818
|
url: t,
|
|
817
|
-
format: new
|
|
819
|
+
format: new Ji()
|
|
818
820
|
};
|
|
819
|
-
},
|
|
820
|
-
const n =
|
|
821
|
-
return
|
|
822
|
-
n.setSource(new
|
|
821
|
+
}, Jc = ({ children: e, options: t }) => {
|
|
822
|
+
const n = Yo();
|
|
823
|
+
return O(() => {
|
|
824
|
+
n.setSource(new ur(t));
|
|
823
825
|
}, [t, n]), null;
|
|
824
|
-
},
|
|
826
|
+
}, Qc = ({ legendItems: e, title: t, isCollapsed: n }) => {
|
|
825
827
|
const i = Xe();
|
|
826
|
-
return
|
|
828
|
+
return O(() => {
|
|
827
829
|
const o = new cn({
|
|
828
830
|
title: t ?? "",
|
|
829
831
|
margin: 5,
|
|
830
832
|
maxWidth: 300
|
|
831
|
-
}), r = new
|
|
833
|
+
}), r = new hr({
|
|
832
834
|
legend: o,
|
|
833
835
|
collapsed: n === void 0 ? !0 : n
|
|
834
836
|
});
|
|
@@ -843,21 +845,21 @@ const Wo = (e) => {
|
|
|
843
845
|
}), o.addItem(l), () => {
|
|
844
846
|
i.removeControl(r);
|
|
845
847
|
};
|
|
846
|
-
}, [i, e, t, n]), /* @__PURE__ */
|
|
848
|
+
}, [i, e, t, n]), /* @__PURE__ */ a(ge, {});
|
|
847
849
|
};
|
|
848
|
-
function
|
|
850
|
+
function Qo(e) {
|
|
849
851
|
const { headCells: t, order: n, orderBy: i, onRequestSort: o, isCollapseable: r } = e, l = (d) => (h) => {
|
|
850
852
|
o(h, d);
|
|
851
853
|
};
|
|
852
|
-
return /* @__PURE__ */
|
|
853
|
-
r && /* @__PURE__ */
|
|
854
|
-
t.map((d) => /* @__PURE__ */
|
|
854
|
+
return /* @__PURE__ */ a(mr, { children: /* @__PURE__ */ z(ot, { children: [
|
|
855
|
+
r && /* @__PURE__ */ a(Ze, {}),
|
|
856
|
+
t.map((d) => /* @__PURE__ */ a(
|
|
855
857
|
Ze,
|
|
856
858
|
{
|
|
857
859
|
align: d.numeric ? "right" : "left",
|
|
858
860
|
padding: d.disablePadding ? "none" : "default",
|
|
859
861
|
sortDirection: i === d.id ? n : !1,
|
|
860
|
-
children: /* @__PURE__ */
|
|
862
|
+
children: /* @__PURE__ */ a(
|
|
861
863
|
Ei,
|
|
862
864
|
{
|
|
863
865
|
active: i === d.id,
|
|
@@ -871,24 +873,24 @@ function Jo(e) {
|
|
|
871
873
|
))
|
|
872
874
|
] }) });
|
|
873
875
|
}
|
|
874
|
-
const
|
|
876
|
+
const es = zn(
|
|
875
877
|
/* @__PURE__ */ Rn.createElement("path", {
|
|
876
878
|
d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"
|
|
877
879
|
}),
|
|
878
880
|
"KeyboardArrowDown"
|
|
879
|
-
),
|
|
881
|
+
), ts = zn(
|
|
880
882
|
/* @__PURE__ */ Rn.createElement("path", {
|
|
881
883
|
d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"
|
|
882
884
|
}),
|
|
883
885
|
"KeyboardArrowUp"
|
|
884
886
|
);
|
|
885
|
-
function
|
|
886
|
-
const { cellsMetadata: t, isRowSelected: n, item: i, onRowSelected: o, rowIndex: r, isCollapseable: l, collapsedElement: d } = e, [h, f] =
|
|
887
|
+
function ns(e) {
|
|
888
|
+
const { cellsMetadata: t, isRowSelected: n, item: i, onRowSelected: o, rowIndex: r, isCollapseable: l, collapsedElement: d } = e, [h, f] = B(!1), C = t.length;
|
|
887
889
|
return /* @__PURE__ */ z(ge, { children: [
|
|
888
890
|
/* @__PURE__ */ z(ot, { hover: !0, selected: n, onClick: () => {
|
|
889
891
|
o == null || o(r);
|
|
890
892
|
}, children: [
|
|
891
|
-
l && /* @__PURE__ */
|
|
893
|
+
l && /* @__PURE__ */ a(Ze, { padding: "checkbox", children: /* @__PURE__ */ a(
|
|
892
894
|
Li,
|
|
893
895
|
{
|
|
894
896
|
"aria-label": "expand row",
|
|
@@ -896,10 +898,10 @@ function ts(e) {
|
|
|
896
898
|
onClick: (u) => {
|
|
897
899
|
u.stopPropagation(), f(!h);
|
|
898
900
|
},
|
|
899
|
-
children: h ? /* @__PURE__ */
|
|
901
|
+
children: h ? /* @__PURE__ */ a(ts, {}) : /* @__PURE__ */ a(es, {})
|
|
900
902
|
}
|
|
901
903
|
) }),
|
|
902
|
-
t.map((u) => /* @__PURE__ */
|
|
904
|
+
t.map((u) => /* @__PURE__ */ a(
|
|
903
905
|
Ze,
|
|
904
906
|
{
|
|
905
907
|
align: u.numeric ? "right" : "left",
|
|
@@ -909,11 +911,11 @@ function ts(e) {
|
|
|
909
911
|
u.id + r.toString()
|
|
910
912
|
))
|
|
911
913
|
] }),
|
|
912
|
-
l && /* @__PURE__ */
|
|
914
|
+
l && /* @__PURE__ */ a(ot, { children: /* @__PURE__ */ a(Ze, { style: { paddingBottom: 0, paddingTop: 0 }, colSpan: C + 1, children: /* @__PURE__ */ a(Ci, { in: h, unmountOnExit: !0, timeout: "auto", children: d == null ? void 0 : d(i) }) }) })
|
|
913
915
|
] });
|
|
914
916
|
}
|
|
915
|
-
function
|
|
916
|
-
const [t, n] =
|
|
917
|
+
function el(e) {
|
|
918
|
+
const [t, n] = B(""), [i, o] = B("asc"), {
|
|
917
919
|
cellsMetadata: r,
|
|
918
920
|
items: l,
|
|
919
921
|
onRequestSort: d,
|
|
@@ -927,10 +929,10 @@ function qc(e) {
|
|
|
927
929
|
handleChangePage: v,
|
|
928
930
|
handleChangeRowsPerPage: k
|
|
929
931
|
} = e;
|
|
930
|
-
return /* @__PURE__ */ z(bi, { component:
|
|
932
|
+
return /* @__PURE__ */ z(bi, { component: Pt, children: [
|
|
931
933
|
/* @__PURE__ */ z(Ti, { size: L ? "small" : "medium", children: [
|
|
932
|
-
/* @__PURE__ */
|
|
933
|
-
|
|
934
|
+
/* @__PURE__ */ a(
|
|
935
|
+
Qo,
|
|
934
936
|
{
|
|
935
937
|
headCells: r,
|
|
936
938
|
onRequestSort: ($, j) => {
|
|
@@ -943,8 +945,8 @@ function qc(e) {
|
|
|
943
945
|
}
|
|
944
946
|
),
|
|
945
947
|
/* @__PURE__ */ z(Si, { children: [
|
|
946
|
-
l.map(($, j) => /* @__PURE__ */
|
|
947
|
-
|
|
948
|
+
l.map(($, j) => /* @__PURE__ */ a(
|
|
949
|
+
ns,
|
|
948
950
|
{
|
|
949
951
|
item: $,
|
|
950
952
|
rowIndex: j,
|
|
@@ -956,18 +958,18 @@ function qc(e) {
|
|
|
956
958
|
},
|
|
957
959
|
j
|
|
958
960
|
)),
|
|
959
|
-
(l.length === 0 || g > l.length) && /* @__PURE__ */
|
|
961
|
+
(l.length === 0 || g > l.length) && /* @__PURE__ */ a(
|
|
960
962
|
ot,
|
|
961
963
|
{
|
|
962
964
|
style: {
|
|
963
965
|
height: (L ? 33 : 53) * (g - l.length)
|
|
964
966
|
},
|
|
965
|
-
children: /* @__PURE__ */
|
|
967
|
+
children: /* @__PURE__ */ a(Ze, { colSpan: f ? r.length + 1 : r.length, children: l.length === 0 && /* @__PURE__ */ a(_i, { align: "center", children: "No results :(" }) })
|
|
966
968
|
}
|
|
967
969
|
)
|
|
968
970
|
] })
|
|
969
971
|
] }),
|
|
970
|
-
/* @__PURE__ */
|
|
972
|
+
/* @__PURE__ */ a(
|
|
971
973
|
Mi,
|
|
972
974
|
{
|
|
973
975
|
rowsPerPage: g,
|
|
@@ -981,24 +983,24 @@ function qc(e) {
|
|
|
981
983
|
)
|
|
982
984
|
] });
|
|
983
985
|
}
|
|
984
|
-
const
|
|
986
|
+
const tl = (e) => {
|
|
985
987
|
const { children: t, ...n } = e;
|
|
986
|
-
return /* @__PURE__ */
|
|
987
|
-
},
|
|
988
|
+
return /* @__PURE__ */ a(pr, { ...n, children: t });
|
|
989
|
+
}, nl = (e) => {
|
|
988
990
|
const { children: t, ...n } = e;
|
|
989
|
-
return /* @__PURE__ */
|
|
990
|
-
}, En = (e) => e * Math.PI / 180, nt = (e) => e * (180 / Math.PI),
|
|
991
|
-
/* @__PURE__ */
|
|
992
|
-
t && /* @__PURE__ */
|
|
991
|
+
return /* @__PURE__ */ a(gr, { ...n, children: t });
|
|
992
|
+
}, En = (e) => e * Math.PI / 180, nt = (e) => e * (180 / Math.PI), is = (e) => 0.05 * (5916575505e-1 / Math.pow(2, e - 1) / 2) * (Math.cos(En(85.362 / 2)) / Math.sin(En(85.362 / 2))), rs = ({ title: e, onClick: t }) => /* @__PURE__ */ a("div", { className: "cesium-cesiumInspector-button", onClick: t, children: e }), os = ({ title: e, isVisible: t, onClick: n, children: i }) => /* @__PURE__ */ z(q, { className: `cesium-cesiumInspector ${t ? "cesium-cesiumInspector-visible" : ""}`, children: [
|
|
993
|
+
/* @__PURE__ */ a(rs, { title: e, onClick: n }),
|
|
994
|
+
t && /* @__PURE__ */ a(q, { className: "cesium-cesiumInspector-dropDown", children: i })
|
|
993
995
|
] });
|
|
994
|
-
const Tt = "Imagery", St = "Data",
|
|
996
|
+
const Tt = "Imagery", St = "Data", ss = ({ locale: e }) => {
|
|
995
997
|
var L, u;
|
|
996
|
-
const t = ve(), [n, i] =
|
|
998
|
+
const t = ve(), [n, i] = B([{ id: Tt, values: [] }, { id: St, values: [] }]), [o, r] = B({}), l = (g) => ee(e, g.toUpperCase()) ?? g, d = () => t.imageryLayers ? Array.from({ length: t.imageryLayers.length }, (g, _) => {
|
|
997
999
|
var G;
|
|
998
1000
|
const v = t.imageryLayers.get(_), k = v.meta;
|
|
999
1001
|
return {
|
|
1000
1002
|
id: k == null ? void 0 : k.id,
|
|
1001
|
-
name:
|
|
1003
|
+
name: ee(k, "layerRecord.productName") ?? (k == null ? void 0 : k.id),
|
|
1002
1004
|
rect: v.rectangle,
|
|
1003
1005
|
isBaseMap: (G = t.layersManager) == null ? void 0 : G.isBaseMapLayer(k)
|
|
1004
1006
|
};
|
|
@@ -1008,13 +1010,13 @@ const Tt = "Imagery", St = "Data", os = ({ locale: e }) => {
|
|
|
1008
1010
|
var v, k;
|
|
1009
1011
|
return {
|
|
1010
1012
|
id: (v = _.meta) == null ? void 0 : v.id,
|
|
1011
|
-
name:
|
|
1013
|
+
name: ee(_.meta, "featureStructure.aliasLayerName") ?? _.meta.productName,
|
|
1012
1014
|
rect: Be.fromDegrees(...dt((k = _.meta) == null ? void 0 : k.footprint)),
|
|
1013
1015
|
isBaseMap: !1
|
|
1014
1016
|
};
|
|
1015
1017
|
})) || [];
|
|
1016
1018
|
};
|
|
1017
|
-
|
|
1019
|
+
O(() => {
|
|
1018
1020
|
(() => {
|
|
1019
1021
|
const _ = [
|
|
1020
1022
|
{
|
|
@@ -1028,7 +1030,7 @@ const Tt = "Imagery", St = "Data", os = ({ locale: e }) => {
|
|
|
1028
1030
|
];
|
|
1029
1031
|
i(_), r(_.reduce((v, k) => ({ ...v, [k.id]: !0 }), {}));
|
|
1030
1032
|
})();
|
|
1031
|
-
}, []),
|
|
1033
|
+
}, []), O(() => {
|
|
1032
1034
|
if (!t.layersManager)
|
|
1033
1035
|
return;
|
|
1034
1036
|
const g = () => {
|
|
@@ -1043,9 +1045,9 @@ const Tt = "Imagery", St = "Data", os = ({ locale: e }) => {
|
|
|
1043
1045
|
};
|
|
1044
1046
|
return t.layersManager.addLayerUpdatedListener(g), t.imageryLayers.layerRemoved.addEventListener(g), () => {
|
|
1045
1047
|
var _;
|
|
1046
|
-
|
|
1048
|
+
ee(t, "_cesiumWidget") !== void 0 && ((_ = t.layersManager) == null || _.removeLayerUpdatedListener(g), t.imageryLayers.layerRemoved.removeEventListener(g));
|
|
1047
1049
|
};
|
|
1048
|
-
}, [(L = t.layersManager) == null ? void 0 : L.layerList]),
|
|
1050
|
+
}, [(L = t.layersManager) == null ? void 0 : L.layerList]), O(() => {
|
|
1049
1051
|
if (!t.layersManager)
|
|
1050
1052
|
return;
|
|
1051
1053
|
const g = () => {
|
|
@@ -1068,46 +1070,63 @@ const Tt = "Imagery", St = "Data", os = ({ locale: e }) => {
|
|
|
1068
1070
|
}, C = (g) => {
|
|
1069
1071
|
t.camera.flyTo({ destination: g });
|
|
1070
1072
|
};
|
|
1071
|
-
return /* @__PURE__ */
|
|
1072
|
-
|
|
1073
|
+
return /* @__PURE__ */ a(q, { className: "activeLayersPanel", children: n.filter((g) => g.values.length > 0).map((g) => /* @__PURE__ */ z(
|
|
1074
|
+
q,
|
|
1073
1075
|
{
|
|
1074
1076
|
className: `cesium-cesiumInspector-section ${o[g.id] ? "cesium-cesiumInspector-section-collapsed" : ""}`,
|
|
1075
1077
|
onClick: () => f(g.id),
|
|
1076
1078
|
children: [
|
|
1077
|
-
/* @__PURE__ */
|
|
1078
|
-
/* @__PURE__ */
|
|
1079
|
-
/* @__PURE__ */
|
|
1080
|
-
/* @__PURE__ */
|
|
1079
|
+
/* @__PURE__ */ a(xt, { tag: "h3", className: "cesium-cesiumInspector-sectionHeader", children: l(g.id) }),
|
|
1080
|
+
/* @__PURE__ */ a(q, { className: "cesium-cesiumInspector-sectionContent", children: g.values.map((_) => /* @__PURE__ */ z(q, { className: "layer", children: [
|
|
1081
|
+
/* @__PURE__ */ a(We, { content: _.name, children: /* @__PURE__ */ a(q, { className: `name ${_.isBaseMap ? "disabled" : ""}`, children: _.name }) }),
|
|
1082
|
+
/* @__PURE__ */ a(q, { className: "icons", children: /* @__PURE__ */ a(We, { content: ee(e, "FLY_TO") ?? "Fly To", children: /* @__PURE__ */ a(q, { className: "icon", onClick: (v) => {
|
|
1081
1083
|
v.stopPropagation(), C(_.rect);
|
|
1082
1084
|
}, children: /* @__PURE__ */ z("svg", { fill: "var(--mdc-theme-cesium-color)", width: "100%", height: "100%", viewBox: "0 0 256 256", children: [
|
|
1083
|
-
/* @__PURE__ */
|
|
1084
|
-
/* @__PURE__ */
|
|
1085
|
+
/* @__PURE__ */ a("path", { d: "M236,120H223.66406A96.15352,96.15352,0,0,0,136,32.33618V20a8,8,0,0,0-16,0V32.33618A96.15352,96.15352,0,0,0,32.33594,120H20a8,8,0,0,0,0,16H32.33594A96.15352,96.15352,0,0,0,120,223.66382V236a8,8,0,0,0,16,0V223.66382A96.15352,96.15352,0,0,0,223.66406,136H236a8,8,0,0,0,0-16Zm-40,16h11.59912A80.14164,80.14164,0,0,1,136,207.59912V196a8,8,0,0,0-16,0v11.59912A80.14164,80.14164,0,0,1,48.40088,136H60a8,8,0,0,0,0-16H48.40088A80.14164,80.14164,0,0,1,120,48.40088V60a8,8,0,0,0,16,0V48.40088A80.14164,80.14164,0,0,1,207.59912,120H196a8,8,0,0,0,0,16Z" }),
|
|
1086
|
+
/* @__PURE__ */ a("polygon", { points: "128,80 80,170 128,150 176,170", fill: "var(--mdc-theme-cesium-color)" })
|
|
1085
1087
|
] }) }) }) })
|
|
1086
1088
|
] }, _.id)) })
|
|
1087
1089
|
]
|
|
1088
1090
|
},
|
|
1089
1091
|
g.id
|
|
1090
1092
|
)) });
|
|
1091
|
-
},
|
|
1092
|
-
const [t, n] =
|
|
1093
|
-
return /* @__PURE__ */
|
|
1094
|
-
}, mt = ({ onClick: e, children: t }) => /* @__PURE__ */
|
|
1095
|
-
n && /* @__PURE__ */
|
|
1093
|
+
}, as = ({ locale: e }) => {
|
|
1094
|
+
const [t, n] = B(!1), i = ae(() => ee(e, "ACTIVE_LAYERS_TITLE") ?? "Active Layers", [e]);
|
|
1095
|
+
return /* @__PURE__ */ a(os, { title: i, isVisible: t, onClick: () => n(!t), children: /* @__PURE__ */ a(ss, { locale: e }) });
|
|
1096
|
+
}, mt = ({ onClick: e, children: t }) => /* @__PURE__ */ a("div", { className: "cesium-toolbar-button cesium-button", onClick: e, children: t }), Zt = ({ title: e }) => /* @__PURE__ */ a(q, { className: "cesium-mc-title", children: e }), Xt = ({ isVisible: e, children: t, title: n }) => /* @__PURE__ */ z(q, { className: `cesium-mc-tool ${e ? "cesium-mc-tool-visible" : ""}`, children: [
|
|
1097
|
+
n && /* @__PURE__ */ a(Zt, { title: n }),
|
|
1096
1098
|
t
|
|
1097
|
-
] })
|
|
1098
|
-
|
|
1099
|
+
] });
|
|
1100
|
+
function Kt(e) {
|
|
1101
|
+
return function(n) {
|
|
1102
|
+
const i = Te(null), [o, r] = B(!1);
|
|
1103
|
+
return O(() => {
|
|
1104
|
+
if (!o)
|
|
1105
|
+
return;
|
|
1106
|
+
const l = (d) => {
|
|
1107
|
+
const h = d.target;
|
|
1108
|
+
i.current && !i.current.contains(h) && r(!1);
|
|
1109
|
+
};
|
|
1110
|
+
return document.addEventListener("click", l, !0), () => {
|
|
1111
|
+
document.removeEventListener("click", l, !0);
|
|
1112
|
+
};
|
|
1113
|
+
}, [o]), /* @__PURE__ */ a("div", { ref: i, className: "disappear", children: /* @__PURE__ */ a(e, { ...n, isOpen: o, setIsOpen: r }) });
|
|
1114
|
+
};
|
|
1115
|
+
}
|
|
1116
|
+
const ri = ({ item: e, isSelected: t, onClick: n }) => /* @__PURE__ */ z(
|
|
1117
|
+
q,
|
|
1099
1118
|
{
|
|
1100
1119
|
className: `cesium-baseLayerPicker-item ${t ? "cesium-baseLayerPicker-selectedItem" : ""}`,
|
|
1101
1120
|
title: e.title,
|
|
1102
1121
|
onClick: n,
|
|
1103
1122
|
children: [
|
|
1104
|
-
/* @__PURE__ */
|
|
1105
|
-
/* @__PURE__ */
|
|
1123
|
+
/* @__PURE__ */ a("img", { className: "cesium-baseLayerPicker-itemIcon", src: e.thumbnail, alt: e.title }),
|
|
1124
|
+
/* @__PURE__ */ a(q, { className: "cesium-baseLayerPicker-itemLabel", children: e.title })
|
|
1106
1125
|
]
|
|
1107
1126
|
}
|
|
1108
|
-
),
|
|
1109
|
-
const i = ve(), [o, r] =
|
|
1110
|
-
|
|
1127
|
+
), cs = ({ title: e, baseMaps: t, setCurrent: n }) => {
|
|
1128
|
+
const i = ve(), [o, r] = B();
|
|
1129
|
+
O(() => {
|
|
1111
1130
|
const d = t.maps.find((h) => h.isCurrent);
|
|
1112
1131
|
d && (r(d), n(d));
|
|
1113
1132
|
}, [t]);
|
|
@@ -1120,9 +1139,9 @@ const Tt = "Imagery", St = "Data", os = ({ locale: e }) => {
|
|
|
1120
1139
|
}));
|
|
1121
1140
|
};
|
|
1122
1141
|
return /* @__PURE__ */ z(ge, { children: [
|
|
1123
|
-
/* @__PURE__ */
|
|
1124
|
-
/* @__PURE__ */
|
|
1125
|
-
|
|
1142
|
+
/* @__PURE__ */ a(Zt, { title: e }),
|
|
1143
|
+
/* @__PURE__ */ a(q, { className: "cesium-mc-choices", children: t.maps.map((d) => /* @__PURE__ */ a(
|
|
1144
|
+
ri,
|
|
1126
1145
|
{
|
|
1127
1146
|
item: d,
|
|
1128
1147
|
isSelected: o === d,
|
|
@@ -1131,22 +1150,22 @@ const Tt = "Imagery", St = "Data", os = ({ locale: e }) => {
|
|
|
1131
1150
|
d.id
|
|
1132
1151
|
)) })
|
|
1133
1152
|
] });
|
|
1134
|
-
},
|
|
1135
|
-
const [n, i] =
|
|
1136
|
-
|
|
1153
|
+
}, ls = ({ title: e, terrains: t }) => {
|
|
1154
|
+
const [n, i] = B(), o = ve();
|
|
1155
|
+
O(() => {
|
|
1137
1156
|
const l = t.find((d) => d.isCurrent);
|
|
1138
1157
|
l && i(l);
|
|
1139
1158
|
}, [t]);
|
|
1140
1159
|
const r = (l) => {
|
|
1141
1160
|
const d = t.find((h) => h.id === l);
|
|
1142
|
-
d && (o.terrainProvider = d.terrainProvider ?? new
|
|
1161
|
+
d && (o.terrainProvider = d.terrainProvider ?? new $n({}), i(d), t.forEach((h) => {
|
|
1143
1162
|
h.isCurrent = d === h;
|
|
1144
1163
|
}));
|
|
1145
1164
|
};
|
|
1146
1165
|
return /* @__PURE__ */ z(ge, { children: [
|
|
1147
|
-
/* @__PURE__ */
|
|
1148
|
-
/* @__PURE__ */
|
|
1149
|
-
|
|
1166
|
+
/* @__PURE__ */ a(Zt, { title: e }),
|
|
1167
|
+
/* @__PURE__ */ a(q, { className: "cesium-mc-choices", children: t.map((l) => /* @__PURE__ */ a(
|
|
1168
|
+
ri,
|
|
1150
1169
|
{
|
|
1151
1170
|
item: l,
|
|
1152
1171
|
isSelected: n === l,
|
|
@@ -1155,10 +1174,10 @@ const Tt = "Imagery", St = "Data", os = ({ locale: e }) => {
|
|
|
1155
1174
|
l.id
|
|
1156
1175
|
)) })
|
|
1157
1176
|
] });
|
|
1158
|
-
},
|
|
1159
|
-
const [
|
|
1177
|
+
}, ds = ({ baseMaps: e, terrains: t, locale: n, isOpen: i, setIsOpen: o }) => {
|
|
1178
|
+
const [r, l] = B(), d = ae(() => ee(n, "BASE_MAP_TITLE") ?? "Base Map", [n]), h = ae(() => ee(n, "TERRAIN_TITLE") ?? "Terrain", [n]);
|
|
1160
1179
|
return /* @__PURE__ */ z(ge, { children: [
|
|
1161
|
-
/* @__PURE__ */
|
|
1180
|
+
/* @__PURE__ */ a(mt, { onClick: () => o(!i), children: /* @__PURE__ */ a(
|
|
1162
1181
|
"img",
|
|
1163
1182
|
{
|
|
1164
1183
|
className: "cesium-baseLayerPicker-selected",
|
|
@@ -1167,27 +1186,27 @@ const Tt = "Imagery", St = "Data", os = ({ locale: e }) => {
|
|
|
1167
1186
|
alt: "Current Map"
|
|
1168
1187
|
}
|
|
1169
1188
|
) }),
|
|
1170
|
-
/* @__PURE__ */ z(
|
|
1171
|
-
e && /* @__PURE__ */
|
|
1172
|
-
t && /* @__PURE__ */
|
|
1189
|
+
/* @__PURE__ */ z(Xt, { isVisible: i, children: [
|
|
1190
|
+
e && /* @__PURE__ */ a(cs, { title: d, baseMaps: e, setCurrent: l }),
|
|
1191
|
+
t && /* @__PURE__ */ a(ls, { title: h, terrains: t })
|
|
1173
1192
|
] })
|
|
1174
1193
|
] });
|
|
1175
|
-
};
|
|
1176
|
-
const
|
|
1177
|
-
const n = ae(() =>
|
|
1178
|
-
/* @__PURE__ */
|
|
1194
|
+
}, us = Kt(ds);
|
|
1195
|
+
const hs = ({ featureTypes: e, locale: t }) => {
|
|
1196
|
+
const n = ae(() => ee(t, "WFS_TITLE") ?? "Data Layers", [t]), i = ae(() => ee(t, "WFS_CACHE") ?? "Cache", [t]), o = ae(() => ee(t, "WFS_EXTENT") ?? "Extent", [t]), r = ae(() => ee(t, "NO_DATA_LAYERS") ?? "No layers found", [t]), l = ae(() => /* @__PURE__ */ a(q, { className: "title", children: n }), [n]), d = ae(() => /* @__PURE__ */ a(ge, { children: e.length > 0 ? e.map((h, f) => /* @__PURE__ */ z(q, { className: "featureType", children: [
|
|
1197
|
+
/* @__PURE__ */ a(We, { content: `${h.featureStructure.aliasLayerName} ${h.id} (${String(h.zoomLevel)})`, children: /* @__PURE__ */ z(q, { className: `name ${h.currentZoomLevel < h.zoomLevel ? "warning blinking" : h.total === -1 ? "error blinking" : ""}`, children: [
|
|
1179
1198
|
h.featureStructure.aliasLayerName,
|
|
1180
1199
|
" (",
|
|
1181
1200
|
String(h.zoomLevel),
|
|
1182
1201
|
"):"
|
|
1183
1202
|
] }) }),
|
|
1184
|
-
/* @__PURE__ */ z(
|
|
1185
|
-
/* @__PURE__ */ z(
|
|
1203
|
+
/* @__PURE__ */ z(q, { className: "info", children: [
|
|
1204
|
+
/* @__PURE__ */ z(q, { children: [
|
|
1186
1205
|
i,
|
|
1187
1206
|
": ",
|
|
1188
1207
|
h.cache ?? 0
|
|
1189
1208
|
] }),
|
|
1190
|
-
h.total > 0 && /* @__PURE__ */ z(
|
|
1209
|
+
h.total > 0 && /* @__PURE__ */ z(q, { className: "spacer", children: [
|
|
1191
1210
|
o,
|
|
1192
1211
|
": ",
|
|
1193
1212
|
h.items,
|
|
@@ -1195,15 +1214,15 @@ const ds = ({ featureTypes: e, locale: t }) => {
|
|
|
1195
1214
|
h.total
|
|
1196
1215
|
] })
|
|
1197
1216
|
] })
|
|
1198
|
-
] }, f)) : /* @__PURE__ */
|
|
1199
|
-
return /* @__PURE__ */ z(
|
|
1217
|
+
] }, f)) : /* @__PURE__ */ a(q, { children: r }) }), [e]);
|
|
1218
|
+
return /* @__PURE__ */ z(q, { className: "wfsContainer", children: [
|
|
1200
1219
|
l,
|
|
1201
1220
|
d
|
|
1202
1221
|
] });
|
|
1203
|
-
},
|
|
1222
|
+
}, ms = ({ locale: e, isOpen: t, setIsOpen: n }) => {
|
|
1204
1223
|
var d;
|
|
1205
|
-
const [
|
|
1206
|
-
return
|
|
1224
|
+
const [i, o] = B([]), r = ae(() => ee(e, "DEBUG_PANEL_TITLE") ?? "Debugger Tool", [e]), l = ve();
|
|
1225
|
+
return O(() => {
|
|
1207
1226
|
if (!l.layersManager)
|
|
1208
1227
|
return;
|
|
1209
1228
|
const h = (f, C) => {
|
|
@@ -1213,11 +1232,11 @@ const ds = ({ featureTypes: e, locale: t }) => {
|
|
|
1213
1232
|
return;
|
|
1214
1233
|
const { options: _, meta: v } = g, { zoomLevel: k } = _, { id: G, items: $, total: j, cache: N, currentZoomLevel: Z, featureStructure: V } = v;
|
|
1215
1234
|
o((Y) => {
|
|
1216
|
-
const
|
|
1217
|
-
if (
|
|
1218
|
-
if (JSON.stringify(Y[
|
|
1219
|
-
const
|
|
1220
|
-
return
|
|
1235
|
+
const J = Y.findIndex((s) => s.id === G);
|
|
1236
|
+
if (J >= 0) {
|
|
1237
|
+
if (JSON.stringify(Y[J]) !== JSON.stringify({ id: G, items: $, total: j, cache: N, currentZoomLevel: Z, featureStructure: V, zoomLevel: k })) {
|
|
1238
|
+
const s = [...Y];
|
|
1239
|
+
return s[J] = { id: G, items: $, total: j, cache: N, currentZoomLevel: Z, featureStructure: V, zoomLevel: k }, s;
|
|
1221
1240
|
}
|
|
1222
1241
|
} else
|
|
1223
1242
|
return [...Y, { id: G, items: $, total: j, cache: N, currentZoomLevel: Z, featureStructure: V, zoomLevel: k }];
|
|
@@ -1232,57 +1251,57 @@ const ds = ({ featureTypes: e, locale: t }) => {
|
|
|
1232
1251
|
(f = l.layersManager) == null || f.removeDataLayerUpdatedListener(h);
|
|
1233
1252
|
};
|
|
1234
1253
|
}, [(d = l.layersManager) == null ? void 0 : d.dataLayerList]), /* @__PURE__ */ z(ge, { children: [
|
|
1235
|
-
/* @__PURE__ */
|
|
1236
|
-
/* @__PURE__ */
|
|
1254
|
+
/* @__PURE__ */ a(mt, { onClick: () => n(!t), children: /* @__PURE__ */ a("svg", { width: "100%", height: "100%", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { d: "M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z", fill: "orange" }) }) }),
|
|
1255
|
+
/* @__PURE__ */ a(Xt, { isVisible: t, title: r, children: /* @__PURE__ */ a(hs, { featureTypes: i, locale: e }) })
|
|
1237
1256
|
] });
|
|
1238
|
-
};
|
|
1239
|
-
class
|
|
1257
|
+
}, ps = Kt(ms);
|
|
1258
|
+
class il extends Sr {
|
|
1240
1259
|
}
|
|
1241
|
-
class
|
|
1260
|
+
class rl extends _r {
|
|
1242
1261
|
}
|
|
1243
|
-
class
|
|
1262
|
+
class ol extends Mr {
|
|
1244
1263
|
}
|
|
1245
|
-
class
|
|
1264
|
+
class sl extends Ie {
|
|
1246
1265
|
}
|
|
1247
|
-
class
|
|
1266
|
+
class al extends Se {
|
|
1248
1267
|
}
|
|
1249
|
-
class
|
|
1268
|
+
class gs extends Oe {
|
|
1250
1269
|
}
|
|
1251
|
-
class
|
|
1270
|
+
class cl extends jn {
|
|
1252
1271
|
}
|
|
1253
|
-
class
|
|
1272
|
+
class ll extends Wt {
|
|
1254
1273
|
}
|
|
1255
|
-
class
|
|
1274
|
+
class dl extends Ir {
|
|
1256
1275
|
}
|
|
1257
|
-
class
|
|
1276
|
+
class fs extends Be {
|
|
1258
1277
|
}
|
|
1259
|
-
class
|
|
1278
|
+
class ul extends Pr {
|
|
1260
1279
|
}
|
|
1261
|
-
class
|
|
1280
|
+
class hl extends $n {
|
|
1262
1281
|
}
|
|
1263
|
-
class
|
|
1282
|
+
class ml extends xr {
|
|
1264
1283
|
}
|
|
1265
|
-
class
|
|
1284
|
+
class pl extends Yn {
|
|
1266
1285
|
}
|
|
1267
|
-
class
|
|
1286
|
+
class gl extends Ye {
|
|
1268
1287
|
}
|
|
1269
|
-
class
|
|
1288
|
+
class fl extends Ar {
|
|
1270
1289
|
}
|
|
1271
|
-
class
|
|
1290
|
+
class yl extends Rt {
|
|
1272
1291
|
}
|
|
1273
|
-
class
|
|
1292
|
+
class vl extends Ge {
|
|
1274
1293
|
}
|
|
1275
|
-
class
|
|
1294
|
+
class wl extends Zn {
|
|
1276
1295
|
}
|
|
1277
|
-
class
|
|
1296
|
+
class El extends Rr {
|
|
1278
1297
|
}
|
|
1279
|
-
const
|
|
1298
|
+
const Ll = st, Cl = Dr, _t = Fe, bl = Xn, Tl = Dt, xe = document.createElement("canvas"), Ce = xe.getContext("2d"), Ln = (e) => {
|
|
1280
1299
|
const i = (e == null ? void 0 : e.data) ?? [];
|
|
1281
1300
|
for (let o = 3; o < i.length; o += 4)
|
|
1282
1301
|
if (i[o] < 255)
|
|
1283
1302
|
return !0;
|
|
1284
1303
|
return !1;
|
|
1285
|
-
},
|
|
1304
|
+
}, ys = async (e, t) => (t && t.tileTransparencyCheckedCounter++, new Promise((n, i) => {
|
|
1286
1305
|
try {
|
|
1287
1306
|
Ce == null || Ce.clearRect(0, 0, xe.width, xe.height);
|
|
1288
1307
|
let o;
|
|
@@ -1306,33 +1325,33 @@ const yl = st, vl = Rr, _t = Fe, wl = Yn, El = Ot, xe = document.createElement("
|
|
|
1306
1325
|
})), it = (e, t) => {
|
|
1307
1326
|
const { west: n, east: i, north: o, south: r } = e, { west: l, east: d, north: h, south: f } = t;
|
|
1308
1327
|
return n >= l && i <= d && o <= h && r >= f;
|
|
1309
|
-
},
|
|
1328
|
+
}, vs = (e, t) => qr(e, ut(t)), ws = (e) => {
|
|
1310
1329
|
const t = (ne.toDegrees(e.west) + ne.toDegrees(e.east)) / 2, n = (ne.toDegrees(e.south) + ne.toDegrees(e.north)) / 2;
|
|
1311
|
-
return
|
|
1312
|
-
},
|
|
1330
|
+
return Kr([t, n]);
|
|
1331
|
+
}, oi = (e) => [
|
|
1313
1332
|
ne.toDegrees(e.west),
|
|
1314
1333
|
ne.toDegrees(e.south),
|
|
1315
1334
|
ne.toDegrees(e.east),
|
|
1316
1335
|
ne.toDegrees(e.north)
|
|
1317
|
-
],
|
|
1336
|
+
], si = (e) => {
|
|
1318
1337
|
const t = e.scene;
|
|
1319
1338
|
let i = e.camera.computeViewRectangle(t.globe.ellipsoid);
|
|
1320
|
-
if (!
|
|
1339
|
+
if (!Ot(i) || !i) {
|
|
1321
1340
|
console.error("cesium native computeViewRectangle returned invalid rectangle, fallback to custom calculation ");
|
|
1322
1341
|
const o = new Ie(0, 0), r = t.camera.pickEllipsoid(o, t.globe.ellipsoid), l = new Ie(t.canvas.width, t.canvas.height), d = t.camera.pickEllipsoid(l, t.globe.ellipsoid), h = t.globe.ellipsoid.cartesianToCartographic(r), f = t.globe.ellipsoid.cartesianToCartographic(d);
|
|
1323
1342
|
i = new Be(h.longitude, f.latitude, f.longitude, h.latitude);
|
|
1324
1343
|
}
|
|
1325
1344
|
return i;
|
|
1326
|
-
},
|
|
1327
|
-
const n = e.scene, i = e.camera, o = n.mode, r =
|
|
1328
|
-
if (!
|
|
1345
|
+
}, Es = (e, t = 100) => {
|
|
1346
|
+
const n = e.scene, i = e.camera, o = n.mode, r = si(e);
|
|
1347
|
+
if (!Ot(r) || !r) {
|
|
1329
1348
|
console.error("customComputeViewRectangle returned invalid rectangle.");
|
|
1330
1349
|
return;
|
|
1331
1350
|
}
|
|
1332
1351
|
if (o === Fe.SCENE2D)
|
|
1333
1352
|
return r;
|
|
1334
1353
|
const l = i.positionCartographic;
|
|
1335
|
-
if (!
|
|
1354
|
+
if (!Ot(l)) {
|
|
1336
1355
|
console.error("Camera position is undefined in 3D mode.");
|
|
1337
1356
|
return;
|
|
1338
1357
|
}
|
|
@@ -1343,9 +1362,9 @@ const yl = st, vl = Rr, _t = Fe, wl = Yn, El = Ot, xe = document.createElement("
|
|
|
1343
1362
|
}
|
|
1344
1363
|
const f = 111320, C = 111320 * Math.cos(d);
|
|
1345
1364
|
let L = t / f, u = t / C;
|
|
1346
|
-
const g =
|
|
1365
|
+
const g = Se.magnitude(i.positionWC);
|
|
1347
1366
|
g > 1e7 && (L = 10, u = 10);
|
|
1348
|
-
const _ = i.frustum instanceof
|
|
1367
|
+
const _ = i.frustum instanceof Or ? i.frustum.fov : Math.PI / 3;
|
|
1349
1368
|
let v = 1;
|
|
1350
1369
|
g < 5e5 ? v = 0.05 : g < 2e6 && (v = 0.1), L *= v * (_ / Math.PI), u *= v * (_ / Math.PI);
|
|
1351
1370
|
const k = i.pitch;
|
|
@@ -1355,14 +1374,14 @@ const yl = st, vl = Rr, _t = Fe, wl = Yn, El = Ot, xe = document.createElement("
|
|
|
1355
1374
|
L *= $, u *= $;
|
|
1356
1375
|
const j = 5e-4;
|
|
1357
1376
|
L = Math.max(L, j), u = Math.max(u, j);
|
|
1358
|
-
const N = l.latitude - L, Z = l.latitude + L, V = l.longitude - u, Y = l.longitude + u,
|
|
1377
|
+
const N = l.latitude - L, Z = l.latitude + L, V = l.longitude - u, Y = l.longitude + u, J = ne.clamp(N, r.south, r.north), s = ne.clamp(Z, r.south, r.north), c = ne.clamp(V, r.west, r.east), b = ne.clamp(Y, r.west, r.east), p = Math.min(1, k / ne.PI_OVER_TWO), E = r.north - (r.north - r.south) * p, y = Math.min(s, E);
|
|
1359
1378
|
return new Be(
|
|
1360
1379
|
ne.negativePiToPi(c),
|
|
1361
|
-
ne.clamp(
|
|
1380
|
+
ne.clamp(J, -ne.PI_OVER_TWO, ne.PI_OVER_TWO),
|
|
1362
1381
|
ne.negativePiToPi(b),
|
|
1363
1382
|
ne.clamp(y, -ne.PI_OVER_TWO, ne.PI_OVER_TWO)
|
|
1364
1383
|
);
|
|
1365
|
-
},
|
|
1384
|
+
}, ai = (e, t, n, i, o, r) => {
|
|
1366
1385
|
const l = e.scene.mode === Fe.SCENE2D, d = (u) => {
|
|
1367
1386
|
var g;
|
|
1368
1387
|
if (u.polygon)
|
|
@@ -1379,25 +1398,25 @@ const yl = st, vl = Rr, _t = Fe, wl = Yn, El = Ot, xe = document.createElement("
|
|
|
1379
1398
|
})]
|
|
1380
1399
|
};
|
|
1381
1400
|
}, h = (u, g, _, v) => {
|
|
1382
|
-
const k =
|
|
1401
|
+
const k = Kn.wgs84ToWindowCoordinates(u, g);
|
|
1383
1402
|
if (!k)
|
|
1384
1403
|
return null;
|
|
1385
1404
|
const G = k.x + _, $ = k.y + v, j = new Ie(G, k.y), N = new Ie(k.x, $), Z = u.camera.pickEllipsoid(j, u.globe.ellipsoid), V = u.camera.pickEllipsoid(N, u.globe.ellipsoid);
|
|
1386
1405
|
if (!Z || !V)
|
|
1387
1406
|
return null;
|
|
1388
|
-
const Y =
|
|
1389
|
-
return { widthMeters: Y, heightMeters:
|
|
1407
|
+
const Y = Se.distance(g, Z), J = Se.distance(g, V);
|
|
1408
|
+
return { widthMeters: Y, heightMeters: J };
|
|
1390
1409
|
}, f = (u, g, _) => {
|
|
1391
|
-
const v =
|
|
1410
|
+
const v = Wt.WGS84, k = u.latitude, G = u.longitude, $ = Math.PI / 180 * v.maximumRadius, j = Math.PI / 180 * v.maximumRadius, N = _ / 2 / $, Z = g / 2 / j, V = k + N, Y = k - N, J = G + Z, s = G - Z;
|
|
1392
1411
|
return {
|
|
1393
1412
|
type: "Polygon",
|
|
1394
1413
|
coordinates: [
|
|
1395
1414
|
[
|
|
1396
|
-
[
|
|
1397
|
-
[
|
|
1398
|
-
[
|
|
1399
|
-
[
|
|
1400
|
-
[
|
|
1415
|
+
[s, V],
|
|
1416
|
+
[J, V],
|
|
1417
|
+
[J, Y],
|
|
1418
|
+
[s, Y],
|
|
1419
|
+
[s, V]
|
|
1401
1420
|
// close the ring
|
|
1402
1421
|
]
|
|
1403
1422
|
]
|
|
@@ -1412,24 +1431,24 @@ const yl = st, vl = Rr, _t = Fe, wl = Yn, El = Ot, xe = document.createElement("
|
|
|
1412
1431
|
try {
|
|
1413
1432
|
const v = ut(o), k = mn(d(u), v);
|
|
1414
1433
|
if (k) {
|
|
1415
|
-
const G = (g = u.properties) == null ? void 0 : g.label.getValue(Ye.now()), $ =
|
|
1434
|
+
const G = (g = u.properties) == null ? void 0 : g.label.getValue(Ye.now()), $ = Xr(k, {
|
|
1416
1435
|
properties: {
|
|
1417
1436
|
label: G
|
|
1418
1437
|
}
|
|
1419
|
-
}), j = { width: G.width, height: G.height }, [N, Z, V = 0] = $.geometry.coordinates, Y =
|
|
1420
|
-
if (
|
|
1421
|
-
const
|
|
1438
|
+
}), j = { width: G.width, height: G.height }, [N, Z, V = 0] = $.geometry.coordinates, Y = Se.fromDegrees(N, Z, V), J = h(e.scene, Y, j.width, j.height);
|
|
1439
|
+
if (J) {
|
|
1440
|
+
const s = f({ longitude: N, latitude: Z }, J.widthMeters, J.heightMeters), c = mn(k, {
|
|
1422
1441
|
type: "Feature",
|
|
1423
1442
|
properties: {},
|
|
1424
|
-
geometry:
|
|
1443
|
+
geometry: s
|
|
1425
1444
|
});
|
|
1426
|
-
C(c == null ? void 0 : c.geometry,
|
|
1445
|
+
C(c == null ? void 0 : c.geometry, s) > 0.7 && L.push($);
|
|
1427
1446
|
}
|
|
1428
1447
|
}
|
|
1429
1448
|
} catch {
|
|
1430
1449
|
console.log("*** Label placement failed: turf.intersect() failed ***", "entity -->", u, "extent -->", o);
|
|
1431
1450
|
}
|
|
1432
|
-
if (!(n.length > 0 && !n.some((v) => u.id.startsWith(v))) && (u.polygon && (u.polygon = new
|
|
1451
|
+
if (!(n.length > 0 && !n.some((v) => u.id.startsWith(v))) && (u.polygon && (u.polygon = new kr({
|
|
1433
1452
|
hierarchy: u.polygon.hierarchy,
|
|
1434
1453
|
material: l ? Ge.fromCssColorString(i).withAlpha(0.2) : Ge.fromCssColorString(i).withAlpha(0.5),
|
|
1435
1454
|
outline: !0,
|
|
@@ -1438,7 +1457,7 @@ const yl = st, vl = Rr, _t = Fe, wl = Yn, El = Ot, xe = document.createElement("
|
|
|
1438
1457
|
height: l ? 1e4 : void 0,
|
|
1439
1458
|
// Mount Everest peak reaches an elevation of approximately 8848.86 meters above sea level
|
|
1440
1459
|
perPositionHeight: !1
|
|
1441
|
-
})), u.polyline && (u.polyline = new
|
|
1460
|
+
})), u.polyline && (u.polyline = new Yn({
|
|
1442
1461
|
positions: u.polyline.positions,
|
|
1443
1462
|
material: Ge.fromCssColorString(i).withAlpha(0.5),
|
|
1444
1463
|
clampToGround: !0,
|
|
@@ -1448,8 +1467,8 @@ const yl = st, vl = Rr, _t = Fe, wl = Yn, El = Ot, xe = document.createElement("
|
|
|
1448
1467
|
k.longitude,
|
|
1449
1468
|
k.latitude,
|
|
1450
1469
|
l ? 500 : e.scene.sampleHeight(Oe.fromCartesian(v))
|
|
1451
|
-
), $ =
|
|
1452
|
-
u.position = $, u.billboard = new
|
|
1470
|
+
), $ = Se.fromRadians(G.longitude, G.latitude, G.height), j = "#FFFF00";
|
|
1471
|
+
u.position = $, u.billboard = new Rt({
|
|
1453
1472
|
image: "data:image/svg+xml;base64," + btoa(`
|
|
1454
1473
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
|
|
1455
1474
|
<circle cx="8" cy="8" r="6" fill="${i}33" stroke="${j}80" stroke-width="2"/>
|
|
@@ -1457,23 +1476,23 @@ const yl = st, vl = Rr, _t = Fe, wl = Yn, El = Ot, xe = document.createElement("
|
|
|
1457
1476
|
`),
|
|
1458
1477
|
//${color}33 - with opacity 0.2 ; #FFFF0080 - with opacity 0.5
|
|
1459
1478
|
verticalOrigin: st.BOTTOM,
|
|
1460
|
-
heightReference:
|
|
1479
|
+
heightReference: Dt.NONE,
|
|
1461
1480
|
// Ensures it's not clamped and floats above
|
|
1462
1481
|
scale: 1,
|
|
1463
1482
|
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
1464
1483
|
});
|
|
1465
1484
|
}
|
|
1466
1485
|
}), e.dataSources.remove(e.dataSources.getByName(`${r == null ? void 0 : r.dataSourcePrefix}${t.name}`)[0]), r && l) {
|
|
1467
|
-
const u = new
|
|
1486
|
+
const u = new zt(`${r == null ? void 0 : r.dataSourcePrefix}${t.name}`);
|
|
1468
1487
|
e.dataSources.add(u), u.load({
|
|
1469
1488
|
type: "FeatureCollection",
|
|
1470
1489
|
features: L
|
|
1471
1490
|
}).then((g) => {
|
|
1472
1491
|
g == null || g.entities.values.forEach((_) => {
|
|
1473
1492
|
var v;
|
|
1474
|
-
_.billboard = new
|
|
1493
|
+
_.billboard = new Rt({
|
|
1475
1494
|
image: (v = _.properties) == null ? void 0 : v.label.getValue(Ye.now()).dataURL,
|
|
1476
|
-
heightReference:
|
|
1495
|
+
heightReference: Dt.NONE,
|
|
1477
1496
|
// Ensures it's not clamped and floats above
|
|
1478
1497
|
scale: 1,
|
|
1479
1498
|
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
@@ -1481,23 +1500,23 @@ const yl = st, vl = Rr, _t = Fe, wl = Yn, El = Ot, xe = document.createElement("
|
|
|
1481
1500
|
});
|
|
1482
1501
|
});
|
|
1483
1502
|
}
|
|
1484
|
-
},
|
|
1485
|
-
const
|
|
1486
|
-
const i = ve(), o =
|
|
1487
|
-
/* @__PURE__ */
|
|
1488
|
-
/* @__PURE__ */
|
|
1503
|
+
}, Ls = 0.2, Cs = (e, t = Ls) => e.width === 0 ? (e.east = e.east + 1e-4 * t, e.west = e.west - 1e-4 * t, e.south = e.south - 1e-4 * t, e.north = e.north + 1e-4 * t, e) : (e.east = e.east + e.width * t, e.west = e.west - e.width * t, e.south = e.south - e.height * t, e.north = e.north + e.height * t, e);
|
|
1504
|
+
const bs = ({ options: e, isOpen: t, locale: n }) => {
|
|
1505
|
+
const i = ve(), o = Te(void 0), r = Te(null), [l, d] = B(""), [h, f] = B(!1), [C, L] = B(!0), [u, g] = B(), [_, v] = B(), k = ae(() => ee(n, "SHOW_FEATURE_ON_MAP") ?? "Show on map", [n]), G = ae(() => ee(n, "IN_MAP_EXTENT") ?? "Search in extent", [n]), $ = ae(() => ee(n, "SEARCH_PLACEHOLDER") ?? "Search...", [n]), j = ae(() => ee(n, "NO_RESULTS") ?? "No Results", [n]), N = ae(() => i.scene.mode === Fe.SCENE2D ? !1 : (f(!1), !0), [i.scene.mode]), Z = 300, V = /* @__PURE__ */ a("svg", { width: "16px", height: "16px", viewBox: "0 0 16 16", children: /* @__PURE__ */ a("rect", { x: "0", y: "0", width: 16, height: 16, rx: "2", ry: "2", fill: "white", stroke: "#ccc", strokeWidth: 1 }) }), Y = /* @__PURE__ */ z("svg", { width: "16px", height: "16px", viewBox: "0 0 16 16", children: [
|
|
1506
|
+
/* @__PURE__ */ a("rect", { x: "0", y: "0", width: 16, height: 16, rx: "2", ry: "2", fill: "#1976d2", stroke: "#1976d2", strokeWidth: 1 }),
|
|
1507
|
+
/* @__PURE__ */ a("path", { d: "M4 8l2 2 6-6", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })
|
|
1489
1508
|
] });
|
|
1490
|
-
|
|
1509
|
+
O(() => {
|
|
1491
1510
|
e.forEach((m) => {
|
|
1492
1511
|
m.baseUrl && m.endPoint && !m.url && (m.url = m.baseUrl + m.endPoint);
|
|
1493
1512
|
});
|
|
1494
|
-
}, [e]),
|
|
1513
|
+
}, [e]), O(() => {
|
|
1495
1514
|
t && r.current && r.current.focus();
|
|
1496
|
-
}, [t]),
|
|
1515
|
+
}, [t]), O(() => {
|
|
1497
1516
|
if (!i)
|
|
1498
1517
|
return;
|
|
1499
1518
|
if (!o.current) {
|
|
1500
|
-
const w = new
|
|
1519
|
+
const w = new zt("geocoderDataSource");
|
|
1501
1520
|
o.current = w, i.dataSources.add(w);
|
|
1502
1521
|
}
|
|
1503
1522
|
const m = o.current;
|
|
@@ -1506,10 +1525,10 @@ const Es = ({ options: e, isOpen: t, locale: n }) => {
|
|
|
1506
1525
|
type: "FeatureCollection",
|
|
1507
1526
|
features: [_]
|
|
1508
1527
|
};
|
|
1509
|
-
await m.load(x),
|
|
1528
|
+
await m.load(x), ai(i, m, [], "#01FF1F");
|
|
1510
1529
|
})() : m.entities.removeAll();
|
|
1511
1530
|
}, [i, C, _]);
|
|
1512
|
-
const
|
|
1531
|
+
const J = (m) => {
|
|
1513
1532
|
switch (typeof m) {
|
|
1514
1533
|
case "object":
|
|
1515
1534
|
return Array.isArray(m) ? `[${m.map((w) => `'${w}'`).join(", ")}]` : JSON.stringify(m);
|
|
@@ -1520,30 +1539,30 @@ const Es = ({ options: e, isOpen: t, locale: n }) => {
|
|
|
1520
1539
|
case "undefined":
|
|
1521
1540
|
return;
|
|
1522
1541
|
}
|
|
1523
|
-
},
|
|
1524
|
-
const R =
|
|
1542
|
+
}, s = (m, w, x) => {
|
|
1543
|
+
const R = J(x);
|
|
1525
1544
|
if (R) {
|
|
1526
1545
|
const M = m.includes("?") ? m.endsWith("?") || m.endsWith("&") ? "" : "&" : "?";
|
|
1527
1546
|
return `${m}${M}${encodeURIComponent(w)}=${encodeURIComponent(R)}`;
|
|
1528
1547
|
}
|
|
1529
1548
|
return m;
|
|
1530
1549
|
}, c = (m, w) => (m && m.forEach((x) => {
|
|
1531
|
-
w =
|
|
1550
|
+
w = s(w, x[0], x[1]);
|
|
1532
1551
|
}), w), b = Le(
|
|
1533
1552
|
(m, w, x, R) => ((() => {
|
|
1534
|
-
const P = w.dynamic.queryText, D = typeof P == "string" ? P : P.name,
|
|
1535
|
-
if (m =
|
|
1536
|
-
m =
|
|
1553
|
+
const P = w.dynamic.queryText, D = typeof P == "string" ? P : P.name, Q = typeof P == "string" ? void 0 : P.relatedParams;
|
|
1554
|
+
if (m = s(m, D, x), Q && Q.forEach((te) => {
|
|
1555
|
+
m = s(m, te[0], te[1]);
|
|
1537
1556
|
}), R) {
|
|
1538
|
-
const te =
|
|
1539
|
-
if (te &&
|
|
1540
|
-
const re =
|
|
1557
|
+
const te = si(i), U = w.dynamic.geoContext, K = typeof U == "string" ? U : U == null ? void 0 : U.name;
|
|
1558
|
+
if (te && K) {
|
|
1559
|
+
const re = oi(te), he = {
|
|
1541
1560
|
bbox: [re[0], re[1], re[2], re[3]]
|
|
1542
1561
|
};
|
|
1543
|
-
m =
|
|
1562
|
+
m = s(m, K, he);
|
|
1544
1563
|
const we = typeof U == "string" || U == null ? void 0 : U.relatedParams;
|
|
1545
1564
|
we && we.forEach((oe) => {
|
|
1546
|
-
m =
|
|
1565
|
+
m = s(m, oe[0], oe[1]);
|
|
1547
1566
|
});
|
|
1548
1567
|
}
|
|
1549
1568
|
}
|
|
@@ -1566,9 +1585,9 @@ const Es = ({ options: e, isOpen: t, locale: n }) => {
|
|
|
1566
1585
|
});
|
|
1567
1586
|
}), R = await Promise.all(x), M = await Promise.all(
|
|
1568
1587
|
R.filter((P) => P !== void 0).map(async (P) => {
|
|
1569
|
-
var
|
|
1588
|
+
var Q;
|
|
1570
1589
|
const D = await P.json();
|
|
1571
|
-
return D.features = (
|
|
1590
|
+
return D.features = (Q = D.features) == null ? void 0 : Q.map((te) => ({
|
|
1572
1591
|
...te,
|
|
1573
1592
|
properties: {
|
|
1574
1593
|
...te.properties,
|
|
@@ -1583,37 +1602,37 @@ const Es = ({ options: e, isOpen: t, locale: n }) => {
|
|
|
1583
1602
|
})
|
|
1584
1603
|
);
|
|
1585
1604
|
g(M);
|
|
1586
|
-
}, [b, e]), E = ae(() =>
|
|
1605
|
+
}, [b, e]), E = ae(() => jr((m, w) => {
|
|
1587
1606
|
p(m, w);
|
|
1588
1607
|
}, Z), [p]);
|
|
1589
|
-
|
|
1608
|
+
O(() => () => E.cancel(), [E]);
|
|
1590
1609
|
const y = (m, w) => {
|
|
1591
1610
|
d(m), E(m, w);
|
|
1592
1611
|
};
|
|
1593
|
-
|
|
1612
|
+
O(() => {
|
|
1594
1613
|
p(l, h);
|
|
1595
1614
|
}, [h]);
|
|
1596
1615
|
const S = (m) => {
|
|
1597
|
-
const w =
|
|
1616
|
+
const w = Zr(m);
|
|
1598
1617
|
let x;
|
|
1599
1618
|
switch (w) {
|
|
1600
1619
|
case "Point":
|
|
1601
|
-
x = /* @__PURE__ */
|
|
1620
|
+
x = /* @__PURE__ */ a("svg", { width: "18px", height: "18px", viewBox: "0 0 24 24", fill: "var(--mdc-theme-cesium-color)", children: /* @__PURE__ */ a("path", { d: "M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7.94-7.94H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z" }) });
|
|
1602
1621
|
break;
|
|
1603
1622
|
case "LineString":
|
|
1604
1623
|
x = /* @__PURE__ */ z("svg", { width: "18px", height: "18px", viewBox: "0 0 24 24", children: [
|
|
1605
|
-
/* @__PURE__ */
|
|
1606
|
-
/* @__PURE__ */
|
|
1624
|
+
/* @__PURE__ */ a("path", { fill: "var(--mdc-theme-cesium-color)", stroke: "var(--mdc-theme-cesium-color)", strokeWidth: 0.5, d: "M21 6h.046l-5.25 9h-.944L10 9.455V7H7v2.926L1.862 18H0v3h3v-2.926L8.138 10h1.01L14 15.545V18h3v-3h-.046l5.25-9H24V3h-3zM8 8h1v1H8zM2 20H1v-1h1zm14-3h-1v-1h1zm7-13v1h-1V4z" }),
|
|
1625
|
+
/* @__PURE__ */ a("path", { fill: "none", d: "M0 0h24v24H0z" })
|
|
1607
1626
|
] });
|
|
1608
1627
|
break;
|
|
1609
1628
|
default:
|
|
1610
|
-
x = /* @__PURE__ */
|
|
1629
|
+
x = /* @__PURE__ */ a("svg", { width: "18px", height: "18px", viewBox: "0 0 24 24", fill: "none", stroke: "var(--mdc-theme-cesium-color)", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ a("path", { d: "M11 4 L20 14 L20 20 L4 20 L4 10 Z" }) });
|
|
1611
1630
|
break;
|
|
1612
1631
|
}
|
|
1613
|
-
return /* @__PURE__ */
|
|
1632
|
+
return /* @__PURE__ */ a(q, { children: x });
|
|
1614
1633
|
};
|
|
1615
|
-
return /* @__PURE__ */
|
|
1616
|
-
/* @__PURE__ */
|
|
1634
|
+
return /* @__PURE__ */ a(q, { className: "geocoderContainer", children: /* @__PURE__ */ z(q, { className: "geocoderForm", children: [
|
|
1635
|
+
/* @__PURE__ */ a(
|
|
1617
1636
|
Qe,
|
|
1618
1637
|
{
|
|
1619
1638
|
id: "geocoderTextField",
|
|
@@ -1625,10 +1644,10 @@ const Es = ({ options: e, isOpen: t, locale: n }) => {
|
|
|
1625
1644
|
autoComplete: "off"
|
|
1626
1645
|
}
|
|
1627
1646
|
),
|
|
1628
|
-
/* @__PURE__ */ z(
|
|
1629
|
-
/* @__PURE__ */ z(
|
|
1630
|
-
/* @__PURE__ */
|
|
1631
|
-
|
|
1647
|
+
/* @__PURE__ */ z(q, { className: "search-results", children: [
|
|
1648
|
+
/* @__PURE__ */ z(q, { className: "checkboxesContainer", children: [
|
|
1649
|
+
/* @__PURE__ */ a(
|
|
1650
|
+
At,
|
|
1632
1651
|
{
|
|
1633
1652
|
className: "checkboxElement",
|
|
1634
1653
|
label: k,
|
|
@@ -1640,11 +1659,11 @@ const Es = ({ options: e, isOpen: t, locale: n }) => {
|
|
|
1640
1659
|
}
|
|
1641
1660
|
}
|
|
1642
1661
|
),
|
|
1643
|
-
/* @__PURE__ */
|
|
1644
|
-
|
|
1662
|
+
/* @__PURE__ */ a(
|
|
1663
|
+
At,
|
|
1645
1664
|
{
|
|
1646
1665
|
className: "checkboxElement",
|
|
1647
|
-
label: /* @__PURE__ */
|
|
1666
|
+
label: /* @__PURE__ */ a(xt, { tag: "span", className: N ? "disabled" : "", children: G }),
|
|
1648
1667
|
checked: h,
|
|
1649
1668
|
icon: V,
|
|
1650
1669
|
checkedicon: Y,
|
|
@@ -1655,42 +1674,39 @@ const Es = ({ options: e, isOpen: t, locale: n }) => {
|
|
|
1655
1674
|
}
|
|
1656
1675
|
)
|
|
1657
1676
|
] }),
|
|
1658
|
-
/* @__PURE__ */
|
|
1659
|
-
/* @__PURE__ */
|
|
1660
|
-
/* @__PURE__ */
|
|
1661
|
-
var D,
|
|
1662
|
-
const x = (
|
|
1677
|
+
/* @__PURE__ */ a(q, { className: "listsContainer", children: e.map((m, w) => /* @__PURE__ */ z(Ai, { children: [
|
|
1678
|
+
/* @__PURE__ */ a(xt, { className: "bold", tag: "span", children: m.title ?? m.endPoint }),
|
|
1679
|
+
/* @__PURE__ */ a(q, { className: "listContainer", children: (() => {
|
|
1680
|
+
var D, Q, te, U, K, re, he, we;
|
|
1681
|
+
const x = (Q = (D = u == null ? void 0 : u[w]) == null ? void 0 : D.body) == null ? void 0 : Q.features, R = (K = (U = (te = u == null ? void 0 : u[w]) == null ? void 0 : te.body) == null ? void 0 : U.features) == null ? void 0 : K.length, M = (he = (re = u == null ? void 0 : u[w]) == null ? void 0 : re.body) == null ? void 0 : he.message, P = (we = u == null ? void 0 : u[w]) == null ? void 0 : we.status;
|
|
1663
1682
|
return R ? x.map((oe, pe) => {
|
|
1664
1683
|
var I, A, F, H, W;
|
|
1665
|
-
return /* @__PURE__ */
|
|
1666
|
-
|
|
1684
|
+
return /* @__PURE__ */ a(
|
|
1685
|
+
Ri,
|
|
1667
1686
|
{
|
|
1668
1687
|
className: _ === oe ? "mdc-ripple-upgraded--background-focused" : "",
|
|
1669
1688
|
onClick: () => {
|
|
1670
1689
|
var X;
|
|
1671
1690
|
i.camera.flyTo({
|
|
1672
|
-
destination:
|
|
1691
|
+
destination: Cs(fs.fromDegrees(...dt(oe.geometry)))
|
|
1673
1692
|
}), v(oe), (X = m.callbackFunc) == null || X.call(m, oe, m, pe);
|
|
1674
1693
|
},
|
|
1675
|
-
children: /* @__PURE__ */ z(
|
|
1676
|
-
/* @__PURE__ */
|
|
1694
|
+
children: /* @__PURE__ */ z(q, { className: "queryItemResult", children: [
|
|
1695
|
+
/* @__PURE__ */ a(We, { content: (A = (I = oe == null ? void 0 : oe.properties) == null ? void 0 : I.names) == null ? void 0 : A.display, children: /* @__PURE__ */ a(q, { children: (W = (H = (F = oe == null ? void 0 : oe.properties) == null ? void 0 : F.names) == null ? void 0 : H.default) == null ? void 0 : W[0] }) }),
|
|
1677
1696
|
S(oe)
|
|
1678
1697
|
] })
|
|
1679
1698
|
},
|
|
1680
1699
|
`feature-${pe}`
|
|
1681
1700
|
);
|
|
1682
|
-
}) : R === 0 ? /* @__PURE__ */
|
|
1701
|
+
}) : R === 0 ? /* @__PURE__ */ a(yt, { className: "generalListItem queryNoResults", children: j }) : M ? /* @__PURE__ */ a(yt, { className: `generalListItem ${P === 400 ? "queryWarning" : "queryError"}`, children: M }) : /* @__PURE__ */ a(yt, { className: "generalListItem" });
|
|
1683
1702
|
})() })
|
|
1684
1703
|
] })) })
|
|
1685
1704
|
] })
|
|
1686
1705
|
] }) });
|
|
1687
|
-
},
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
/* @__PURE__ */ s(qt, { isVisible: n, children: /* @__PURE__ */ s(Es, { options: e, isOpen: n, locale: t }) })
|
|
1692
|
-
] });
|
|
1693
|
-
}, Cs = {
|
|
1706
|
+
}, Ts = ({ options: e, locale: t, isOpen: n, setIsOpen: i }) => /* @__PURE__ */ z(ge, { children: [
|
|
1707
|
+
/* @__PURE__ */ a(mt, { onClick: () => i(!n), children: /* @__PURE__ */ a("svg", { className: "cesium-svgPath-svg", width: "32", height: "32", fill: "var(--mdc-theme-cesium-color)", viewBox: "0 0 32 32", children: /* @__PURE__ */ a("path", { d: "M29.772,26.433l-7.126-7.126c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127L29.772,26.433zM7.203,13.885c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486c-0.007,3.58-2.905,6.476-6.484,6.484C10.106,20.361,7.209,17.465,7.203,13.885z" }) }) }),
|
|
1708
|
+
/* @__PURE__ */ a(Xt, { isVisible: n, children: /* @__PURE__ */ a(bs, { options: e, isOpen: n, locale: t }) })
|
|
1709
|
+
] }), Ss = Kt(Ts), _s = {
|
|
1694
1710
|
"BM-GOOGLE_TERRAIN-XYZ_LAYER": "https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z}",
|
|
1695
1711
|
"BM-INFRARED_RASTER-WMS_LAYER": "https://mesonet.agron.iastate.edu/cgi-bin/wms/goes/conus_ir.cgi?",
|
|
1696
1712
|
"BM-RADAR_RASTER-WMS_LAYER": "https://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?",
|
|
@@ -1698,8 +1714,8 @@ const Es = ({ options: e, isOpen: t, locale: n }) => {
|
|
|
1698
1714
|
"BM-VECTOR_TILES-XYZ_LAYER": "https://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey=6170aad10dfd42a38d4d8c709a536f38",
|
|
1699
1715
|
"BM-WMTS_POPULATION_TILES-WMTS_LAYER": "https://services.arcgisonline.com/arcgis/rest/services/Demographics/USA_Population_Density/MapServer/WMTS/",
|
|
1700
1716
|
"3D_MODEL": "https://3d.ofek-air.com/3d/Jeru_Old_City_Cesium/ACT/Jeru_Old_City_Cesium_ACT.json"
|
|
1701
|
-
},
|
|
1702
|
-
GLOBAL:
|
|
1717
|
+
}, Ms = {
|
|
1718
|
+
GLOBAL: _s,
|
|
1703
1719
|
"WFS Vector layer": {
|
|
1704
1720
|
"3d_model": "https://tiles.mapcolonies.net/api/3d/v1/b3dm/32d542c1-b956-4579-91df-2a43b183d8b3/data/vricon.3dtiles/tileset.json?token=eyJhbGciOiJSUzI1NiIsImtpZCI6Im1hcC1jb2xvbmllcy1pbnQifQ.eyJhbyI6WyJodHRwczovL2FwcC1pbnQtY2xpZW50LXJvdXRlLWludGVncmF0aW9uLmFwcHMuajFsazNuanAuZWFzdHVzLmFyb2FwcC5pbyIsImh0dHBzOi8vYXBwLWludC1jbGllbnQtdG9vbHMtcm91dGUtaW50ZWdyYXRpb24uYXBwcy5qMWxrM25qcC5lYXN0dXMuYXJvYXBwLmlvIiwiaHR0cDovL2xvY2FsaG9zdDozMDAwIl0sImQiOlsicmFzdGVyIiwicmFzdGVyV21zIiwicmFzdGVyRXhwb3J0IiwiZGVtIiwidmVjdG9yIiwiM2QiXSwiaWF0IjoxNjc0NjMyMzQ2LCJzdWIiOiJtYXBjb2xvbmllcy1hcHAiLCJpc3MiOiJtYXBjb2xvbmllcy10b2tlbi1jbGkifQ.e-4SmHNOE8FwpcJoHdp-3Dh6D8GqCwM5wZfZIPrivGhfeKdihcsjEj_WN2jWN-ULha_ytZN5gRusLjwikNwgbF6hvb-QTDe3bEHPAjtgpZmF4HaJze8e6VPDF1tTC52CHDzNnwkUGAH1tnVGq10SnyhsGDezUChTVeBeVu-swTI58qCjemUQRw7-Q03uSEH24AkbX2CC1_rNwulo7ChglyTdn01tTWPsPjIuDjeixxm2CUmUHpfZzroaSzwof7ByQe22o3tFddje6ItNLBUC_VN7UfNLa_QPSVbIuNac-iMGFbK-RIyXUK8mp1AwddvSGsBUYcDs8fWMLzKhItljnw",
|
|
1705
1721
|
vector_geoserver: "http://geoserver-vector-dev.apps.j1lk3njp.eastus.aroapp.io/geoserver/core/ows"
|
|
@@ -1710,11 +1726,11 @@ const Es = ({ options: e, isOpen: t, locale: n }) => {
|
|
|
1710
1726
|
"WFS PP layer": {
|
|
1711
1727
|
raster_pp_geoserver: "https://raster-serving-int-pp-geoserver-nginx-route-manual-integration.apps.j1lk3njp.eastus.aroapp.io/geoserver/wfs?token=eyJhbGciOiJSUzI1NiIsImtpZCI6Im1hcC1jb2xvbmllcy1pbnQifQ.eyJkIjpbInJhc3RlciIsInJhc3RlcldtcyIsInJhc3RlckV4cG9ydCIsImRlbSIsInZlY3RvciIsIjNkIl0sImlhdCI6MTY3NDYzMjM0Niwic3ViIjoibWFwY29sb25pZXMtYXBwIiwiaXNzIjoibWFwY29sb25pZXMtdG9rZW4tY2xpIn0.D1u28gFlxf_Z1bzIiRHZonUgrdWwhZy8DtmQj15cIzaABRUrGV2n_OJlgWTuNfrao0SbUZb_s0_qUUW6Gz_zO3ET2bVx5xQjBu0CaIWdmUPDjEYr6tw-eZx8EjFFIyq3rs-Fo0daVY9cX1B2aGW_GeJir1oMnJUURhABYRoh60azzl_utee9UdhDpnr_QElNtzJZIKogngsxCWp7tI7wkTuNCBaQM7aLEcymk0ktxlWEAt1E0nGt1R-bx-HnPeeQyZlxx4UQ1nuYTijpz7N8poaCCExOFeafj9T7megv2BzTrKWgfM1eai8srSgNa3I5wKuW0EyYnGZxdbJe8aseZg"
|
|
1712
1728
|
}
|
|
1713
|
-
}, Ae = (e, t) =>
|
|
1729
|
+
}, Ae = (e, t) => Ms[e][t], Is = Ae("GLOBAL", "DEFAULT_TERRAIN_PROVIDER_URL");
|
|
1714
1730
|
Ae("GLOBAL", "TERRAIN_SRTM100");
|
|
1715
1731
|
Ae("GLOBAL", "TERRAIN_COMBINED");
|
|
1716
1732
|
Ae("GLOBAL", "BM-GOOGLE_TERRAIN-XYZ_LAYER"), Ae("GLOBAL", "BM-INFRARED_RASTER-WMS_LAYER"), Ae("GLOBAL", "BM-RADAR_RASTER-WMS_LAYER"), Ae("GLOBAL", "BM-GOOGLE_TERRAIN-XYZ_LAYER"), Ae("GLOBAL", "BM-VECTOR_TILES_GPS-XYZ_LAYER"), Ae("GLOBAL", "BM-VECTOR_TILES-XYZ_LAYER"), Ae("GLOBAL", "BM-VECTOR_TILES_GPS-XYZ_LAYER"), Ae("GLOBAL", "BM-WMTS_POPULATION_TILES-WMTS_LAYER");
|
|
1717
|
-
const
|
|
1733
|
+
const ci = (e, t, n) => {
|
|
1718
1734
|
let i;
|
|
1719
1735
|
if (e.scene.mode !== Fe.SCENE2D)
|
|
1720
1736
|
i = e.scene.pickPosition(new Ie(t, n));
|
|
@@ -1723,8 +1739,8 @@ const si = (e, t, n) => {
|
|
|
1723
1739
|
i = e.camera.pickEllipsoid(new Ie(t, n), o);
|
|
1724
1740
|
}
|
|
1725
1741
|
return Oe.fromCartesian(i);
|
|
1726
|
-
},
|
|
1727
|
-
const i =
|
|
1742
|
+
}, Ps = (e, t, n) => {
|
|
1743
|
+
const i = ci(e, t, n);
|
|
1728
1744
|
return {
|
|
1729
1745
|
type: "Feature",
|
|
1730
1746
|
properties: {},
|
|
@@ -1733,9 +1749,9 @@ const si = (e, t, n) => {
|
|
|
1733
1749
|
coordinates: [ne.toDegrees(i.longitude), ne.toDegrees(i.latitude)]
|
|
1734
1750
|
}
|
|
1735
1751
|
};
|
|
1736
|
-
},
|
|
1752
|
+
}, li = (e, t, n) => {
|
|
1737
1753
|
try {
|
|
1738
|
-
const i =
|
|
1754
|
+
const i = ci(e, t, n);
|
|
1739
1755
|
return {
|
|
1740
1756
|
longitude: ne.toDegrees(i.longitude),
|
|
1741
1757
|
latitude: ne.toDegrees(i.latitude)
|
|
@@ -1744,7 +1760,7 @@ const si = (e, t, n) => {
|
|
|
1744
1760
|
return;
|
|
1745
1761
|
}
|
|
1746
1762
|
}, pt = 3, at = "hasTransparency";
|
|
1747
|
-
function
|
|
1763
|
+
function qt(e, t, n, i, o) {
|
|
1748
1764
|
return setTimeout(() => {
|
|
1749
1765
|
var d;
|
|
1750
1766
|
const r = (d = this.layerListInstance.find(
|
|
@@ -1754,8 +1770,8 @@ function Kt(e, t, n, i, o) {
|
|
|
1754
1770
|
return ((f = h._imageryProvider._resource) == null ? void 0 : f._url) === ((C = this._resource) == null ? void 0 : C._url);
|
|
1755
1771
|
}
|
|
1756
1772
|
/* eslint-enable */
|
|
1757
|
-
)) == null ? void 0 : d.meta, l =
|
|
1758
|
-
this.tileTransparencyCheckedCounter < pt && !l &&
|
|
1773
|
+
)) == null ? void 0 : d.meta, l = ee(r, at) === !0;
|
|
1774
|
+
this.tileTransparencyCheckedCounter < pt && !l && ys(o == null ? void 0 : o.url, this).then((h) => {
|
|
1759
1775
|
var f;
|
|
1760
1776
|
(f = this.mapViewer.layersManager) == null || f.addMetaToLayer(
|
|
1761
1777
|
{ [at]: h },
|
|
@@ -1765,7 +1781,7 @@ function Kt(e, t, n, i, o) {
|
|
|
1765
1781
|
});
|
|
1766
1782
|
}, 0), e(t, n, i, o);
|
|
1767
1783
|
}
|
|
1768
|
-
class
|
|
1784
|
+
class di extends Ut {
|
|
1769
1785
|
constructor(n, i) {
|
|
1770
1786
|
var o;
|
|
1771
1787
|
super(n);
|
|
@@ -1776,10 +1792,10 @@ class ci extends $t {
|
|
|
1776
1792
|
this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
|
|
1777
1793
|
}
|
|
1778
1794
|
requestImage(n, i, o, r) {
|
|
1779
|
-
return
|
|
1795
|
+
return qt.call(this, super.requestImage.bind(this), n, i, o, r);
|
|
1780
1796
|
}
|
|
1781
1797
|
}
|
|
1782
|
-
class
|
|
1798
|
+
class ui extends $t {
|
|
1783
1799
|
constructor(n, i) {
|
|
1784
1800
|
var o;
|
|
1785
1801
|
super(n);
|
|
@@ -1790,10 +1806,10 @@ class li extends jt {
|
|
|
1790
1806
|
this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
|
|
1791
1807
|
}
|
|
1792
1808
|
requestImage(n, i, o, r) {
|
|
1793
|
-
return
|
|
1809
|
+
return qt.call(this, super.requestImage.bind(this), n, i, o, r);
|
|
1794
1810
|
}
|
|
1795
1811
|
}
|
|
1796
|
-
class
|
|
1812
|
+
class hi extends jt {
|
|
1797
1813
|
constructor(n, i) {
|
|
1798
1814
|
var o;
|
|
1799
1815
|
super(n);
|
|
@@ -1804,11 +1820,11 @@ class di extends Yt {
|
|
|
1804
1820
|
this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
|
|
1805
1821
|
}
|
|
1806
1822
|
requestImage(n, i, o, r) {
|
|
1807
|
-
return
|
|
1823
|
+
return qt.call(this, super.requestImage.bind(this), n, i, o, r);
|
|
1808
1824
|
}
|
|
1809
1825
|
}
|
|
1810
|
-
const
|
|
1811
|
-
class
|
|
1826
|
+
const xs = 1, As = -1, Cn = "TRANSPARENT_BASE_LAYER";
|
|
1827
|
+
class Rs {
|
|
1812
1828
|
constructor(t, n, i, o, r) {
|
|
1813
1829
|
ue(this, "mapViewer");
|
|
1814
1830
|
ue(this, "legendsList");
|
|
@@ -1839,7 +1855,7 @@ class Is {
|
|
|
1839
1855
|
return this.dataLayers;
|
|
1840
1856
|
}
|
|
1841
1857
|
isBaseMapLayer(t) {
|
|
1842
|
-
return !!
|
|
1858
|
+
return !!ee(t, "parentBasetMapId");
|
|
1843
1859
|
}
|
|
1844
1860
|
addDataLayer(t) {
|
|
1845
1861
|
this.dataLayers.push({ ...t }), this.dataLayerUpdated.raiseEvent(this.dataLayers);
|
|
@@ -1865,17 +1881,17 @@ class Is {
|
|
|
1865
1881
|
let o;
|
|
1866
1882
|
switch (t.type) {
|
|
1867
1883
|
case "XYZ_LAYER": {
|
|
1868
|
-
const r = t.options, l = this.shouldOptimizedTileRequests ? new
|
|
1884
|
+
const r = t.options, l = this.shouldOptimizedTileRequests ? new di(r, this.mapViewer) : new Ut(r);
|
|
1869
1885
|
o = this.mapViewer.imageryLayers.addImageryProvider(l, n);
|
|
1870
1886
|
break;
|
|
1871
1887
|
}
|
|
1872
1888
|
case "WMS_LAYER": {
|
|
1873
|
-
const r = t.options, l = this.shouldOptimizedTileRequests ? new
|
|
1889
|
+
const r = t.options, l = this.shouldOptimizedTileRequests ? new ui(r, this.mapViewer) : new $t(r);
|
|
1874
1890
|
o = this.mapViewer.imageryLayers.addImageryProvider(l, n);
|
|
1875
1891
|
break;
|
|
1876
1892
|
}
|
|
1877
1893
|
case "WMTS_LAYER": {
|
|
1878
|
-
const r = t.options, l = this.shouldOptimizedTileRequests ? new
|
|
1894
|
+
const r = t.options, l = this.shouldOptimizedTileRequests ? new hi(r, this.mapViewer) : new jt(r);
|
|
1879
1895
|
o = this.mapViewer.imageryLayers.addImageryProvider(l, n);
|
|
1880
1896
|
break;
|
|
1881
1897
|
}
|
|
@@ -1902,7 +1918,7 @@ class Is {
|
|
|
1902
1918
|
});
|
|
1903
1919
|
}
|
|
1904
1920
|
removeNotBaseMapLayers() {
|
|
1905
|
-
this.layers.filter((n) => !
|
|
1921
|
+
this.layers.filter((n) => !ee(n.meta, "parentBasetMapId")).forEach((n) => {
|
|
1906
1922
|
this.mapViewer.imageryLayers.remove(n, !0);
|
|
1907
1923
|
});
|
|
1908
1924
|
}
|
|
@@ -1936,7 +1952,7 @@ class Is {
|
|
|
1936
1952
|
i !== void 0 && (i.show = n);
|
|
1937
1953
|
}
|
|
1938
1954
|
showAllNotBase(t) {
|
|
1939
|
-
this.layers.filter((i) => !
|
|
1955
|
+
this.layers.filter((i) => !ee(i.meta, "parentBasetMapId")).forEach((i) => {
|
|
1940
1956
|
var o;
|
|
1941
1957
|
this.show((o = i.meta) == null ? void 0 : o.id, t);
|
|
1942
1958
|
});
|
|
@@ -1949,14 +1965,14 @@ class Is {
|
|
|
1949
1965
|
var o;
|
|
1950
1966
|
const n = this.mapViewer.camera.getPickRay(t);
|
|
1951
1967
|
let i;
|
|
1952
|
-
return n && (i = (o = this.mapViewer.imageryLayers.pickImageryLayers(n, this.mapViewer.scene)) == null ? void 0 : o.filter((r) => !
|
|
1968
|
+
return n && (i = (o = this.mapViewer.imageryLayers.pickImageryLayers(n, this.mapViewer.scene)) == null ? void 0 : o.filter((r) => !ee(r.meta, "parentBasetMapId"))), i;
|
|
1953
1969
|
}
|
|
1954
1970
|
findLayerByPOI(t, n, i = !0) {
|
|
1955
1971
|
if (this.layerManagerFootprintMetaFieldPath) {
|
|
1956
|
-
const o =
|
|
1957
|
-
return this.layers.filter((d) => !
|
|
1958
|
-
const h =
|
|
1959
|
-
return h !== void 0 ?
|
|
1972
|
+
const o = Ps(this.mapViewer, t, n);
|
|
1973
|
+
return this.layers.filter((d) => !ee(d.meta, "parentBasetMapId")).filter((d) => {
|
|
1974
|
+
const h = ee(d.meta, this.layerManagerFootprintMetaFieldPath);
|
|
1975
|
+
return h !== void 0 ? Jr(o.geometry, {
|
|
1960
1976
|
type: "Feature",
|
|
1961
1977
|
properties: {},
|
|
1962
1978
|
geometry: h
|
|
@@ -1970,7 +1986,7 @@ class Is {
|
|
|
1970
1986
|
}
|
|
1971
1987
|
addTransparentImageryProvider() {
|
|
1972
1988
|
const t = this.mapViewer.imageryLayers.addImageryProvider(
|
|
1973
|
-
new
|
|
1989
|
+
new Nr({
|
|
1974
1990
|
url: "./assets/img/transparent-tile.png",
|
|
1975
1991
|
/* eslint-disable @typescript-eslint/no-magic-numbers */
|
|
1976
1992
|
rectangle: new Be(-3.141592653589793, -1.5707963267948966, 3.141592653589793, 1.5707963267948966)
|
|
@@ -2003,16 +2019,16 @@ class Is {
|
|
|
2003
2019
|
typeof this.legendsExtractor < "u" && (this.legendsList = this.legendsExtractor(this.layers));
|
|
2004
2020
|
}
|
|
2005
2021
|
getBaseLayersCount() {
|
|
2006
|
-
return this.layers.filter((n) => !!
|
|
2022
|
+
return this.layers.filter((n) => !!ee(n.meta, "parentBasetMapId")).length;
|
|
2007
2023
|
}
|
|
2008
2024
|
findLayerById(t) {
|
|
2009
2025
|
return this.layers.find((n) => n.meta !== void 0 ? n.meta.id === t : !1);
|
|
2010
2026
|
}
|
|
2011
2027
|
updateLayersOrder(t, n, i) {
|
|
2012
|
-
const o = n > i ?
|
|
2028
|
+
const o = n > i ? xs : As, r = n < i ? n : i, l = n < i ? i : n;
|
|
2013
2029
|
this.layers.forEach((d) => {
|
|
2014
2030
|
var f;
|
|
2015
|
-
if (!
|
|
2031
|
+
if (!ee(d.meta, "parentBasetMapId")) {
|
|
2016
2032
|
const C = (f = d.meta) == null ? void 0 : f.zIndex;
|
|
2017
2033
|
d.meta.zIndex = C >= r && C <= l && C !== n ? C + o : C === n ? i : C;
|
|
2018
2034
|
}
|
|
@@ -2028,7 +2044,7 @@ class Is {
|
|
|
2028
2044
|
try {
|
|
2029
2045
|
const i = this.mapViewer.camera.computeViewRectangle();
|
|
2030
2046
|
for (let o = this.layers.length - 1; o >= 0; o--) {
|
|
2031
|
-
const r = this.layers[o], l = !
|
|
2047
|
+
const r = this.layers[o], l = !Nt(i) && !Nt(r.rectangle) && Be.intersection(i, r.rectangle);
|
|
2032
2048
|
for (let d = this.layers.length - 1; d >= o; d--) {
|
|
2033
2049
|
if (((t = r.meta) == null ? void 0 : t.skipRelevancyCheck) === !0) {
|
|
2034
2050
|
r.meta = { ...r.meta, relevantToExtent: !0 };
|
|
@@ -2075,7 +2091,7 @@ class Is {
|
|
|
2075
2091
|
}
|
|
2076
2092
|
}
|
|
2077
2093
|
}
|
|
2078
|
-
const
|
|
2094
|
+
const Ds = ({ legend: { legendImg: e, legendDoc: t, layer: n }, docText: i, imgText: o }) => {
|
|
2079
2095
|
const r = Le(() => {
|
|
2080
2096
|
window.open(e, "_blank");
|
|
2081
2097
|
}, [e]);
|
|
@@ -2083,43 +2099,43 @@ const Ps = ({ legend: { legendImg: e, legendDoc: t, layer: n }, docText: i, imgT
|
|
|
2083
2099
|
window.open(t, "_blank");
|
|
2084
2100
|
}, [t]);
|
|
2085
2101
|
const l = Le(() => {
|
|
2086
|
-
const f = /* @__PURE__ */
|
|
2087
|
-
return (n ?? "").length > 15 ? /* @__PURE__ */
|
|
2102
|
+
const f = /* @__PURE__ */ a(q, { className: "layerNameContainer", children: /* @__PURE__ */ a("h3", { style: { maxWidth: `${15}ch` }, className: "layerName", children: n }) });
|
|
2103
|
+
return (n ?? "").length > 15 ? /* @__PURE__ */ a(We, { content: n, children: f }) : f;
|
|
2088
2104
|
}, [n]), d = Le(() => [
|
|
2089
|
-
typeof e == "string" && /* @__PURE__ */
|
|
2090
|
-
typeof t == "string" && /* @__PURE__ */
|
|
2105
|
+
typeof e == "string" && /* @__PURE__ */ a("a", { className: "legendAction", href: e, target: "_blank", rel: "noreferrer", children: o }),
|
|
2106
|
+
typeof t == "string" && /* @__PURE__ */ a("a", { className: "legendAction", href: t, target: "_blank", rel: "noreferrer", children: i })
|
|
2091
2107
|
], [e, o, t, i]);
|
|
2092
|
-
return /* @__PURE__ */ z(
|
|
2108
|
+
return /* @__PURE__ */ z(q, { className: "mapLegend", children: [
|
|
2093
2109
|
l(),
|
|
2094
|
-
/* @__PURE__ */
|
|
2095
|
-
/* @__PURE__ */
|
|
2110
|
+
/* @__PURE__ */ a("img", { alt: "Map Legend", className: "legendImg", src: e, onClick: r }),
|
|
2111
|
+
/* @__PURE__ */ a(q, { className: "legendActionsContainer", children: d() })
|
|
2096
2112
|
] });
|
|
2097
|
-
},
|
|
2098
|
-
const o = Le(() => /* @__PURE__ */
|
|
2099
|
-
return /* @__PURE__ */
|
|
2100
|
-
},
|
|
2113
|
+
}, Os = ({ legends: e, actionsTexts: { docText: t, imgText: n }, noLegendsText: i }) => {
|
|
2114
|
+
const o = Le(() => /* @__PURE__ */ a(q, { className: "noLegendsContainer", children: /* @__PURE__ */ a("h2", { className: "noLegendsMsg", children: i }) }), [i]), r = Le(() => e.length ? e.map((l, d) => /* @__PURE__ */ a(Ds, { legend: l, docText: t, imgText: n }, `${l.layer}_${d}`)) : o(), [e]);
|
|
2115
|
+
return /* @__PURE__ */ a(q, { className: "mapLegendsList", children: r() });
|
|
2116
|
+
}, ks = ({
|
|
2101
2117
|
isOpen: e,
|
|
2102
2118
|
toggleSidebar: t,
|
|
2103
2119
|
title: n = "Map Legends",
|
|
2104
2120
|
noLegendsText: i = "No legends to display...",
|
|
2105
2121
|
actionsTexts: o = { docText: "Docs", imgText: "View Image" },
|
|
2106
2122
|
legends: r = []
|
|
2107
|
-
}) => e ? /* @__PURE__ */ z(
|
|
2108
|
-
/* @__PURE__ */
|
|
2109
|
-
/* @__PURE__ */ z(
|
|
2110
|
-
/* @__PURE__ */
|
|
2111
|
-
/* @__PURE__ */
|
|
2123
|
+
}) => e ? /* @__PURE__ */ z(Di, { className: "mapLegendSidebarContainer", modal: !1, dismissible: !0, open: e, children: [
|
|
2124
|
+
/* @__PURE__ */ a(Oi, { className: "sidebarHeaderContainer", children: /* @__PURE__ */ a(ki, { className: "sidebarTitle", children: n }) }),
|
|
2125
|
+
/* @__PURE__ */ z(Ni, { className: "sidebarContent", children: [
|
|
2126
|
+
/* @__PURE__ */ a(Hn, { onClick: t, className: "mapLegendCloseBtn", icon: { icon: "close", size: "small" } }),
|
|
2127
|
+
/* @__PURE__ */ a(Os, { noLegendsText: i, legends: r, actionsTexts: o })
|
|
2112
2128
|
] })
|
|
2113
|
-
] }) : null,
|
|
2114
|
-
/* @__PURE__ */
|
|
2129
|
+
] }) : null, Ns = ({ legendToggle: e }) => /* @__PURE__ */ a(ge, { children: /* @__PURE__ */ a(mt, { onClick: e, children: /* @__PURE__ */ z("svg", { height: "100%", width: "100%", viewBox: "-45 -45 650 650", children: [
|
|
2130
|
+
/* @__PURE__ */ a("path", { d: `M322.4,173.9l-129,16.2l-4.6,21.4l25.3,4.7c16.5,3.9,19.8,9.9,16.2,26.4l-41.5,195.3c-10.9,50.5,5.9,74.3,45.5,74.3\r
|
|
2115
2131
|
c30.7,0,66.3-14.2,82.5-33.6l4.9-23.4c-11.3,9.9-27.7,13.9-38.6,13.9c-15.5,0-21.1-10.9-17.1-30L322.4,173.9z` }),
|
|
2116
|
-
/* @__PURE__ */
|
|
2132
|
+
/* @__PURE__ */ a("circle", { cx: "270.1", cy: "56.3", r: "56.3" })
|
|
2117
2133
|
] }) }) });
|
|
2118
|
-
const
|
|
2134
|
+
const Bs = (e) => {
|
|
2119
2135
|
const t = ve(), { enableCompass: n = !0, enableZoomControls: i = !1, lockCompassNavigation: o = !1, locale: r = { DIRECTION: "ltr" } } = e;
|
|
2120
|
-
return
|
|
2121
|
-
if (typeof
|
|
2122
|
-
t.extend(
|
|
2136
|
+
return O(() => {
|
|
2137
|
+
if (typeof ee(t, "cesiumNavigation") > "u") {
|
|
2138
|
+
t.extend(Qr, {
|
|
2123
2139
|
enableCompass: n,
|
|
2124
2140
|
enableZoomControls: i,
|
|
2125
2141
|
enableDistanceLegend: !1
|
|
@@ -2129,34 +2145,34 @@ const Ds = (e) => {
|
|
|
2129
2145
|
}
|
|
2130
2146
|
}, [t, n, i, r.DIRECTION, o]), null;
|
|
2131
2147
|
};
|
|
2132
|
-
const
|
|
2133
|
-
const t = ve(), n =
|
|
2134
|
-
return
|
|
2148
|
+
const Fs = (e) => {
|
|
2149
|
+
const t = ve(), n = Te(null), [i, o] = B({ x: 0, y: 0 });
|
|
2150
|
+
return O(() => {
|
|
2135
2151
|
t.screenSpaceEventHandler.setInputAction((r) => {
|
|
2136
2152
|
if (r != null && r.endPosition) {
|
|
2137
2153
|
const l = { ...r.endPosition };
|
|
2138
2154
|
l.x = Math.ceil(l.x), l.y = Math.ceil(l.y), o(l);
|
|
2139
2155
|
}
|
|
2140
|
-
},
|
|
2141
|
-
}, [n, t]),
|
|
2156
|
+
}, kt.MOUSE_MOVE);
|
|
2157
|
+
}, [n, t]), O(() => {
|
|
2142
2158
|
const r = t.scene.globe.ellipsoid;
|
|
2143
2159
|
if (i) {
|
|
2144
|
-
const l =
|
|
2160
|
+
const l = li(t, i.x, i.y);
|
|
2145
2161
|
if (l) {
|
|
2146
|
-
const d = new
|
|
2162
|
+
const d = new gs(l.longitude, l.latitude);
|
|
2147
2163
|
if (n.current) {
|
|
2148
2164
|
let h = "";
|
|
2149
2165
|
switch (e.projection) {
|
|
2150
2166
|
case Re.WEB_MERCATOR: {
|
|
2151
|
-
const C = new
|
|
2152
|
-
h = `Mercator: ${C.y.toFixed(
|
|
2153
|
-
|
|
2167
|
+
const C = new Br(r).project(d);
|
|
2168
|
+
h = `Mercator: ${C.y.toFixed(Gt)}m, ${C.x.toFixed(
|
|
2169
|
+
Gt
|
|
2154
2170
|
)}m`, n.current.style.width = "220px";
|
|
2155
2171
|
break;
|
|
2156
2172
|
}
|
|
2157
2173
|
case Re.WGS84: {
|
|
2158
|
-
const f = d.longitude.toFixed(
|
|
2159
|
-
h = `WGS84: ${d.latitude.toFixed(
|
|
2174
|
+
const f = d.longitude.toFixed(Ft);
|
|
2175
|
+
h = `WGS84: ${d.latitude.toFixed(Ft)}°N ${f}°E`, n.current.style.width = "200px";
|
|
2160
2176
|
break;
|
|
2161
2177
|
}
|
|
2162
2178
|
}
|
|
@@ -2164,7 +2180,7 @@ const Os = (e) => {
|
|
|
2164
2180
|
}
|
|
2165
2181
|
}
|
|
2166
2182
|
}
|
|
2167
|
-
}, [i, n, t, e.projection]), /* @__PURE__ */
|
|
2183
|
+
}, [i, n, t, e.projection]), /* @__PURE__ */ a("div", { className: "coordinatesTracker", ref: n });
|
|
2168
2184
|
};
|
|
2169
2185
|
const Mt = [
|
|
2170
2186
|
1,
|
|
@@ -2199,12 +2215,12 @@ const Mt = [
|
|
|
2199
2215
|
2e7,
|
|
2200
2216
|
3e7,
|
|
2201
2217
|
5e7
|
|
2202
|
-
],
|
|
2203
|
-
const o =
|
|
2218
|
+
], Gs = (e, t, n, i) => {
|
|
2219
|
+
const o = ee(i, "METERS_UNIT") ?? "m", r = ee(i, "KILOMETERS_UNIT") ?? "km", l = {
|
|
2204
2220
|
barWidth: void 0,
|
|
2205
2221
|
distanceLabel: void 0,
|
|
2206
2222
|
lastLegendUpdate: t.lastLegendUpdate
|
|
2207
|
-
}, d = new
|
|
2223
|
+
}, d = new Gr(), h = new Date().getTime();
|
|
2208
2224
|
if (h < l.lastLegendUpdate + 250)
|
|
2209
2225
|
return;
|
|
2210
2226
|
l.lastLegendUpdate = h;
|
|
@@ -2222,30 +2238,30 @@ const Mt = [
|
|
|
2222
2238
|
N >= 1e3 ? Z = `${(N / 1e3).toString()} ${r}` : Z = `${N.toString()} ${o}`, l.barWidth = N / $ | 0, l.distanceLabel = Z;
|
|
2223
2239
|
}
|
|
2224
2240
|
n(l);
|
|
2225
|
-
},
|
|
2226
|
-
const t = ve(), [n, i] =
|
|
2241
|
+
}, Vs = (e) => {
|
|
2242
|
+
const t = ve(), [n, i] = B({
|
|
2227
2243
|
barWidth: void 0,
|
|
2228
2244
|
distanceLabel: void 0,
|
|
2229
2245
|
lastLegendUpdate: -1
|
|
2230
2246
|
});
|
|
2231
|
-
|
|
2247
|
+
O(() => {
|
|
2232
2248
|
const r = (h) => {
|
|
2233
|
-
|
|
2234
|
-
}, l = new
|
|
2249
|
+
Gs(t, n, i, e.locale);
|
|
2250
|
+
}, l = new Fr(), d = (h) => {
|
|
2235
2251
|
t.scene.globe.tilesLoaded && (r(new MouseEvent("mouse")), l.removeAll());
|
|
2236
2252
|
};
|
|
2237
2253
|
return l.add(t.scene.globe.tileLoadProgressEvent, d), t.camera.moveEnd.addEventListener(r), () => {
|
|
2238
2254
|
try {
|
|
2239
|
-
|
|
2255
|
+
ee(t, "_cesiumWidget") != null && t.camera.moveEnd.removeEventListener(r);
|
|
2240
2256
|
} catch (h) {
|
|
2241
2257
|
console.log('CESIUM camera "moveEnd" remove listener failed', h);
|
|
2242
2258
|
}
|
|
2243
2259
|
};
|
|
2244
2260
|
}, [t, e.locale, n]);
|
|
2245
2261
|
const o = (r) => 5 + (125 - r) / 2;
|
|
2246
|
-
return /* @__PURE__ */
|
|
2247
|
-
/* @__PURE__ */
|
|
2248
|
-
/* @__PURE__ */
|
|
2262
|
+
return /* @__PURE__ */ a("div", { className: "scaleTracker", children: et(n.barWidth) && /* @__PURE__ */ z(ge, { children: [
|
|
2263
|
+
/* @__PURE__ */ a("div", { className: "scaleTrackerLabel", children: /* @__PURE__ */ a("bdi", { children: n.distanceLabel }) }),
|
|
2264
|
+
/* @__PURE__ */ a(
|
|
2249
2265
|
"div",
|
|
2250
2266
|
{
|
|
2251
2267
|
className: "scaleTrackerBar",
|
|
@@ -2258,15 +2274,15 @@ const Mt = [
|
|
|
2258
2274
|
)
|
|
2259
2275
|
] }) });
|
|
2260
2276
|
};
|
|
2261
|
-
const
|
|
2277
|
+
const Hs = () => {
|
|
2262
2278
|
const e = ve();
|
|
2263
|
-
return /* @__PURE__ */
|
|
2279
|
+
return /* @__PURE__ */ a("div", { className: "zoomButtons", children: [
|
|
2264
2280
|
{ onClick: () => e.camera.zoomIn(), iconPath: "M48 20h-18v-18h-10v18h-18v10h18v18h10v-18h18z" },
|
|
2265
2281
|
{ onClick: () => e.camera.zoomOut(), iconPath: "M2 20h46v10h-46z" }
|
|
2266
|
-
].map((n, i) => /* @__PURE__ */
|
|
2267
|
-
|
|
2282
|
+
].map((n, i) => /* @__PURE__ */ a(
|
|
2283
|
+
Hn,
|
|
2268
2284
|
{
|
|
2269
|
-
icon: /* @__PURE__ */
|
|
2285
|
+
icon: /* @__PURE__ */ a("div", { className: "zoomButton", children: /* @__PURE__ */ a(
|
|
2270
2286
|
"svg",
|
|
2271
2287
|
{
|
|
2272
2288
|
fill: "var(--mdc-theme-cesium-color)",
|
|
@@ -2277,7 +2293,7 @@ const Bs = () => {
|
|
|
2277
2293
|
baseProfile: "tiny",
|
|
2278
2294
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2279
2295
|
overflow: "inherit",
|
|
2280
|
-
children: /* @__PURE__ */
|
|
2296
|
+
children: /* @__PURE__ */ a("path", { d: n.iconPath })
|
|
2281
2297
|
}
|
|
2282
2298
|
) }),
|
|
2283
2299
|
onClick: n.onClick
|
|
@@ -2286,12 +2302,12 @@ const Bs = () => {
|
|
|
2286
2302
|
)) });
|
|
2287
2303
|
};
|
|
2288
2304
|
const bn = (e, t) => {
|
|
2289
|
-
const i =
|
|
2305
|
+
const i = ee(t.scene.globe, "_surface.tileProvider"), o = i._quadtree, r = t.canvas.height, l = ee(t.camera.frustum, "sseDenominator") ?? 1;
|
|
2290
2306
|
for (let d = 0; d <= 19; d++)
|
|
2291
2307
|
if (i.getLevelMaximumGeometricError(d) * r / (e * l) < o.maximumScreenSpaceError)
|
|
2292
2308
|
return d;
|
|
2293
2309
|
return null;
|
|
2294
|
-
},
|
|
2310
|
+
}, Ws = (e, t) => {
|
|
2295
2311
|
e = e || 10;
|
|
2296
2312
|
const n = [];
|
|
2297
2313
|
let i = 1e5, o = 0;
|
|
@@ -2310,8 +2326,8 @@ const bn = (e, t) => {
|
|
|
2310
2326
|
}
|
|
2311
2327
|
}
|
|
2312
2328
|
return n;
|
|
2313
|
-
},
|
|
2314
|
-
const n = ve(), i = tt(), [o, r] =
|
|
2329
|
+
}, zs = ({ locale: e = void 0, valueBy: t = "RENDERED_TILES" }) => {
|
|
2330
|
+
const n = ve(), i = tt(), [o, r] = B(1), l = Ws(1, n), d = Le(() => {
|
|
2315
2331
|
const L = n.camera, u = 0.5;
|
|
2316
2332
|
let g = 0;
|
|
2317
2333
|
switch (n.scene.mode) {
|
|
@@ -2341,30 +2357,30 @@ const bn = (e, t) => {
|
|
|
2341
2357
|
CALCULATION: d,
|
|
2342
2358
|
RENDERED_TILES: h
|
|
2343
2359
|
}), [d, h])[t];
|
|
2344
|
-
return
|
|
2360
|
+
return O(() => {
|
|
2345
2361
|
const L = n.scene.globe.tileLoadProgressEvent.addEventListener(function() {
|
|
2346
2362
|
n.scene.globe.tilesLoaded && C();
|
|
2347
2363
|
});
|
|
2348
2364
|
return n.camera.moveEnd.addEventListener(C), () => {
|
|
2349
2365
|
try {
|
|
2350
|
-
typeof
|
|
2366
|
+
typeof ee(n, "_cesiumWidget") < "u" && (n.camera.moveEnd.removeEventListener(C), L());
|
|
2351
2367
|
} catch (u) {
|
|
2352
2368
|
console.log('CESIUM camera "moveEnd"(from zoom tracker) remove listener failed', u);
|
|
2353
2369
|
}
|
|
2354
2370
|
};
|
|
2355
2371
|
}, [n, C]), /* @__PURE__ */ z("div", { className: "zoomLevel", children: [
|
|
2356
|
-
/* @__PURE__ */
|
|
2357
|
-
/* @__PURE__ */
|
|
2372
|
+
/* @__PURE__ */ a("div", { className: "zoomLevelValue", children: o }),
|
|
2373
|
+
/* @__PURE__ */ a("div", { className: "zoomLevelLabel", children: ee(e, "ZOOM_LABEL") ?? "zoom" })
|
|
2358
2374
|
] });
|
|
2359
2375
|
};
|
|
2360
|
-
const Tn = 2, Sn = 212, _n = 260,
|
|
2361
|
-
class
|
|
2376
|
+
const Tn = 2, Sn = 212, _n = 260, Us = 0;
|
|
2377
|
+
class Sl extends Vr {
|
|
2362
2378
|
constructor(n, i) {
|
|
2363
2379
|
super(n, i);
|
|
2364
2380
|
ue(this, "layersManager");
|
|
2365
2381
|
}
|
|
2366
2382
|
}
|
|
2367
|
-
const Jt = ze(null),
|
|
2383
|
+
const Jt = ze(null), $s = Jt.Provider, ve = () => {
|
|
2368
2384
|
const e = Ve(Jt);
|
|
2369
2385
|
if (e === null)
|
|
2370
2386
|
throw new Error("map context is null, please check the provider");
|
|
@@ -2374,10 +2390,10 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2374
2390
|
if (t === null)
|
|
2375
2391
|
throw new Error("map context viewstate is null, please check the provider");
|
|
2376
2392
|
return t;
|
|
2377
|
-
},
|
|
2378
|
-
var fe, ye, Pe, Ue,
|
|
2379
|
-
const t =
|
|
2380
|
-
|
|
2393
|
+
}, _l = (e) => {
|
|
2394
|
+
var fe, ye, Pe, Ue, Ke, en, tn, nn;
|
|
2395
|
+
const t = Te(null), [n, i] = B(), [o, r] = B(), [l, d] = B(), [h, f] = B(), [C, L] = B(), [u, g] = B(), [_, v] = B(), [k, G] = B(), [$, j] = B(), [N, Z] = B(), [V, Y] = B(!1), [J, s] = B(!1), c = Te(), [b, p] = B([]), [E, y] = B(), [S, m] = B(), [w, x] = B(!1), R = Te(), [M, P] = B(void 0), [D, Q] = B(!1), [te, U] = B(), [K, re] = B(), he = lt(), we = fo(he), oe = ae(() => V || J, [V, J]);
|
|
2396
|
+
O(() => {
|
|
2381
2397
|
re({
|
|
2382
2398
|
currentZoomLevel: -1,
|
|
2383
2399
|
shouldOptimizedTileRequests: e.useOptimizedTileRequests ?? !1
|
|
@@ -2395,21 +2411,21 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2395
2411
|
imageryProvider: !1,
|
|
2396
2412
|
...e
|
|
2397
2413
|
}, I = (se, de, ce, Ee, _e) => {
|
|
2398
|
-
const Ne = n.container, De = Ne.clientWidth,
|
|
2414
|
+
const Ne = n.container, De = Ne.clientWidth, qe = Ne.clientHeight, rn = Ee + _e;
|
|
2399
2415
|
return {
|
|
2400
2416
|
left: `${De - se < ce ? se - (ce - (De - se)) : se}px`,
|
|
2401
|
-
top: `${
|
|
2417
|
+
top: `${qe - de < rn ? de - (rn - (qe - de)) : de}px`
|
|
2402
2418
|
};
|
|
2403
2419
|
}, A = Le(
|
|
2404
2420
|
(se) => {
|
|
2405
2421
|
if (t.current !== null) {
|
|
2406
2422
|
const de = t.current.cesiumElement, ce = { x: se.offsetX, y: se.offsetY };
|
|
2407
|
-
x(!1), P(ce), U(
|
|
2423
|
+
x(!1), P(ce), U(li(de, ce.x, ce.y)), x(!0), R.current = se;
|
|
2408
2424
|
}
|
|
2409
2425
|
},
|
|
2410
2426
|
[t]
|
|
2411
2427
|
);
|
|
2412
|
-
|
|
2428
|
+
O(() => {
|
|
2413
2429
|
var se;
|
|
2414
2430
|
if (t.current !== null) {
|
|
2415
2431
|
const de = t.current.cesiumElement;
|
|
@@ -2422,7 +2438,7 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2422
2438
|
if (n)
|
|
2423
2439
|
return {
|
|
2424
2440
|
mapViewer: n.layersManager ? n : Object.assign(n, {
|
|
2425
|
-
layersManager: new
|
|
2441
|
+
layersManager: new Rs(
|
|
2426
2442
|
n,
|
|
2427
2443
|
(se = e.legends) == null ? void 0 : se.mapLegendsExtractor,
|
|
2428
2444
|
() => {
|
|
@@ -2430,45 +2446,45 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2430
2446
|
p((ce = n.layersManager) == null ? void 0 : ce.legendsList);
|
|
2431
2447
|
},
|
|
2432
2448
|
e.layerManagerFootprintMetaFieldPath,
|
|
2433
|
-
|
|
2449
|
+
K == null ? void 0 : K.shouldOptimizedTileRequests
|
|
2434
2450
|
)
|
|
2435
2451
|
}),
|
|
2436
|
-
viewState:
|
|
2452
|
+
viewState: K,
|
|
2437
2453
|
setViewState: re
|
|
2438
2454
|
};
|
|
2439
|
-
}, [e.useOptimizedTileRequests, e.legends, e.layerManagerFootprintMetaFieldPath, n,
|
|
2440
|
-
|
|
2455
|
+
}, [e.useOptimizedTileRequests, e.legends, e.layerManagerFootprintMetaFieldPath, n, K]);
|
|
2456
|
+
O(() => {
|
|
2441
2457
|
var de, ce;
|
|
2442
2458
|
y(e.baseMaps);
|
|
2443
2459
|
const se = (de = e.baseMaps) == null ? void 0 : de.maps.find((Ee) => Ee.isCurrent);
|
|
2444
2460
|
se && n && ((ce = n.layersManager) == null || ce.setBaseMapLayers(se));
|
|
2445
|
-
}, [e.baseMaps, n]),
|
|
2461
|
+
}, [e.baseMaps, n]), O(() => {
|
|
2446
2462
|
const se = e.terrains || (n && n.terrainProvider ? [{
|
|
2447
2463
|
id: "1",
|
|
2448
|
-
url:
|
|
2464
|
+
url: Is,
|
|
2449
2465
|
title: "Default Terrain",
|
|
2450
2466
|
thumbnail: "Cesium/Widgets/Images/TerrainProviders/Ellipsoid.png",
|
|
2451
2467
|
isCurrent: !0,
|
|
2452
2468
|
terrainProvider: n.terrainProvider
|
|
2453
2469
|
}] : void 0);
|
|
2454
2470
|
m(se);
|
|
2455
|
-
}, [e.terrains, n]),
|
|
2471
|
+
}, [e.terrains, n]), O(() => {
|
|
2456
2472
|
d(e.projection ?? Re.WGS84);
|
|
2457
|
-
}, [e.projection]),
|
|
2473
|
+
}, [e.projection]), O(() => {
|
|
2458
2474
|
r(e.locale);
|
|
2459
|
-
}, [e.locale]),
|
|
2475
|
+
}, [e.locale]), O(() => {
|
|
2460
2476
|
f(e.showMousePosition ?? !0);
|
|
2461
|
-
}, [e.showMousePosition]),
|
|
2477
|
+
}, [e.showMousePosition]), O(() => {
|
|
2462
2478
|
L(e.showZoomLevel ?? !0);
|
|
2463
|
-
}, [e.showZoomLevel]),
|
|
2479
|
+
}, [e.showZoomLevel]), O(() => {
|
|
2464
2480
|
g(e.showScale ?? !0);
|
|
2465
|
-
}, [e.showScale]),
|
|
2481
|
+
}, [e.showScale]), O(() => {
|
|
2466
2482
|
v(e.showCompass ?? !0);
|
|
2467
|
-
}, [e.showCompass]),
|
|
2483
|
+
}, [e.showCompass]), O(() => {
|
|
2468
2484
|
Z(e.showLoadingProgress ?? !0);
|
|
2469
|
-
}, [e.showLoadingProgress]),
|
|
2485
|
+
}, [e.showLoadingProgress]), O(() => {
|
|
2470
2486
|
j(e.showActiveLayersTool ?? !0);
|
|
2471
|
-
}, [e.showActiveLayersTool]),
|
|
2487
|
+
}, [e.showActiveLayersTool]), O(() => {
|
|
2472
2488
|
var de;
|
|
2473
2489
|
const se = () => {
|
|
2474
2490
|
if (n === void 0)
|
|
@@ -2527,14 +2543,14 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2527
2543
|
ce = !0;
|
|
2528
2544
|
return;
|
|
2529
2545
|
}
|
|
2530
|
-
}),
|
|
2546
|
+
}), s(ce);
|
|
2531
2547
|
})));
|
|
2532
|
-
}, [n]),
|
|
2548
|
+
}, [n]), O(() => {
|
|
2533
2549
|
const se = () => {
|
|
2534
2550
|
if (n && c.current) {
|
|
2535
2551
|
const de = c.current;
|
|
2536
2552
|
n.camera.flyTo({
|
|
2537
|
-
destination:
|
|
2553
|
+
destination: Se.fromDegrees(de.position.longitude, de.position.latitude, de.position.height),
|
|
2538
2554
|
duration: 0
|
|
2539
2555
|
});
|
|
2540
2556
|
}
|
|
@@ -2547,19 +2563,19 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2547
2563
|
console.error("morphCompleteHandler event not cleaned");
|
|
2548
2564
|
}
|
|
2549
2565
|
};
|
|
2550
|
-
}, [n]),
|
|
2566
|
+
}, [n]), O(() => {
|
|
2551
2567
|
const se = e.zoom, de = e.center;
|
|
2552
2568
|
if (n && et(se) && dn(de)) {
|
|
2553
|
-
const ce = de[0], Ee = de[1], _e =
|
|
2569
|
+
const ce = de[0], Ee = de[1], _e = is(se);
|
|
2554
2570
|
n.camera.flyTo({
|
|
2555
|
-
destination:
|
|
2571
|
+
destination: Se.fromDegrees(ce, Ee, _e),
|
|
2556
2572
|
duration: 0
|
|
2557
2573
|
});
|
|
2558
|
-
const Ne = n.homeButton.viewModel.command, De = function(
|
|
2574
|
+
const Ne = n.homeButton.viewModel.command, De = function(qe) {
|
|
2559
2575
|
n.camera.flyTo({
|
|
2560
|
-
destination:
|
|
2576
|
+
destination: Se.fromDegrees(ce, Ee, _e),
|
|
2561
2577
|
duration: 1
|
|
2562
|
-
}),
|
|
2578
|
+
}), qe.cancel = !0;
|
|
2563
2579
|
};
|
|
2564
2580
|
return Ne.beforeExecute.addEventListener(De), () => {
|
|
2565
2581
|
Ne.beforeExecute.removeEventListener(De);
|
|
@@ -2570,38 +2586,38 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2570
2586
|
}
|
|
2571
2587
|
};
|
|
2572
2588
|
}
|
|
2573
|
-
}, [e.zoom, e.center, n]),
|
|
2589
|
+
}, [e.zoom, e.center, n]), O(() => {
|
|
2574
2590
|
G(e.showZoomButtons ?? !0);
|
|
2575
2591
|
}, [e.showZoomButtons]);
|
|
2576
2592
|
const H = () => {
|
|
2577
|
-
|
|
2593
|
+
Q((se) => !se);
|
|
2578
2594
|
}, W = Le(() => n && wt(
|
|
2579
2595
|
/* @__PURE__ */ z(ge, { children: [
|
|
2580
|
-
N && oe && /* @__PURE__ */
|
|
2581
|
-
_ && /* @__PURE__ */
|
|
2582
|
-
/* @__PURE__ */ z(
|
|
2583
|
-
h && /* @__PURE__ */
|
|
2584
|
-
C && /* @__PURE__ */
|
|
2585
|
-
u && /* @__PURE__ */
|
|
2596
|
+
N && oe && /* @__PURE__ */ a(Bi, { style: { position: "absolute", top: 0, height: "10px", zIndex: 4 } }),
|
|
2597
|
+
_ && /* @__PURE__ */ a(Bs, { locale: o }),
|
|
2598
|
+
/* @__PURE__ */ z(q, { className: "bottomToolsContainer", children: [
|
|
2599
|
+
h && /* @__PURE__ */ a(Fs, { projection: l }),
|
|
2600
|
+
C && /* @__PURE__ */ a(zs, { locale: o, valueBy: "RENDERED_TILES" }),
|
|
2601
|
+
u && /* @__PURE__ */ a(Vs, { locale: o })
|
|
2586
2602
|
] }),
|
|
2587
|
-
k && /* @__PURE__ */
|
|
2603
|
+
k && /* @__PURE__ */ a(Hs, {})
|
|
2588
2604
|
] }),
|
|
2589
2605
|
document.querySelector(".cesium-viewer")
|
|
2590
2606
|
), [n, o, l, h, u, oe]), X = Le(() => n && wt(
|
|
2591
2607
|
/* @__PURE__ */ z(ge, { children: [
|
|
2592
|
-
e.geocoderPanel && /* @__PURE__ */
|
|
2593
|
-
/* @__PURE__ */
|
|
2594
|
-
e.showDebuggerTool && /* @__PURE__ */
|
|
2595
|
-
/* @__PURE__ */
|
|
2608
|
+
e.geocoderPanel && /* @__PURE__ */ a(Ss, { options: [...e.geocoderPanel], locale: o }),
|
|
2609
|
+
/* @__PURE__ */ a(us, { baseMaps: E, terrains: S, locale: o }),
|
|
2610
|
+
e.showDebuggerTool && /* @__PURE__ */ a(ps, { locale: o }),
|
|
2611
|
+
/* @__PURE__ */ a(Ns, { legendToggle: H })
|
|
2596
2612
|
] }),
|
|
2597
2613
|
document.querySelector(".cesium-viewer-toolbar")
|
|
2598
2614
|
), [n, o, E, S]), le = Le(() => n && wt(
|
|
2599
|
-
/* @__PURE__ */
|
|
2615
|
+
/* @__PURE__ */ a(q, { className: "cesium-viewer-cesiumInspectorContainer widgetsContainer", children: $ && /* @__PURE__ */ a(as, { locale: o }) }),
|
|
2600
2616
|
document.querySelector(".cesium-widget")
|
|
2601
2617
|
), [n, o]);
|
|
2602
|
-
return /* @__PURE__ */
|
|
2603
|
-
/* @__PURE__ */
|
|
2604
|
-
|
|
2618
|
+
return /* @__PURE__ */ a(Vn, { id: "cesiumTheme", options: we, children: /* @__PURE__ */ a(fr, { className: "viewer", full: !0, ref: t, ...pe, children: /* @__PURE__ */ z($s, { value: F, children: [
|
|
2619
|
+
/* @__PURE__ */ a(
|
|
2620
|
+
ks,
|
|
2605
2621
|
{
|
|
2606
2622
|
title: (fe = e.legends) == null ? void 0 : fe.title,
|
|
2607
2623
|
isOpen: D,
|
|
@@ -2616,7 +2632,7 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2616
2632
|
X(),
|
|
2617
2633
|
le(),
|
|
2618
2634
|
e.imageryContextMenu && w && M && te && ke.cloneElement(e.imageryContextMenu, {
|
|
2619
|
-
data: (
|
|
2635
|
+
data: (Ke = n == null ? void 0 : n.layersManager) == null ? void 0 : Ke.findLayerByPOI(
|
|
2620
2636
|
M.x,
|
|
2621
2637
|
M.y,
|
|
2622
2638
|
!1
|
|
@@ -2631,7 +2647,7 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2631
2647
|
M.y,
|
|
2632
2648
|
((en = e.imageryContextMenuSize) == null ? void 0 : en.width) ?? _n,
|
|
2633
2649
|
((tn = e.imageryContextMenuSize) == null ? void 0 : tn.height) ?? Sn,
|
|
2634
|
-
((nn = e.imageryContextMenuSize) == null ? void 0 : nn.dynamicHeightIncrement) ??
|
|
2650
|
+
((nn = e.imageryContextMenuSize) == null ? void 0 : nn.dynamicHeightIncrement) ?? Us
|
|
2635
2651
|
),
|
|
2636
2652
|
size: e.imageryContextMenuSize ?? {
|
|
2637
2653
|
height: Sn,
|
|
@@ -2643,20 +2659,20 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2643
2659
|
contextEvt: R.current
|
|
2644
2660
|
})
|
|
2645
2661
|
] }) }) });
|
|
2646
|
-
},
|
|
2662
|
+
}, js = 0, Ml = (e) => {
|
|
2647
2663
|
const t = ve();
|
|
2648
|
-
return /* @__PURE__ */
|
|
2649
|
-
|
|
2664
|
+
return /* @__PURE__ */ a(
|
|
2665
|
+
yr,
|
|
2650
2666
|
{
|
|
2651
2667
|
...e,
|
|
2652
2668
|
onReady: (n) => {
|
|
2653
2669
|
e.isZoomTo === !0 && t.zoomTo(n);
|
|
2654
2670
|
const i = t.scene;
|
|
2655
2671
|
i.globe.depthTestAgainstTerrain = !0;
|
|
2656
|
-
const o = Oe.fromCartesian(n.boundingSphere.center), r = e.heightFromGround ??
|
|
2672
|
+
const o = Oe.fromCartesian(n.boundingSphere.center), r = e.heightFromGround ?? js;
|
|
2657
2673
|
if (r) {
|
|
2658
|
-
const l =
|
|
2659
|
-
n.modelMatrix =
|
|
2674
|
+
const l = Se.fromRadians(o.longitude, o.latitude, o.height), d = Se.fromRadians(o.longitude, o.latitude, o.height + r), h = Se.subtract(d, l, new Se());
|
|
2675
|
+
n.modelMatrix = Hr.fromTranslation(h);
|
|
2660
2676
|
}
|
|
2661
2677
|
}
|
|
2662
2678
|
}
|
|
@@ -2678,35 +2694,35 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2678
2694
|
});
|
|
2679
2695
|
break;
|
|
2680
2696
|
}
|
|
2681
|
-
},
|
|
2682
|
-
const { data: t, ...n } = e, i =
|
|
2697
|
+
}, Il = (e) => {
|
|
2698
|
+
const { data: t, ...n } = e, i = Yr(t);
|
|
2683
2699
|
return i && (typeof i.features < "u" ? i.features.forEach((o) => {
|
|
2684
2700
|
xn(o.geometry);
|
|
2685
|
-
}) : xn(i)), /* @__PURE__ */
|
|
2701
|
+
}) : xn(i)), /* @__PURE__ */ a(vr, { data: i, ...n });
|
|
2686
2702
|
}, gt = (e) => {
|
|
2687
2703
|
const { meta: t, ...n } = e, i = ve();
|
|
2688
2704
|
return Dn(() => {
|
|
2689
2705
|
var o;
|
|
2690
2706
|
(o = i.layersManager) == null || o.addMetaToLayer(t, t.searchLayerPredicate);
|
|
2691
|
-
}, [t, i]), /* @__PURE__ */
|
|
2692
|
-
}, Sl = (e) => {
|
|
2693
|
-
const { options: t, ...n } = e, i = ve(), { viewState: o } = tt(), r = ae(() => o.shouldOptimizedTileRequests ? new li(t, i) : new jt(t), [o.shouldOptimizedTileRequests]);
|
|
2694
|
-
return /* @__PURE__ */ s(gt, { ...n, imageryProvider: r });
|
|
2695
|
-
}, _l = (e) => {
|
|
2696
|
-
const { options: t, ...n } = e, i = ve(), { viewState: o } = tt(), r = ae(() => o.shouldOptimizedTileRequests ? new di(t, i) : new Yt(t), [o.shouldOptimizedTileRequests]);
|
|
2697
|
-
return /* @__PURE__ */ s(gt, { ...n, imageryProvider: r });
|
|
2698
|
-
}, Ml = (e) => {
|
|
2699
|
-
const { options: t, ...n } = e, i = ve(), { viewState: o } = tt(), r = ae(() => o.shouldOptimizedTileRequests ? new ci(t, i) : new $t(t), [o.shouldOptimizedTileRequests]);
|
|
2700
|
-
return /* @__PURE__ */ s(gt, { ...n, imageryProvider: r });
|
|
2701
|
-
}, Il = (e) => {
|
|
2702
|
-
const { options: t, ...n } = e;
|
|
2703
|
-
return /* @__PURE__ */ s(gt, { ...n, imageryProvider: new Hr(t) });
|
|
2707
|
+
}, [t, i]), /* @__PURE__ */ a(wr, { ...n });
|
|
2704
2708
|
}, Pl = (e) => {
|
|
2705
|
-
const { options: t,
|
|
2706
|
-
|
|
2709
|
+
const { options: t, ...n } = e, i = ve(), { viewState: o } = tt(), r = ae(() => o.shouldOptimizedTileRequests ? new ui(t, i) : new $t(t), [o.shouldOptimizedTileRequests]);
|
|
2710
|
+
return /* @__PURE__ */ a(gt, { ...n, imageryProvider: r });
|
|
2711
|
+
}, xl = (e) => {
|
|
2712
|
+
const { options: t, ...n } = e, i = ve(), { viewState: o } = tt(), r = ae(() => o.shouldOptimizedTileRequests ? new hi(t, i) : new jt(t), [o.shouldOptimizedTileRequests]);
|
|
2713
|
+
return /* @__PURE__ */ a(gt, { ...n, imageryProvider: r });
|
|
2714
|
+
}, Al = (e) => {
|
|
2715
|
+
const { options: t, ...n } = e, i = ve(), { viewState: o } = tt(), r = ae(() => o.shouldOptimizedTileRequests ? new di(t, i) : new Ut(t), [o.shouldOptimizedTileRequests]);
|
|
2716
|
+
return /* @__PURE__ */ a(gt, { ...n, imageryProvider: r });
|
|
2717
|
+
}, Rl = (e) => {
|
|
2718
|
+
const { options: t, ...n } = e;
|
|
2719
|
+
return /* @__PURE__ */ a(gt, { ...n, imageryProvider: new Wr(t) });
|
|
2720
|
+
}, Dl = (e) => {
|
|
2721
|
+
const { options: t, meta: n, visualizationHandler: i, withGeometryValidation: o = !1 } = e, { url: r, featureType: l, style: d, pageSize: h, zoomLevel: f, maxCacheSize: C, keyField: L, labeling: u } = t, { color: g, hover: _ } = d, v = ve(), k = tt(), G = Te(k.viewState), $ = Te(/* @__PURE__ */ new Map()), j = Te(/* @__PURE__ */ new Set()), N = Te(0), [Z, V] = B(n), Y = ae(() => Ge.fromCssColorString(_ ?? "#24AEE9").withAlpha(0.5), [_]), J = ae(() => `wfs_${l}_${pn()}`, [l]), s = Te(!1);
|
|
2722
|
+
O(() => {
|
|
2707
2723
|
G.current = k.viewState;
|
|
2708
2724
|
}, [k.viewState]);
|
|
2709
|
-
const c = new
|
|
2725
|
+
const c = new zt(J), b = (I) => {
|
|
2710
2726
|
const A = [], F = n.featureStructure;
|
|
2711
2727
|
if (F && F.fields)
|
|
2712
2728
|
for (const W of F.fields) {
|
|
@@ -2735,16 +2751,16 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2735
2751
|
if (!A)
|
|
2736
2752
|
return null;
|
|
2737
2753
|
const F = A.positions;
|
|
2738
|
-
return
|
|
2754
|
+
return jn.fromPoints(F).center;
|
|
2739
2755
|
}, y = (I) => {
|
|
2740
|
-
const F = v.scene.drillPick(I).map((W) => W.id).filter((W) => W && W.polygon && W.entityCollection.owner.name ===
|
|
2756
|
+
const F = v.scene.drillPick(I).map((W) => W.id).filter((W) => W && W.polygon && W.entityCollection.owner.name === J);
|
|
2741
2757
|
if (F.length === 0)
|
|
2742
2758
|
return null;
|
|
2743
2759
|
const H = F.map((W) => {
|
|
2744
2760
|
const X = E(W);
|
|
2745
2761
|
if (!X)
|
|
2746
2762
|
return { entity: W, distance: Number.MAX_VALUE };
|
|
2747
|
-
const le =
|
|
2763
|
+
const le = Kn.wgs84ToWindowCoordinates(v.scene, X);
|
|
2748
2764
|
if (!le)
|
|
2749
2765
|
return { entity: W, distance: Number.MAX_VALUE };
|
|
2750
2766
|
const fe = I.x - le.x, ye = I.y - le.y, Pe = Math.sqrt(fe * fe + ye * ye);
|
|
@@ -2756,12 +2772,12 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2756
2772
|
I.setInputAction((H) => {
|
|
2757
2773
|
if (v.scene.mode === Fe.SCENE2D) {
|
|
2758
2774
|
const X = v.scene.pick(H.endPosition);
|
|
2759
|
-
X && X.id && (X.id.polygon || X.id.polyline) ?
|
|
2775
|
+
X && X.id && (X.id.polygon || X.id.polyline) ? ee(A, "id") !== ee(X.id, "id") && (A && (A[p(A)].material = F, v.container.style.cursor = "default"), A = X.id, F = A[p(A)].material, A[p(A)].material = Y, v.container.style.cursor = "pointer") : A && (A[p(A)].material = F, A = null, v.container.style.cursor = "default");
|
|
2760
2776
|
} else {
|
|
2761
2777
|
const X = y(H.endPosition);
|
|
2762
|
-
X ?
|
|
2778
|
+
X ? ee(A, "id") !== ee(X, "id") && (A && (A[p(A)].material = F, v.container.style.cursor = "default"), A = X, F = A[p(A)].material, A[p(A)].material = Y, v.container.style.cursor = "pointer") : A && (A[p(A)].material = F, A = null, v.container.style.cursor = "default");
|
|
2763
2779
|
}
|
|
2764
|
-
},
|
|
2780
|
+
}, kt.MOUSE_MOVE);
|
|
2765
2781
|
}, m = (I, A) => {
|
|
2766
2782
|
const F = navigator.hardwareConcurrency || 4;
|
|
2767
2783
|
let H = Math.ceil(F * 1.5);
|
|
@@ -2803,14 +2819,14 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2803
2819
|
fe.width = le + W * 2, fe.height = X * F.length + W * 2;
|
|
2804
2820
|
const ye = fe.getContext("2d");
|
|
2805
2821
|
return ye.font = `${H}px ${(u == null ? void 0 : u.fontName) ?? A.fontName}`, ye.fillStyle = (u == null ? void 0 : u.fillStyle) ?? A.fillStyle, ye.strokeStyle = (u == null ? void 0 : u.strokeStyle) ?? A.strokeStyle, ye.lineWidth = (u == null ? void 0 : u.lineWidth) ?? A.lineWidth, F.forEach((Pe, Ue) => {
|
|
2806
|
-
const
|
|
2807
|
-
ye.strokeText(Pe, W,
|
|
2822
|
+
const Ke = W + (Ue + 1) * X - 4;
|
|
2823
|
+
ye.strokeText(Pe, W, Ke), ye.fillText(Pe, W, Ke);
|
|
2808
2824
|
}), {
|
|
2809
2825
|
dataURL: fe.toDataURL(),
|
|
2810
2826
|
width: fe.width,
|
|
2811
2827
|
height: fe.height
|
|
2812
2828
|
};
|
|
2813
|
-
},
|
|
2829
|
+
}, Q = (I) => u == null ? void 0 : u.text.pattern.replace(/\$\{([^}]+)\}/g, (F, H) => {
|
|
2814
2830
|
const W = u.text.fields.find((le) => le.name === H);
|
|
2815
2831
|
let X = "";
|
|
2816
2832
|
if (W)
|
|
@@ -2836,7 +2852,7 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2836
2852
|
let X = !0;
|
|
2837
2853
|
if (o)
|
|
2838
2854
|
try {
|
|
2839
|
-
X =
|
|
2855
|
+
X = eo(H.geometry), X || console.error("Skipped invalid WFS feature with", L ?? "id", "->", W);
|
|
2840
2856
|
} catch {
|
|
2841
2857
|
X = !1, console.error("Skipped invalid WFS feature with", L ?? "id", "->", W);
|
|
2842
2858
|
}
|
|
@@ -2844,7 +2860,7 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2844
2860
|
j.current.add(W), H.properties.fetch_id = A;
|
|
2845
2861
|
const le = H.properties.description;
|
|
2846
2862
|
if (H.properties.description = void 0, H.properties._description = le, u) {
|
|
2847
|
-
const fe = D(
|
|
2863
|
+
const fe = D(Q(H));
|
|
2848
2864
|
H.properties.label = fe;
|
|
2849
2865
|
}
|
|
2850
2866
|
F.push(H);
|
|
@@ -2855,11 +2871,11 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2855
2871
|
), F;
|
|
2856
2872
|
}, U = (I, A) => Array.from($.current.values()).filter((F) => JSON.stringify(F.parentBBox) !== JSON.stringify(I)).reduce(
|
|
2857
2873
|
(F, H) => {
|
|
2858
|
-
const W =
|
|
2874
|
+
const W = vs(A, H.bbox);
|
|
2859
2875
|
return W > F.distance ? { id: H.id, key: H.bbox.join(","), distance: W } : F;
|
|
2860
2876
|
},
|
|
2861
2877
|
{ id: "", key: "", distance: -1 / 0 }
|
|
2862
|
-
),
|
|
2878
|
+
), K = async (I) => {
|
|
2863
2879
|
const A = [];
|
|
2864
2880
|
await Et(
|
|
2865
2881
|
c.entities.values,
|
|
@@ -2882,7 +2898,7 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2882
2898
|
const F = U(I, A);
|
|
2883
2899
|
if (F.id === "")
|
|
2884
2900
|
break;
|
|
2885
|
-
await
|
|
2901
|
+
await K(F.id), F.key && $.current.delete(F.key);
|
|
2886
2902
|
}
|
|
2887
2903
|
}, he = async (I, A, F, H) => {
|
|
2888
2904
|
let W = "", X = "", le = [];
|
|
@@ -2915,7 +2931,7 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2915
2931
|
}, we = Le(async (I = 0) => {
|
|
2916
2932
|
if (!v || v.scene.mode === Fe.MORPHING)
|
|
2917
2933
|
return;
|
|
2918
|
-
const A =
|
|
2934
|
+
const A = Es(v);
|
|
2919
2935
|
if (A) {
|
|
2920
2936
|
if (await oe(), G.current.currentZoomLevel > 0 && G.current.currentZoomLevel < f && (c == null ? void 0 : c.entities.values.length) > 0) {
|
|
2921
2937
|
x();
|
|
@@ -2923,7 +2939,7 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2923
2939
|
}
|
|
2924
2940
|
if (G.current.currentZoomLevel >= f) {
|
|
2925
2941
|
c.show = !0;
|
|
2926
|
-
const F =
|
|
2942
|
+
const F = oi(A), H = ws(A);
|
|
2927
2943
|
try {
|
|
2928
2944
|
const W = r.includes("?") ? "&" : "?";
|
|
2929
2945
|
let X = `${r}${W}service=WFS&version=2.0.0&request=GetFeature&typeNames=${l}&outputFormat=application/json&bbox=${F.join(
|
|
@@ -2942,33 +2958,33 @@ const Jt = ze(null), Hs = Jt.Provider, ve = () => {
|
|
|
2942
2958
|
v.scene.globe.tilesLoaded && (clearInterval(A), I());
|
|
2943
2959
|
}, 100);
|
|
2944
2960
|
}), pe = (I, A, F, H) => {
|
|
2945
|
-
i ? i(I, A, F, H) :
|
|
2961
|
+
i ? i(I, A, F, H) : ai(I, A, F, g, H, u);
|
|
2946
2962
|
};
|
|
2947
|
-
return
|
|
2948
|
-
const I = v.dataSources.getByName(
|
|
2963
|
+
return O(() => {
|
|
2964
|
+
const I = v.dataSources.getByName(J)[0];
|
|
2949
2965
|
I && pe(v, I, [], void 0);
|
|
2950
|
-
}, [v.scene.mode]),
|
|
2966
|
+
}, [v.scene.mode]), O(() => {
|
|
2951
2967
|
v.layersManager && v.layersManager.dataLayerList.length > 0 && v.layersManager.findDataLayerById(n.id) !== void 0 && v.layersManager.addMetaToDataLayer(Z);
|
|
2952
|
-
}, [Z]),
|
|
2968
|
+
}, [Z]), O(() => {
|
|
2953
2969
|
var I;
|
|
2954
2970
|
(I = v.layersManager) == null || I.addDataLayer({ options: t, meta: { ...Z }, visualizationHandler: i });
|
|
2955
|
-
}, [v.layersManager]),
|
|
2971
|
+
}, [v.layersManager]), O(() => {
|
|
2956
2972
|
v.dataSources.add(c);
|
|
2957
2973
|
const I = () => {
|
|
2958
2974
|
we();
|
|
2959
2975
|
};
|
|
2960
2976
|
v.scene.camera.moveEnd.addEventListener(I);
|
|
2961
|
-
const A = new
|
|
2962
|
-
return S(A), G.current.currentZoomLevel > 0 && (we(),
|
|
2977
|
+
const A = new zr(v.scene.canvas);
|
|
2978
|
+
return S(A), G.current.currentZoomLevel > 0 && (we(), s.current = !0), () => {
|
|
2963
2979
|
var F;
|
|
2964
|
-
|
|
2980
|
+
ee(v, "_cesiumWidget") !== void 0 && (j.current.clear(), $.current.clear(), v.dataSources.remove(v.dataSources.getByName(`${u == null ? void 0 : u.dataSourcePrefix}${c.name}`)[0]), v.dataSources.remove(c, !0), (F = v.layersManager) == null || F.removeDataLayer(n.id), v.scene.camera.moveEnd.removeEventListener(I), A.removeInputAction(kt.MOUSE_MOVE));
|
|
2965
2981
|
};
|
|
2966
2982
|
}, []), null;
|
|
2967
|
-
},
|
|
2983
|
+
}, Ys = (e) => /* @__PURE__ */ a(Er, { ...e }), Ol = (e) => /* @__PURE__ */ a(Un, { ...e }), Zs = (e) => /* @__PURE__ */ a(Un, { ...e }), Xs = (e) => /* @__PURE__ */ a(Lr, { ...e }), Ks = (e) => /* @__PURE__ */ a(Cr, { ...e }), qs = (e) => /* @__PURE__ */ a(br, { ...e }), Js = (e) => /* @__PURE__ */ a(Tr, { ...e });
|
|
2968
2984
|
var He = function() {
|
|
2969
2985
|
var e = T.Ellipsoid.WGS84, t, n = T.Material.fromType(T.Material.ColorType);
|
|
2970
|
-
function i(
|
|
2971
|
-
this._scene =
|
|
2986
|
+
function i(s, c = new T.Color(1, 1, 0, 0.5), b = new T.Color(1, 1, 1, 1)) {
|
|
2987
|
+
this._scene = s.scene, n.uniforms.color = c, t = b, this._tooltip = {
|
|
2972
2988
|
setVisible: () => {
|
|
2973
2989
|
},
|
|
2974
2990
|
showAt: () => {
|
|
@@ -2976,10 +2992,10 @@ var He = function() {
|
|
|
2976
2992
|
}, this._surfaces = [], this.initialiseHandlers(), this.enhancePrimitives();
|
|
2977
2993
|
}
|
|
2978
2994
|
i.prototype.initialiseHandlers = function() {
|
|
2979
|
-
var
|
|
2995
|
+
var s = this._scene, c = this, b = new T.ScreenSpaceEventHandler(s.canvas);
|
|
2980
2996
|
function p(y, S) {
|
|
2981
2997
|
if (c._handlersMuted != !0) {
|
|
2982
|
-
var m =
|
|
2998
|
+
var m = s.pick(S);
|
|
2983
2999
|
m && m.primitive && m.primitive[y] && m.primitive[y](S);
|
|
2984
3000
|
}
|
|
2985
3001
|
}
|
|
@@ -2991,7 +3007,7 @@ var He = function() {
|
|
|
2991
3007
|
var E;
|
|
2992
3008
|
b.setInputAction(function(y) {
|
|
2993
3009
|
if (c._handlersMuted != !0) {
|
|
2994
|
-
var S =
|
|
3010
|
+
var S = s.pick(y.endPosition);
|
|
2995
3011
|
E && (!S || E != S.primitive) && (!(E.isDestroyed && E.isDestroyed()) && E.mouseOut(y.endPosition), E = null), S && S.primitive && (S = S.primitive, S.mouseOut && (E = S), S.mouseMove && S.mouseMove(y.endPosition));
|
|
2996
3012
|
}
|
|
2997
3013
|
}, T.ScreenSpaceEventType.MOUSE_MOVE), b.setInputAction(function(y) {
|
|
@@ -2999,31 +3015,31 @@ var He = function() {
|
|
|
2999
3015
|
}, T.ScreenSpaceEventType.LEFT_UP), b.setInputAction(function(y) {
|
|
3000
3016
|
p("leftDown", y.position);
|
|
3001
3017
|
}, T.ScreenSpaceEventType.LEFT_DOWN);
|
|
3002
|
-
}, i.prototype.setListener = function(
|
|
3003
|
-
|
|
3004
|
-
}, i.prototype.muteHandlers = function(
|
|
3005
|
-
this._handlersMuted =
|
|
3006
|
-
}, i.prototype.registerEditableShape = function(
|
|
3018
|
+
}, i.prototype.setListener = function(s, c, b) {
|
|
3019
|
+
s[c] = b;
|
|
3020
|
+
}, i.prototype.muteHandlers = function(s) {
|
|
3021
|
+
this._handlersMuted = s;
|
|
3022
|
+
}, i.prototype.registerEditableShape = function(s) {
|
|
3007
3023
|
var c = this;
|
|
3008
|
-
Y(
|
|
3009
|
-
|
|
3010
|
-
}), Y(
|
|
3011
|
-
|
|
3012
|
-
}), Y(
|
|
3013
|
-
|
|
3024
|
+
Y(s, "mouseMove", function(b) {
|
|
3025
|
+
s.setHighlighted(!0), s._editMode || c._tooltip.showAt(b, "Click to edit this shape");
|
|
3026
|
+
}), Y(s, "mouseOut", function(b) {
|
|
3027
|
+
s.setHighlighted(!1), c._tooltip.setVisible(!1);
|
|
3028
|
+
}), Y(s, "leftClick", function(b) {
|
|
3029
|
+
s.setEditMode(!0);
|
|
3014
3030
|
});
|
|
3015
|
-
}, i.prototype.startDrawing = function(
|
|
3016
|
-
this.disableAllEditMode(), this.editCleanUp && this.editCleanUp(), this.editCleanUp =
|
|
3031
|
+
}, i.prototype.startDrawing = function(s) {
|
|
3032
|
+
this.disableAllEditMode(), this.editCleanUp && this.editCleanUp(), this.editCleanUp = s, this.muteHandlers(!0);
|
|
3017
3033
|
}, i.prototype.stopDrawing = function() {
|
|
3018
3034
|
this.editCleanUp && (this.editCleanUp(), this.editCleanUp = null), this.muteHandlers(!1);
|
|
3019
3035
|
}, i.prototype.disableAllHighlights = function() {
|
|
3020
3036
|
this.setHighlighted(void 0);
|
|
3021
|
-
}, i.prototype.setHighlighted = function(
|
|
3022
|
-
this._highlightedSurface && !this._highlightedSurface.isDestroyed() && this._highlightedSurface !=
|
|
3037
|
+
}, i.prototype.setHighlighted = function(s) {
|
|
3038
|
+
this._highlightedSurface && !this._highlightedSurface.isDestroyed() && this._highlightedSurface != s && this._highlightedSurface.setHighlighted(!1), this._highlightedSurface = s;
|
|
3023
3039
|
}, i.prototype.disableAllEditMode = function() {
|
|
3024
3040
|
this.setEdited(void 0);
|
|
3025
|
-
}, i.prototype.setEdited = function(
|
|
3026
|
-
this._editedSurface && !this._editedSurface.isDestroyed() && this._editedSurface.setEditMode(!1), this._editedSurface =
|
|
3041
|
+
}, i.prototype.setEdited = function(s) {
|
|
3042
|
+
this._editedSurface && !this._editedSurface.isDestroyed() && this._editedSurface.setEditMode(!1), this._editedSurface = s;
|
|
3027
3043
|
};
|
|
3028
3044
|
var o = {
|
|
3029
3045
|
ellipsoid: T.Ellipsoid.WGS84,
|
|
@@ -3049,15 +3065,15 @@ var He = function() {
|
|
|
3049
3065
|
}),
|
|
3050
3066
|
material: n
|
|
3051
3067
|
}), L = function() {
|
|
3052
|
-
function
|
|
3068
|
+
function s() {
|
|
3053
3069
|
}
|
|
3054
|
-
return
|
|
3070
|
+
return s.prototype.initialiseOptions = function(c) {
|
|
3055
3071
|
Z(this, c), this._ellipsoid = void 0, this._granularity = void 0, this._height = void 0, this._textureRotationAngle = void 0, this._id = void 0, this._createPrimitive = !0, this._primitive = void 0, this._outlinePolygon = void 0;
|
|
3056
|
-
},
|
|
3072
|
+
}, s.prototype.setAttribute = function(c, b) {
|
|
3057
3073
|
this[c] = b, this._createPrimitive = !0;
|
|
3058
|
-
},
|
|
3074
|
+
}, s.prototype.getAttribute = function(c) {
|
|
3059
3075
|
return this[c];
|
|
3060
|
-
},
|
|
3076
|
+
}, s.prototype.update = function(c, b, p) {
|
|
3061
3077
|
if (!T.defined(this.ellipsoid))
|
|
3062
3078
|
throw new T.DeveloperError("this.ellipsoid must be defined.");
|
|
3063
3079
|
if (!T.defined(this.appearance))
|
|
@@ -3100,25 +3116,25 @@ var He = function() {
|
|
|
3100
3116
|
var y = this._primitive;
|
|
3101
3117
|
y.appearance.material = this.material, y.debugShowBoundingVolume = this.debugShowBoundingVolume, y.update(c, b, p), this._outlinePolygon && this._outlinePolygon.update(c, b, p);
|
|
3102
3118
|
}
|
|
3103
|
-
},
|
|
3119
|
+
}, s.prototype.isDestroyed = function() {
|
|
3104
3120
|
return !1;
|
|
3105
|
-
},
|
|
3121
|
+
}, s.prototype.destroy = function() {
|
|
3106
3122
|
return this._primitive = this._primitive && this._primitive.destroy(), T.destroyObject(this);
|
|
3107
|
-
},
|
|
3123
|
+
}, s.prototype.setStrokeStyle = function(c, b) {
|
|
3108
3124
|
(!this.strokeColor || !this.strokeColor.equals(c) || this.strokeWidth != b) && (this._createPrimitive = !0, this.strokeColor = c, this.strokeWidth = b);
|
|
3109
|
-
},
|
|
3125
|
+
}, s;
|
|
3110
3126
|
}();
|
|
3111
3127
|
i.ExtentPrimitive = function() {
|
|
3112
|
-
function
|
|
3128
|
+
function s(c) {
|
|
3113
3129
|
if (!T.defined(c.extent))
|
|
3114
3130
|
throw new T.DeveloperError("Extent is required");
|
|
3115
3131
|
c = V(c, r), this.initialiseOptions(c), this.setExtent(c.extent);
|
|
3116
3132
|
}
|
|
3117
|
-
return
|
|
3133
|
+
return s.prototype = new L(), s.prototype.setExtent = function(c) {
|
|
3118
3134
|
this.setAttribute("extent", c);
|
|
3119
|
-
},
|
|
3135
|
+
}, s.prototype.getExtent = function() {
|
|
3120
3136
|
return this.getAttribute("extent");
|
|
3121
|
-
},
|
|
3137
|
+
}, s.prototype.getGeometry = function() {
|
|
3122
3138
|
if (T.defined(this.extent))
|
|
3123
3139
|
return new T.RectangleGeometry({
|
|
3124
3140
|
rectangle: this.extent,
|
|
@@ -3128,20 +3144,20 @@ var He = function() {
|
|
|
3128
3144
|
ellipsoid: this.ellipsoid,
|
|
3129
3145
|
granularity: this.granularity
|
|
3130
3146
|
});
|
|
3131
|
-
},
|
|
3147
|
+
}, s.prototype.getOutlineGeometry = function() {
|
|
3132
3148
|
return new T.RectangleOutlineGeometry({
|
|
3133
3149
|
rectangle: this.extent
|
|
3134
3150
|
});
|
|
3135
|
-
},
|
|
3151
|
+
}, s;
|
|
3136
3152
|
}(), i.PolygonPrimitive = function() {
|
|
3137
|
-
function
|
|
3153
|
+
function s(c) {
|
|
3138
3154
|
c = V(c, r), this.initialiseOptions(c), this.isPolygon = !0;
|
|
3139
3155
|
}
|
|
3140
|
-
return
|
|
3156
|
+
return s.prototype = new L(), s.prototype.setPositions = function(c) {
|
|
3141
3157
|
this.setAttribute("positions", c);
|
|
3142
|
-
},
|
|
3158
|
+
}, s.prototype.getPositions = function() {
|
|
3143
3159
|
return this.getAttribute("positions");
|
|
3144
|
-
},
|
|
3160
|
+
}, s.prototype.getGeometry = function() {
|
|
3145
3161
|
if (!(!T.defined(this.positions) || this.positions.length < 3))
|
|
3146
3162
|
return T.PolygonGeometry.fromPositions({
|
|
3147
3163
|
positions: this.positions,
|
|
@@ -3151,26 +3167,26 @@ var He = function() {
|
|
|
3151
3167
|
ellipsoid: this.ellipsoid,
|
|
3152
3168
|
granularity: this.granularity
|
|
3153
3169
|
});
|
|
3154
|
-
},
|
|
3170
|
+
}, s.prototype.getOutlineGeometry = function() {
|
|
3155
3171
|
return T.PolygonOutlineGeometry.fromPositions({
|
|
3156
3172
|
positions: this.getPositions()
|
|
3157
3173
|
});
|
|
3158
|
-
},
|
|
3174
|
+
}, s;
|
|
3159
3175
|
}(), i.CirclePrimitive = function() {
|
|
3160
|
-
function
|
|
3176
|
+
function s(c) {
|
|
3161
3177
|
if (!(T.defined(c.center) && T.defined(c.radius)))
|
|
3162
3178
|
throw new T.DeveloperError("Center and radius are required");
|
|
3163
3179
|
c = V(c, r), this.initialiseOptions(c), this.setRadius(c.radius);
|
|
3164
3180
|
}
|
|
3165
|
-
return
|
|
3181
|
+
return s.prototype = new L(), s.prototype.setCenter = function(c) {
|
|
3166
3182
|
this.setAttribute("center", c);
|
|
3167
|
-
},
|
|
3183
|
+
}, s.prototype.setRadius = function(c) {
|
|
3168
3184
|
this.setAttribute("radius", Math.max(0.1, c));
|
|
3169
|
-
},
|
|
3185
|
+
}, s.prototype.getCenter = function() {
|
|
3170
3186
|
return this.getAttribute("center");
|
|
3171
|
-
},
|
|
3187
|
+
}, s.prototype.getRadius = function() {
|
|
3172
3188
|
return this.getAttribute("radius");
|
|
3173
|
-
},
|
|
3189
|
+
}, s.prototype.getGeometry = function() {
|
|
3174
3190
|
if (T.defined(this.center) && T.defined(this.radius))
|
|
3175
3191
|
return new T.CircleGeometry({
|
|
3176
3192
|
center: this.center,
|
|
@@ -3181,35 +3197,35 @@ var He = function() {
|
|
|
3181
3197
|
ellipsoid: this.ellipsoid,
|
|
3182
3198
|
granularity: this.granularity
|
|
3183
3199
|
});
|
|
3184
|
-
},
|
|
3200
|
+
}, s.prototype.getOutlineGeometry = function() {
|
|
3185
3201
|
return new T.CircleOutlineGeometry({
|
|
3186
3202
|
center: this.getCenter(),
|
|
3187
3203
|
radius: this.getRadius()
|
|
3188
3204
|
});
|
|
3189
|
-
},
|
|
3205
|
+
}, s;
|
|
3190
3206
|
}(), i.EllipsePrimitive = function() {
|
|
3191
|
-
function
|
|
3207
|
+
function s(c) {
|
|
3192
3208
|
if (!(T.defined(c.center) && T.defined(c.semiMajorAxis) && T.defined(c.semiMinorAxis)))
|
|
3193
3209
|
throw new T.DeveloperError("Center and semi major and semi minor axis are required");
|
|
3194
3210
|
c = V(c, f), this.initialiseOptions(c);
|
|
3195
3211
|
}
|
|
3196
|
-
return
|
|
3212
|
+
return s.prototype = new L(), s.prototype.setCenter = function(c) {
|
|
3197
3213
|
this.setAttribute("center", c);
|
|
3198
|
-
},
|
|
3214
|
+
}, s.prototype.setSemiMajorAxis = function(c) {
|
|
3199
3215
|
c < this.getSemiMinorAxis() || this.setAttribute("semiMajorAxis", c);
|
|
3200
|
-
},
|
|
3216
|
+
}, s.prototype.setSemiMinorAxis = function(c) {
|
|
3201
3217
|
c > this.getSemiMajorAxis() || this.setAttribute("semiMinorAxis", c);
|
|
3202
|
-
},
|
|
3218
|
+
}, s.prototype.setRotation = function(c) {
|
|
3203
3219
|
return this.setAttribute("rotation", c);
|
|
3204
|
-
},
|
|
3220
|
+
}, s.prototype.getCenter = function() {
|
|
3205
3221
|
return this.getAttribute("center");
|
|
3206
|
-
},
|
|
3222
|
+
}, s.prototype.getSemiMajorAxis = function() {
|
|
3207
3223
|
return this.getAttribute("semiMajorAxis");
|
|
3208
|
-
},
|
|
3224
|
+
}, s.prototype.getSemiMinorAxis = function() {
|
|
3209
3225
|
return this.getAttribute("semiMinorAxis");
|
|
3210
|
-
},
|
|
3226
|
+
}, s.prototype.getRotation = function() {
|
|
3211
3227
|
return this.getAttribute("rotation");
|
|
3212
|
-
},
|
|
3228
|
+
}, s.prototype.getGeometry = function() {
|
|
3213
3229
|
if (T.defined(this.center) && T.defined(this.semiMajorAxis) && T.defined(this.semiMinorAxis))
|
|
3214
3230
|
return new T.EllipseGeometry({
|
|
3215
3231
|
ellipsoid: this.ellipsoid,
|
|
@@ -3222,31 +3238,31 @@ var He = function() {
|
|
|
3222
3238
|
stRotation: this.textureRotationAngle,
|
|
3223
3239
|
granularity: this.granularity
|
|
3224
3240
|
});
|
|
3225
|
-
},
|
|
3241
|
+
}, s.prototype.getOutlineGeometry = function() {
|
|
3226
3242
|
return new T.EllipseOutlineGeometry({
|
|
3227
3243
|
center: this.getCenter(),
|
|
3228
3244
|
semiMajorAxis: this.getSemiMajorAxis(),
|
|
3229
3245
|
semiMinorAxis: this.getSemiMinorAxis(),
|
|
3230
3246
|
rotation: this.getRotation()
|
|
3231
3247
|
});
|
|
3232
|
-
},
|
|
3248
|
+
}, s;
|
|
3233
3249
|
}(), i.PolylinePrimitive = function() {
|
|
3234
|
-
function
|
|
3250
|
+
function s(c) {
|
|
3235
3251
|
c = V(c, C), this.initialiseOptions(c);
|
|
3236
3252
|
}
|
|
3237
|
-
return
|
|
3253
|
+
return s.prototype = new L(), s.prototype.setPositions = function(c) {
|
|
3238
3254
|
this.setAttribute("positions", c);
|
|
3239
|
-
},
|
|
3255
|
+
}, s.prototype.setWidth = function(c) {
|
|
3240
3256
|
this.setAttribute("width", c);
|
|
3241
|
-
},
|
|
3257
|
+
}, s.prototype.setGeodesic = function(c) {
|
|
3242
3258
|
this.setAttribute("geodesic", c);
|
|
3243
|
-
},
|
|
3259
|
+
}, s.prototype.getPositions = function() {
|
|
3244
3260
|
return this.getAttribute("positions");
|
|
3245
|
-
},
|
|
3261
|
+
}, s.prototype.getWidth = function() {
|
|
3246
3262
|
return this.getAttribute("width");
|
|
3247
|
-
},
|
|
3263
|
+
}, s.prototype.getGeodesic = function(c) {
|
|
3248
3264
|
return this.getAttribute("geodesic");
|
|
3249
|
-
},
|
|
3265
|
+
}, s.prototype.getGeometry = function() {
|
|
3250
3266
|
if (!(!T.defined(this.positions) || this.positions.length < 2))
|
|
3251
3267
|
return new T.PolylineGeometry({
|
|
3252
3268
|
positions: this.positions,
|
|
@@ -3255,7 +3271,7 @@ var He = function() {
|
|
|
3255
3271
|
vertexFormat: T.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
|
|
3256
3272
|
ellipsoid: this.ellipsoid
|
|
3257
3273
|
});
|
|
3258
|
-
},
|
|
3274
|
+
}, s;
|
|
3259
3275
|
}();
|
|
3260
3276
|
var u = {
|
|
3261
3277
|
iconUrl: "./assets/img/dragIcon.png",
|
|
@@ -3270,17 +3286,17 @@ var He = function() {
|
|
|
3270
3286
|
shiftX: 0,
|
|
3271
3287
|
shiftY: 0
|
|
3272
3288
|
};
|
|
3273
|
-
i.prototype.createBillboardGroup = function(
|
|
3289
|
+
i.prototype.createBillboardGroup = function(s, c, b) {
|
|
3274
3290
|
var p = new i.BillboardGroup(this, c);
|
|
3275
|
-
return p.addBillboards(
|
|
3276
|
-
}, i.BillboardGroup = function(
|
|
3277
|
-
this._drawHelper =
|
|
3291
|
+
return p.addBillboards(s, b), p;
|
|
3292
|
+
}, i.BillboardGroup = function(s, c) {
|
|
3293
|
+
this._drawHelper = s, this._scene = s._scene, this._options = V(c, u);
|
|
3278
3294
|
var b = new T.BillboardCollection();
|
|
3279
3295
|
this._scene.primitives.add(b), this._billboards = b, this._orderedBillboards = [];
|
|
3280
|
-
}, i.BillboardGroup.prototype.createBillboard = function(
|
|
3296
|
+
}, i.BillboardGroup.prototype.createBillboard = function(s, c) {
|
|
3281
3297
|
var b = this._billboards.add({
|
|
3282
3298
|
show: !0,
|
|
3283
|
-
position:
|
|
3299
|
+
position: s,
|
|
3284
3300
|
pixelOffset: new T.Cartesian2(this._options.shiftX, this._options.shiftY),
|
|
3285
3301
|
eyeOffset: new T.Cartesian3(0, 0, 0),
|
|
3286
3302
|
horizontalOrigin: T.HorizontalOrigin.CENTER,
|
|
@@ -3303,7 +3319,7 @@ var He = function() {
|
|
|
3303
3319
|
Y(b, "leftDown", function(w) {
|
|
3304
3320
|
function x(P) {
|
|
3305
3321
|
b.position = P;
|
|
3306
|
-
for (var D = 0,
|
|
3322
|
+
for (var D = 0, Q = p._orderedBillboards.length; D < Q && p._orderedBillboards[D] != b; ++D)
|
|
3307
3323
|
;
|
|
3308
3324
|
c.dragHandlers.onDrag && c.dragHandlers.onDrag(S(), P);
|
|
3309
3325
|
}
|
|
@@ -3330,22 +3346,22 @@ var He = function() {
|
|
|
3330
3346
|
}));
|
|
3331
3347
|
}
|
|
3332
3348
|
return b;
|
|
3333
|
-
}, i.BillboardGroup.prototype.insertBillboard = function(
|
|
3334
|
-
this._orderedBillboards.splice(
|
|
3335
|
-
}, i.BillboardGroup.prototype.addBillboard = function(
|
|
3336
|
-
this._orderedBillboards.push(this.createBillboard(
|
|
3337
|
-
}, i.BillboardGroup.prototype.addBillboards = function(
|
|
3338
|
-
for (var b = 0; b <
|
|
3339
|
-
this.addBillboard(
|
|
3340
|
-
}, i.BillboardGroup.prototype.updateBillboardsPositions = function(
|
|
3341
|
-
for (var c = 0; c <
|
|
3342
|
-
this.getBillboard(c).position =
|
|
3349
|
+
}, i.BillboardGroup.prototype.insertBillboard = function(s, c, b) {
|
|
3350
|
+
this._orderedBillboards.splice(s, 0, this.createBillboard(c, b));
|
|
3351
|
+
}, i.BillboardGroup.prototype.addBillboard = function(s, c) {
|
|
3352
|
+
this._orderedBillboards.push(this.createBillboard(s, c));
|
|
3353
|
+
}, i.BillboardGroup.prototype.addBillboards = function(s, c) {
|
|
3354
|
+
for (var b = 0; b < s.length; b++)
|
|
3355
|
+
this.addBillboard(s[b], c);
|
|
3356
|
+
}, i.BillboardGroup.prototype.updateBillboardsPositions = function(s) {
|
|
3357
|
+
for (var c = 0; c < s.length; c++)
|
|
3358
|
+
this.getBillboard(c).position = s[c];
|
|
3343
3359
|
}, i.BillboardGroup.prototype.countBillboards = function() {
|
|
3344
3360
|
return this._orderedBillboards.length;
|
|
3345
|
-
}, i.BillboardGroup.prototype.getBillboard = function(
|
|
3346
|
-
return this._orderedBillboards[
|
|
3347
|
-
}, i.BillboardGroup.prototype.removeBillboard = function(
|
|
3348
|
-
this._billboards.remove(this.getBillboard(
|
|
3361
|
+
}, i.BillboardGroup.prototype.getBillboard = function(s) {
|
|
3362
|
+
return this._orderedBillboards[s];
|
|
3363
|
+
}, i.BillboardGroup.prototype.removeBillboard = function(s) {
|
|
3364
|
+
this._billboards.remove(this.getBillboard(s)), this._orderedBillboards.splice(s, 1);
|
|
3349
3365
|
}, i.BillboardGroup.prototype.remove = function() {
|
|
3350
3366
|
this._billboards = this._billboards && this._billboards.removeAll() && this._billboards.destroy();
|
|
3351
3367
|
}, i.BillboardGroup.prototype.setOnTop = function() {
|
|
@@ -3379,12 +3395,12 @@ var He = function() {
|
|
|
3379
3395
|
}, i.prototype.startDrawingPolyline = function(c) {
|
|
3380
3396
|
var c = V(c, C);
|
|
3381
3397
|
this.startDrawingPolyshape(!1, c);
|
|
3382
|
-
}, i.prototype.startDrawingPolyshape = function(
|
|
3398
|
+
}, i.prototype.startDrawingPolyshape = function(s, c) {
|
|
3383
3399
|
this.startDrawing(function() {
|
|
3384
3400
|
E.remove(m), x.remove(), R.destroy(), y.setVisible(!1), G(p);
|
|
3385
3401
|
});
|
|
3386
|
-
var b = this, p = this._scene, E = p.primitives, y = this._tooltip, S =
|
|
3387
|
-
|
|
3402
|
+
var b = this, p = this._scene, E = p.primitives, y = this._tooltip, S = s ? 3 : 2, m;
|
|
3403
|
+
s ? m = new He.PolygonPrimitive(c) : m = new He.PolylinePrimitive(c), m.asynchronous = !1, E.add(m);
|
|
3388
3404
|
var w = [], x = new i.BillboardGroup(this, u), R = new T.ScreenSpaceEventHandler(p.canvas);
|
|
3389
3405
|
k(p), R.setInputAction(function(M) {
|
|
3390
3406
|
if (M.position != null) {
|
|
@@ -3413,19 +3429,19 @@ var He = function() {
|
|
|
3413
3429
|
}
|
|
3414
3430
|
}, T.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
|
|
3415
3431
|
};
|
|
3416
|
-
function v(
|
|
3432
|
+
function v(s) {
|
|
3417
3433
|
return e.cartographicArrayToCartesianArray([
|
|
3418
|
-
T.Rectangle.northwest(
|
|
3419
|
-
T.Rectangle.northeast(
|
|
3420
|
-
T.Rectangle.southeast(
|
|
3421
|
-
T.Rectangle.southwest(
|
|
3434
|
+
T.Rectangle.northwest(s),
|
|
3435
|
+
T.Rectangle.northeast(s),
|
|
3436
|
+
T.Rectangle.southeast(s),
|
|
3437
|
+
T.Rectangle.southwest(s)
|
|
3422
3438
|
]);
|
|
3423
3439
|
}
|
|
3424
|
-
function k(
|
|
3425
|
-
|
|
3440
|
+
function k(s) {
|
|
3441
|
+
s && (s.canvas.style.cursor = "crosshair");
|
|
3426
3442
|
}
|
|
3427
|
-
function G(
|
|
3428
|
-
|
|
3443
|
+
function G(s) {
|
|
3444
|
+
s && (s.canvas.style.cursor = "");
|
|
3429
3445
|
}
|
|
3430
3446
|
i.prototype.startDrawingExtent = function(c) {
|
|
3431
3447
|
var c = V(c, r);
|
|
@@ -3461,8 +3477,8 @@ var He = function() {
|
|
|
3461
3477
|
else {
|
|
3462
3478
|
var D = p.camera.pickEllipsoid(P, e);
|
|
3463
3479
|
if (D) {
|
|
3464
|
-
var
|
|
3465
|
-
R(
|
|
3480
|
+
var Q = $(S, e.cartesianToCartographic(D));
|
|
3481
|
+
R(Q), y.showAt(P, "<p>Drag to change rectangle extent</p><p>Click again to finish drawing</p>");
|
|
3466
3482
|
}
|
|
3467
3483
|
}
|
|
3468
3484
|
}, T.ScreenSpaceEventType.MOUSE_MOVE);
|
|
@@ -3493,14 +3509,14 @@ var He = function() {
|
|
|
3493
3509
|
}
|
|
3494
3510
|
}, T.ScreenSpaceEventType.MOUSE_MOVE);
|
|
3495
3511
|
}, i.prototype.enhancePrimitives = function() {
|
|
3496
|
-
var
|
|
3512
|
+
var s = this;
|
|
3497
3513
|
T.Billboard.prototype.setEditable = function() {
|
|
3498
3514
|
if (this._editable)
|
|
3499
3515
|
return;
|
|
3500
3516
|
this._editable = !0;
|
|
3501
3517
|
var p = this, E = this;
|
|
3502
3518
|
function y(S) {
|
|
3503
|
-
|
|
3519
|
+
s._scene.screenSpaceCameraController.enableRotate = S;
|
|
3504
3520
|
}
|
|
3505
3521
|
Y(p, "leftDown", function(S) {
|
|
3506
3522
|
function m(R) {
|
|
@@ -3509,52 +3525,52 @@ var He = function() {
|
|
|
3509
3525
|
function w(R) {
|
|
3510
3526
|
x.destroy(), y(!0), E.executeListeners({ name: "dragEnd", positions: R });
|
|
3511
3527
|
}
|
|
3512
|
-
var x = new T.ScreenSpaceEventHandler(
|
|
3528
|
+
var x = new T.ScreenSpaceEventHandler(s._scene.canvas);
|
|
3513
3529
|
x.setInputAction(function(R) {
|
|
3514
|
-
var M =
|
|
3530
|
+
var M = s._scene.camera.pickEllipsoid(R.endPosition, e);
|
|
3515
3531
|
M ? m(M) : w(M);
|
|
3516
3532
|
}, T.ScreenSpaceEventType.MOUSE_MOVE), x.setInputAction(function(R) {
|
|
3517
|
-
w(
|
|
3533
|
+
w(s._scene.camera.pickEllipsoid(R.position, e));
|
|
3518
3534
|
}, T.ScreenSpaceEventType.LEFT_UP), y(!1);
|
|
3519
|
-
}),
|
|
3535
|
+
}), J(p);
|
|
3520
3536
|
};
|
|
3521
3537
|
function c(p) {
|
|
3522
|
-
|
|
3538
|
+
s._scene, !(this._highlighted && this._highlighted == p) && this._editMode !== !0 && (this._highlighted = p, p ? (s.setHighlighted(this), this._strokeColor = this.strokeColor, this.setStrokeStyle(T.Color.fromCssColorString("white"), this.strokeWidth)) : this._strokeColor ? this.setStrokeStyle(this._strokeColor, this.strokeWidth) : this.setStrokeStyle(void 0, void 0));
|
|
3523
3539
|
}
|
|
3524
3540
|
function b(p) {
|
|
3525
3541
|
if (this._editMode != p)
|
|
3526
|
-
if (
|
|
3527
|
-
|
|
3528
|
-
var E =
|
|
3542
|
+
if (s.disableAllHighlights(), p) {
|
|
3543
|
+
s.setEdited(this);
|
|
3544
|
+
var E = s._scene, y = this;
|
|
3529
3545
|
if (this._markers == null) {
|
|
3530
|
-
let D = function(U,
|
|
3531
|
-
var re = U - 1 < 0 ?
|
|
3546
|
+
let D = function(U, K) {
|
|
3547
|
+
var re = U - 1 < 0 ? K.length - 1 : U - 1;
|
|
3532
3548
|
re < m.countBillboards() && (m.getBillboard(re).position = te(re)), re = U, re < m.countBillboards() && (m.getBillboard(re).position = te(re));
|
|
3533
|
-
},
|
|
3549
|
+
}, Q = function() {
|
|
3534
3550
|
y.executeListeners({
|
|
3535
3551
|
name: "onEdited",
|
|
3536
3552
|
positions: y.positions
|
|
3537
3553
|
});
|
|
3538
3554
|
}, te = function(U) {
|
|
3539
|
-
var
|
|
3555
|
+
var K = y.positions;
|
|
3540
3556
|
return e.cartographicToCartesian(
|
|
3541
3557
|
new T.EllipsoidGeodesic(
|
|
3542
|
-
e.cartesianToCartographic(
|
|
3543
|
-
e.cartesianToCartographic(
|
|
3558
|
+
e.cartesianToCartographic(K[U]),
|
|
3559
|
+
e.cartesianToCartographic(K[U < K.length - 1 ? U + 1 : 0])
|
|
3544
3560
|
).interpolateUsingFraction(0.5)
|
|
3545
3561
|
);
|
|
3546
3562
|
};
|
|
3547
|
-
var S = new i.BillboardGroup(
|
|
3563
|
+
var S = new i.BillboardGroup(s, g), m = new i.BillboardGroup(s, _), w = {
|
|
3548
3564
|
dragHandlers: {
|
|
3549
|
-
onDrag: function(U,
|
|
3550
|
-
y.positions[U] =
|
|
3565
|
+
onDrag: function(U, K) {
|
|
3566
|
+
y.positions[U] = K, D(U, y.positions), y._createPrimitive = !0;
|
|
3551
3567
|
},
|
|
3552
|
-
onDragEnd: function(U,
|
|
3553
|
-
y._createPrimitive = !0,
|
|
3568
|
+
onDragEnd: function(U, K) {
|
|
3569
|
+
y._createPrimitive = !0, Q();
|
|
3554
3570
|
}
|
|
3555
3571
|
},
|
|
3556
3572
|
onDoubleClick: function(U) {
|
|
3557
|
-
y.positions.length < 4 || (y.positions.splice(U, 1), y._createPrimitive = !0, S.removeBillboard(U), m.removeBillboard(U), D(U, y.positions),
|
|
3573
|
+
y.positions.length < 4 || (y.positions.splice(U, 1), y._createPrimitive = !0, S.removeBillboard(U), m.removeBillboard(U), D(U, y.positions), Q());
|
|
3558
3574
|
},
|
|
3559
3575
|
tooltip: function() {
|
|
3560
3576
|
if (y.positions.length > 3)
|
|
@@ -3566,14 +3582,14 @@ var He = function() {
|
|
|
3566
3582
|
x.push(te(R));
|
|
3567
3583
|
var P = {
|
|
3568
3584
|
dragHandlers: {
|
|
3569
|
-
onDragStart: function(U,
|
|
3570
|
-
this.index = U + 1, y.positions.splice(this.index, 0,
|
|
3585
|
+
onDragStart: function(U, K) {
|
|
3586
|
+
this.index = U + 1, y.positions.splice(this.index, 0, K), y._createPrimitive = !0;
|
|
3571
3587
|
},
|
|
3572
|
-
onDrag: function(U,
|
|
3573
|
-
y.positions[this.index] =
|
|
3588
|
+
onDrag: function(U, K) {
|
|
3589
|
+
y.positions[this.index] = K, y._createPrimitive = !0;
|
|
3574
3590
|
},
|
|
3575
|
-
onDragEnd: function(U,
|
|
3576
|
-
S.insertBillboard(this.index,
|
|
3591
|
+
onDragEnd: function(U, K) {
|
|
3592
|
+
S.insertBillboard(this.index, K, w), m.getBillboard(this.index - 1).position = te(this.index - 1), m.insertBillboard(this.index, te(this.index), P), y._createPrimitive = !0, Q();
|
|
3577
3593
|
}
|
|
3578
3594
|
},
|
|
3579
3595
|
tooltip: function() {
|
|
@@ -3581,8 +3597,8 @@ var He = function() {
|
|
|
3581
3597
|
}
|
|
3582
3598
|
};
|
|
3583
3599
|
m.addBillboards(x, P), this._editMarkers = m, this._globeClickhandler = new T.ScreenSpaceEventHandler(E.canvas), this._globeClickhandler.setInputAction(function(U) {
|
|
3584
|
-
var
|
|
3585
|
-
|
|
3600
|
+
var K = E.pick(U.position);
|
|
3601
|
+
K && K.primitive || y.setEditMode(!1);
|
|
3586
3602
|
}, T.ScreenSpaceEventType.LEFT_CLICK), S.setOnTop(), m.setOnTop();
|
|
3587
3603
|
}
|
|
3588
3604
|
this._editMode = !0;
|
|
@@ -3592,31 +3608,31 @@ var He = function() {
|
|
|
3592
3608
|
He.PolylinePrimitive.prototype.setEditable = function() {
|
|
3593
3609
|
if (!this.setEditMode) {
|
|
3594
3610
|
var p = this;
|
|
3595
|
-
p.isPolygon = !1, p.asynchronous = !1,
|
|
3611
|
+
p.isPolygon = !1, p.asynchronous = !1, s.registerEditableShape(p), p.setEditMode = b;
|
|
3596
3612
|
var E = this.width;
|
|
3597
3613
|
p.setHighlighted = function(y) {
|
|
3598
|
-
this._editMode !== !0 && (y ? (
|
|
3614
|
+
this._editMode !== !0 && (y ? (s.setHighlighted(this), this.setWidth(E * 2)) : this.setWidth(E));
|
|
3599
3615
|
}, p.getExtent = function() {
|
|
3600
3616
|
return T.Rectangle.fromCartographicArray(e.cartesianArrayToCartographicArray(this.positions));
|
|
3601
|
-
},
|
|
3617
|
+
}, J(p), p.setEditMode(!1);
|
|
3602
3618
|
}
|
|
3603
3619
|
}, He.PolygonPrimitive.prototype.setEditable = function() {
|
|
3604
3620
|
var p = this;
|
|
3605
|
-
p.asynchronous = !1,
|
|
3621
|
+
p.asynchronous = !1, s._scene, s.registerEditableShape(p), p.setEditMode = b, p.setHighlighted = c, J(p), p.setEditMode(!1);
|
|
3606
3622
|
}, He.ExtentPrimitive.prototype.setEditable = function() {
|
|
3607
3623
|
if (!this.setEditMode) {
|
|
3608
|
-
var p = this, E =
|
|
3609
|
-
|
|
3624
|
+
var p = this, E = s._scene;
|
|
3625
|
+
s.registerEditableShape(p), p.asynchronous = !1, p.setEditMode = function(y) {
|
|
3610
3626
|
if (this._editMode != y)
|
|
3611
|
-
if (
|
|
3612
|
-
if (
|
|
3627
|
+
if (s.disableAllHighlights(), y) {
|
|
3628
|
+
if (s.setEdited(this), this._markers == null) {
|
|
3613
3629
|
let w = function() {
|
|
3614
3630
|
p.executeListeners({
|
|
3615
3631
|
name: "onEdited",
|
|
3616
3632
|
extent: p.extent
|
|
3617
3633
|
});
|
|
3618
3634
|
};
|
|
3619
|
-
var S = new i.BillboardGroup(
|
|
3635
|
+
var S = new i.BillboardGroup(s, g), m = {
|
|
3620
3636
|
dragHandlers: {
|
|
3621
3637
|
onDrag: function(x, R) {
|
|
3622
3638
|
var M = S.getBillboard((x + 2) % 4).position;
|
|
@@ -3638,15 +3654,15 @@ var He = function() {
|
|
|
3638
3654
|
this._editMode = !0;
|
|
3639
3655
|
} else
|
|
3640
3656
|
this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
|
|
3641
|
-
}, p.setHighlighted = c,
|
|
3657
|
+
}, p.setHighlighted = c, J(p), p.setEditMode(!1);
|
|
3642
3658
|
}
|
|
3643
3659
|
}, i.EllipsePrimitive.prototype.setEditable = function() {
|
|
3644
3660
|
if (!this.setEditMode) {
|
|
3645
|
-
var p = this, E =
|
|
3646
|
-
p.asynchronous = !1,
|
|
3661
|
+
var p = this, E = s._scene;
|
|
3662
|
+
p.asynchronous = !1, s.registerEditableShape(p), p.setEditMode = function(y) {
|
|
3647
3663
|
if (this._editMode != y)
|
|
3648
|
-
if (
|
|
3649
|
-
|
|
3664
|
+
if (s.disableAllHighlights(), y) {
|
|
3665
|
+
s.setEdited(this);
|
|
3650
3666
|
var S = this;
|
|
3651
3667
|
if (this._markers == null) {
|
|
3652
3668
|
let x = function() {
|
|
@@ -3667,7 +3683,7 @@ var He = function() {
|
|
|
3667
3683
|
rotation: 0
|
|
3668
3684
|
});
|
|
3669
3685
|
};
|
|
3670
|
-
var m = new i.BillboardGroup(
|
|
3686
|
+
var m = new i.BillboardGroup(s, g), w = {
|
|
3671
3687
|
dragHandlers: {
|
|
3672
3688
|
onDrag: function(M, P) {
|
|
3673
3689
|
var D = T.Cartesian3.distance(p.getCenter(), P);
|
|
@@ -3689,7 +3705,7 @@ var He = function() {
|
|
|
3689
3705
|
this._editMode = !0;
|
|
3690
3706
|
} else
|
|
3691
3707
|
this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
|
|
3692
|
-
}, p.setHighlighted = c,
|
|
3708
|
+
}, p.setHighlighted = c, J(p), p.setEditMode(!1);
|
|
3693
3709
|
}
|
|
3694
3710
|
}, i.CirclePrimitive.prototype.getCircleCartesianCoordinates = function(p) {
|
|
3695
3711
|
for (var E = T.CircleOutlineGeometry.createGeometry(
|
|
@@ -3704,11 +3720,11 @@ var He = function() {
|
|
|
3704
3720
|
return m;
|
|
3705
3721
|
}, i.CirclePrimitive.prototype.setEditable = function() {
|
|
3706
3722
|
if (!this.setEditMode) {
|
|
3707
|
-
var p = this, E =
|
|
3708
|
-
p.asynchronous = !1,
|
|
3723
|
+
var p = this, E = s._scene;
|
|
3724
|
+
p.asynchronous = !1, s.registerEditableShape(p), p.setEditMode = function(y) {
|
|
3709
3725
|
if (this._editMode != y)
|
|
3710
|
-
if (
|
|
3711
|
-
|
|
3726
|
+
if (s.disableAllHighlights(), y) {
|
|
3727
|
+
s.setEdited(this);
|
|
3712
3728
|
var S = this;
|
|
3713
3729
|
if (this._markers == null) {
|
|
3714
3730
|
let x = function() {
|
|
@@ -3720,7 +3736,7 @@ var He = function() {
|
|
|
3720
3736
|
radius: p.getRadius()
|
|
3721
3737
|
});
|
|
3722
3738
|
};
|
|
3723
|
-
var m = new i.BillboardGroup(
|
|
3739
|
+
var m = new i.BillboardGroup(s, g), w = {
|
|
3724
3740
|
dragHandlers: {
|
|
3725
3741
|
onDrag: function(M, P) {
|
|
3726
3742
|
p.setRadius(T.Cartesian3.distance(p.getCenter(), P)), m.updateBillboardsPositions(x());
|
|
@@ -3741,11 +3757,11 @@ var He = function() {
|
|
|
3741
3757
|
this._editMode = !0;
|
|
3742
3758
|
} else
|
|
3743
3759
|
this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
|
|
3744
|
-
}, p.setHighlighted = c,
|
|
3760
|
+
}, p.setHighlighted = c, J(p), p.setEditMode(!1);
|
|
3745
3761
|
}
|
|
3746
3762
|
};
|
|
3747
3763
|
}, i.DrawHelperWidget = function() {
|
|
3748
|
-
function
|
|
3764
|
+
function s(c, b) {
|
|
3749
3765
|
if (!T.defined(b.container))
|
|
3750
3766
|
throw new T.DeveloperError("Container is required");
|
|
3751
3767
|
var p = {
|
|
@@ -3766,10 +3782,10 @@ var He = function() {
|
|
|
3766
3782
|
function S(x, R, M, P) {
|
|
3767
3783
|
var D = document.createElement("DIV");
|
|
3768
3784
|
D.className = "button", D.title = M, y.appendChild(D), D.onclick = P;
|
|
3769
|
-
var
|
|
3770
|
-
D.appendChild(
|
|
3785
|
+
var Q = document.createElement("SPAN");
|
|
3786
|
+
D.appendChild(Q);
|
|
3771
3787
|
var te = document.createElement("IMG");
|
|
3772
|
-
return te.src = R,
|
|
3788
|
+
return te.src = R, Q.appendChild(te), D;
|
|
3773
3789
|
}
|
|
3774
3790
|
var m = c._scene;
|
|
3775
3791
|
S("marker", b.markerIcon, "Click to start drawing a 2D marker", function() {
|
|
@@ -3819,50 +3835,50 @@ var He = function() {
|
|
|
3819
3835
|
var w = document.createElement("DIV");
|
|
3820
3836
|
w.className = "divider", y.appendChild(w), S("clear", b.clearIcon, "Remove all primitives", function() {
|
|
3821
3837
|
m.primitives.removeAll();
|
|
3822
|
-
}),
|
|
3838
|
+
}), J(this);
|
|
3823
3839
|
}
|
|
3824
|
-
return
|
|
3825
|
-
}(), i.prototype.addToolbar = function(
|
|
3826
|
-
return c = V(c, { container:
|
|
3840
|
+
return s;
|
|
3841
|
+
}(), i.prototype.addToolbar = function(s, c) {
|
|
3842
|
+
return c = V(c, { container: s }), new i.DrawHelperWidget(this, c);
|
|
3827
3843
|
};
|
|
3828
|
-
function $(
|
|
3844
|
+
function $(s, c) {
|
|
3829
3845
|
var b = new T.Rectangle();
|
|
3830
|
-
b.west = Math.min(
|
|
3846
|
+
b.west = Math.min(s.longitude, c.longitude), b.east = Math.max(s.longitude, c.longitude), b.south = Math.min(s.latitude, c.latitude), b.north = Math.max(s.latitude, c.latitude);
|
|
3831
3847
|
var p = T.Math.EPSILON7;
|
|
3832
3848
|
return b.east - b.west < p && (b.east += p * 2), b.north - b.south < p && (b.north += p * 2), b;
|
|
3833
3849
|
}
|
|
3834
|
-
function j(
|
|
3835
|
-
return
|
|
3850
|
+
function j(s, c) {
|
|
3851
|
+
return s.longitude.toFixed(c || 3) + ", " + s.latitude.toFixed(c || 3);
|
|
3836
3852
|
}
|
|
3837
|
-
function N(
|
|
3838
|
-
if (
|
|
3839
|
-
return
|
|
3840
|
-
if (
|
|
3841
|
-
return new
|
|
3842
|
-
c = c || new
|
|
3843
|
-
for (var b in
|
|
3844
|
-
c[b] = typeof c[b] > "u" ? N(
|
|
3853
|
+
function N(s, c) {
|
|
3854
|
+
if (s == null || typeof s != "object" || s.constructor != Object && s.constructor != Array)
|
|
3855
|
+
return s;
|
|
3856
|
+
if (s.constructor == Date || s.constructor == RegExp || s.constructor == Function || s.constructor == String || s.constructor == Number || s.constructor == Boolean)
|
|
3857
|
+
return new s.constructor(s);
|
|
3858
|
+
c = c || new s.constructor();
|
|
3859
|
+
for (var b in s)
|
|
3860
|
+
c[b] = typeof c[b] > "u" ? N(s[b], null) : c[b];
|
|
3845
3861
|
return c;
|
|
3846
3862
|
}
|
|
3847
|
-
function Z(
|
|
3848
|
-
|
|
3863
|
+
function Z(s, c) {
|
|
3864
|
+
s = s || {};
|
|
3849
3865
|
var b;
|
|
3850
3866
|
for (b in c)
|
|
3851
|
-
|
|
3867
|
+
s[b] === void 0 && (s[b] = N(c[b]));
|
|
3852
3868
|
}
|
|
3853
|
-
function V(
|
|
3854
|
-
var b = N(
|
|
3869
|
+
function V(s, c) {
|
|
3870
|
+
var b = N(s), p;
|
|
3855
3871
|
for (p in c)
|
|
3856
3872
|
b[p] === void 0 && (b[p] = N(c[p]));
|
|
3857
3873
|
return b;
|
|
3858
3874
|
}
|
|
3859
|
-
function Y(
|
|
3860
|
-
|
|
3875
|
+
function Y(s, c, b) {
|
|
3876
|
+
s[c] = b;
|
|
3861
3877
|
}
|
|
3862
|
-
function
|
|
3863
|
-
|
|
3878
|
+
function J(s) {
|
|
3879
|
+
s._listeners = {}, s.addListener = function(c, b) {
|
|
3864
3880
|
return this._listeners[c] = this._listeners[c] || [], this._listeners[c].push(b), this._listeners[c].length;
|
|
3865
|
-
},
|
|
3881
|
+
}, s.executeListeners = function(c, b) {
|
|
3866
3882
|
if (this._listeners[c.name] && this._listeners[c.name].length > 0)
|
|
3867
3883
|
for (var p = 0; p < this._listeners[c.name].length; p++)
|
|
3868
3884
|
this._listeners[c.name][p](c);
|
|
@@ -3872,7 +3888,7 @@ var He = function() {
|
|
|
3872
3888
|
}
|
|
3873
3889
|
return i;
|
|
3874
3890
|
}();
|
|
3875
|
-
const
|
|
3891
|
+
const Qs = (e) => {
|
|
3876
3892
|
const t = e.map((n) => {
|
|
3877
3893
|
const i = Oe.fromCartesian(n);
|
|
3878
3894
|
return [ne.toDegrees(i.longitude), ne.toDegrees(i.latitude)];
|
|
@@ -3885,23 +3901,23 @@ const Xs = (e) => {
|
|
|
3885
3901
|
coordinates: [t]
|
|
3886
3902
|
}
|
|
3887
3903
|
};
|
|
3888
|
-
},
|
|
3889
|
-
const t =
|
|
3904
|
+
}, ea = (e) => {
|
|
3905
|
+
const t = qn.lineString([
|
|
3890
3906
|
[ne.toDegrees(e.west), ne.toDegrees(e.south)],
|
|
3891
3907
|
[ne.toDegrees(e.east), ne.toDegrees(e.north)]
|
|
3892
3908
|
]);
|
|
3893
3909
|
return ut(dt(t));
|
|
3894
|
-
},
|
|
3910
|
+
}, ta = 2, na = (e, t) => {
|
|
3895
3911
|
switch (e) {
|
|
3896
3912
|
case be.BOX: {
|
|
3897
|
-
if (t.features.length !==
|
|
3913
|
+
if (t.features.length !== ta)
|
|
3898
3914
|
throw new Error(`${e} must have 2 points`);
|
|
3899
3915
|
const n = un(t.features, (o) => {
|
|
3900
3916
|
var r;
|
|
3901
|
-
return ((r = o.properties) == null ? void 0 : r.type) ===
|
|
3917
|
+
return ((r = o.properties) == null ? void 0 : r.type) === Bt.BOTTOM_LEFT;
|
|
3902
3918
|
}), i = un(t.features, (o) => {
|
|
3903
3919
|
var r;
|
|
3904
|
-
return ((r = o.properties) == null ? void 0 : r.type) ===
|
|
3920
|
+
return ((r = o.properties) == null ? void 0 : r.type) === Bt.TOP_RIGHT;
|
|
3905
3921
|
});
|
|
3906
3922
|
if (i && n) {
|
|
3907
3923
|
if (n.geometry.coordinates[0] === i.geometry.coordinates[0] && n.geometry.coordinates[1] === i.geometry.coordinates[1])
|
|
@@ -3918,20 +3934,20 @@ const Xs = (e) => {
|
|
|
3918
3934
|
default:
|
|
3919
3935
|
throw new Error(`${e} type geoJSON still not supported`);
|
|
3920
3936
|
}
|
|
3921
|
-
},
|
|
3922
|
-
const t =
|
|
3937
|
+
}, ia = (e) => {
|
|
3938
|
+
const t = qn.lineString([
|
|
3923
3939
|
[e.west, e.south],
|
|
3924
3940
|
[e.east, e.north]
|
|
3925
3941
|
]);
|
|
3926
|
-
return ut(dt(t)).geometry.coordinates[0].map((i) =>
|
|
3927
|
-
},
|
|
3928
|
-
const { drawState: t, drawingMaterial: n, drawingVertexColor: i, material: o, hollow: r, outlineWidth: l } = e, d = ve(), [h, f] =
|
|
3929
|
-
|
|
3942
|
+
return ut(dt(t)).geometry.coordinates[0].map((i) => Se.fromRadiansArray(i)[0]);
|
|
3943
|
+
}, kl = (e) => {
|
|
3944
|
+
const { drawState: t, drawingMaterial: n, drawingVertexColor: i, material: o, hollow: r, outlineWidth: l } = e, d = ve(), [h, f] = B();
|
|
3945
|
+
O(() => {
|
|
3930
3946
|
f(
|
|
3931
3947
|
// eslint-disable-next-line
|
|
3932
3948
|
new He(d, n, i)
|
|
3933
3949
|
);
|
|
3934
|
-
}, []),
|
|
3950
|
+
}, []), O(() => {
|
|
3935
3951
|
if (h) {
|
|
3936
3952
|
const L = h;
|
|
3937
3953
|
if (t.drawing)
|
|
@@ -3942,7 +3958,7 @@ const Xs = (e) => {
|
|
|
3942
3958
|
t.handler({
|
|
3943
3959
|
primitive: u,
|
|
3944
3960
|
type: be.POLYGON,
|
|
3945
|
-
geojson:
|
|
3961
|
+
geojson: Qs(u)
|
|
3946
3962
|
});
|
|
3947
3963
|
}
|
|
3948
3964
|
});
|
|
@@ -3953,7 +3969,7 @@ const Xs = (e) => {
|
|
|
3953
3969
|
t.handler({
|
|
3954
3970
|
primitive: u,
|
|
3955
3971
|
type: be.BOX,
|
|
3956
|
-
geojson:
|
|
3972
|
+
geojson: ea(u)
|
|
3957
3973
|
});
|
|
3958
3974
|
}
|
|
3959
3975
|
});
|
|
@@ -3967,49 +3983,49 @@ const Xs = (e) => {
|
|
|
3967
3983
|
}, [t, h]);
|
|
3968
3984
|
const C = (L) => {
|
|
3969
3985
|
try {
|
|
3970
|
-
let u = L.coordinates !== void 0 ? L.coordinates :
|
|
3986
|
+
let u = L.coordinates !== void 0 ? L.coordinates : na(L.type, L.geojson);
|
|
3971
3987
|
if (r !== !0)
|
|
3972
3988
|
switch (L.type) {
|
|
3973
3989
|
case be.BOX:
|
|
3974
|
-
return /* @__PURE__ */
|
|
3990
|
+
return /* @__PURE__ */ a(Ks, { coordinates: u, material: o ?? n });
|
|
3975
3991
|
case be.POLYGON:
|
|
3976
|
-
return /* @__PURE__ */
|
|
3992
|
+
return /* @__PURE__ */ a(Xs, { hierarchy: new Zn(u), material: o ?? n });
|
|
3977
3993
|
default:
|
|
3978
|
-
return /* @__PURE__ */
|
|
3994
|
+
return /* @__PURE__ */ a(ge, {});
|
|
3979
3995
|
}
|
|
3980
3996
|
else {
|
|
3981
3997
|
switch (L.type) {
|
|
3982
3998
|
case be.BOX:
|
|
3983
|
-
u =
|
|
3999
|
+
u = ia(u);
|
|
3984
4000
|
break;
|
|
3985
4001
|
case be.POLYGON:
|
|
3986
4002
|
u = [...u, u[0]];
|
|
3987
4003
|
break;
|
|
3988
4004
|
default:
|
|
3989
|
-
return /* @__PURE__ */
|
|
4005
|
+
return /* @__PURE__ */ a(ge, {});
|
|
3990
4006
|
}
|
|
3991
|
-
return /* @__PURE__ */
|
|
4007
|
+
return /* @__PURE__ */ a(Js, { clampToGround: !0, positions: u, width: l ?? 1, material: o ?? n });
|
|
3992
4008
|
}
|
|
3993
4009
|
} catch (u) {
|
|
3994
|
-
return console.error(u), /* @__PURE__ */
|
|
4010
|
+
return console.error(u), /* @__PURE__ */ a(ge, {});
|
|
3995
4011
|
}
|
|
3996
4012
|
};
|
|
3997
|
-
return /* @__PURE__ */
|
|
3998
|
-
/* @__PURE__ */ z(
|
|
4013
|
+
return /* @__PURE__ */ a(qs, { ...e, children: e.drawings.map((L, u) => /* @__PURE__ */ z(Ys, { name: L.name, children: [
|
|
4014
|
+
/* @__PURE__ */ z(Zs, { children: [
|
|
3999
4015
|
/* @__PURE__ */ z("h1", { children: [
|
|
4000
4016
|
"Drawed Entity ",
|
|
4001
4017
|
L.name
|
|
4002
4018
|
] }),
|
|
4003
|
-
/* @__PURE__ */
|
|
4019
|
+
/* @__PURE__ */ a("p", { children: "This is description of drawed entity" })
|
|
4004
4020
|
] }),
|
|
4005
4021
|
C(L)
|
|
4006
4022
|
] }, L.id)) });
|
|
4007
|
-
},
|
|
4023
|
+
}, Nl = () => {
|
|
4008
4024
|
const e = ve();
|
|
4009
|
-
return
|
|
4010
|
-
e.extend(
|
|
4025
|
+
return O(() => {
|
|
4026
|
+
e.extend(Ur);
|
|
4011
4027
|
}, [e]), null;
|
|
4012
|
-
},
|
|
4028
|
+
}, ra = -25, An = 2, Bl = (e) => {
|
|
4013
4029
|
const t = ve(), n = (r, l = ",") => r.slice(r.indexOf(`
|
|
4014
4030
|
`) + 1).split(`
|
|
4015
4031
|
`).map((f) => {
|
|
@@ -4024,9 +4040,9 @@ const Xs = (e) => {
|
|
|
4024
4040
|
const l = new FileReader();
|
|
4025
4041
|
l.onload = (h) => {
|
|
4026
4042
|
var u;
|
|
4027
|
-
const f = (u = h.target) == null ? void 0 : u.result, C = n(f), L =
|
|
4043
|
+
const f = (u = h.target) == null ? void 0 : u.result, C = n(f), L = Wt.WGS84;
|
|
4028
4044
|
console.log(`Loaded CSV content:
|
|
4029
|
-
`, f),
|
|
4045
|
+
`, f), $r(
|
|
4030
4046
|
t.terrainProvider,
|
|
4031
4047
|
C.map((g) => g.cartographic)
|
|
4032
4048
|
).then(
|
|
@@ -4044,11 +4060,11 @@ const Xs = (e) => {
|
|
|
4044
4060
|
text: (v + An).toString(),
|
|
4045
4061
|
font: "14pt monospace",
|
|
4046
4062
|
fillColor: Ge.BLACK,
|
|
4047
|
-
style:
|
|
4063
|
+
style: Xn.FILL_AND_OUTLINE,
|
|
4048
4064
|
outlineWidth: 4,
|
|
4049
4065
|
outlineColor: Ge.BLACK,
|
|
4050
4066
|
verticalOrigin: st.BOTTOM,
|
|
4051
|
-
pixelOffset: new Ie(0,
|
|
4067
|
+
pixelOffset: new Ie(0, ra)
|
|
4052
4068
|
},
|
|
4053
4069
|
description: `
|
|
4054
4070
|
Long: ${C[v].cartesian.x} </br>
|
|
@@ -4077,7 +4093,7 @@ const Xs = (e) => {
|
|
|
4077
4093
|
const f = new Blob([h], { type: "text/csv;charset=utf-8;" }), C = document.createElement("a"), L = URL.createObjectURL(f);
|
|
4078
4094
|
C.setAttribute("href", L), C.setAttribute("download", r), C.style.visibility = "hidden", document.body.appendChild(C), C.click(), document.body.removeChild(C);
|
|
4079
4095
|
};
|
|
4080
|
-
return /* @__PURE__ */
|
|
4096
|
+
return /* @__PURE__ */ a(ge, { children: /* @__PURE__ */ a(
|
|
4081
4097
|
"input",
|
|
4082
4098
|
{
|
|
4083
4099
|
type: "file",
|
|
@@ -4089,8 +4105,8 @@ const Xs = (e) => {
|
|
|
4089
4105
|
}
|
|
4090
4106
|
) });
|
|
4091
4107
|
};
|
|
4092
|
-
const
|
|
4093
|
-
const [t, n] =
|
|
4108
|
+
const oa = 38, sa = 40, aa = 13, ca = 14, la = 27, da = 9, ua = 10, ha = 100, ma = (e) => {
|
|
4109
|
+
const [t, n] = B(e.defaultValue ?? ""), [i, o] = B(!1), [r, l] = B({
|
|
4094
4110
|
helperVisible: !1,
|
|
4095
4111
|
left: 0,
|
|
4096
4112
|
right: 0,
|
|
@@ -4103,16 +4119,16 @@ const ta = 38, na = 40, ia = 13, ra = 14, oa = 27, sa = 9, aa = 10, ca = 100, la
|
|
|
4103
4119
|
value: "",
|
|
4104
4120
|
caret: 0,
|
|
4105
4121
|
width: "unset"
|
|
4106
|
-
}), d =
|
|
4107
|
-
|
|
4122
|
+
}), d = Te(null);
|
|
4123
|
+
O(() => (window.addEventListener("resize", _), () => {
|
|
4108
4124
|
try {
|
|
4109
4125
|
window.removeEventListener("resize", _);
|
|
4110
4126
|
} catch (E) {
|
|
4111
4127
|
console.log('WINDOW "resize" remove listener failed', E);
|
|
4112
4128
|
}
|
|
4113
|
-
}), []),
|
|
4129
|
+
}), []), O(() => {
|
|
4114
4130
|
typeof e.value < "u" && n(e.value), typeof e.defaultValue < "u" && n(e.defaultValue);
|
|
4115
|
-
}, [e.value, e.defaultValue]),
|
|
4131
|
+
}, [e.value, e.defaultValue]), O(() => {
|
|
4116
4132
|
const { options: E } = e, { caret: y } = r;
|
|
4117
4133
|
$(t, y, E);
|
|
4118
4134
|
}, [e]);
|
|
@@ -4125,14 +4141,14 @@ const ta = 38, na = 40, ia = 13, ra = 14, oa = 27, sa = 9, aa = 10, ca = 100, la
|
|
|
4125
4141
|
P[te] = S;
|
|
4126
4142
|
});
|
|
4127
4143
|
const D = f(M, R);
|
|
4128
|
-
let
|
|
4144
|
+
let Q = {};
|
|
4129
4145
|
for (let te = 0; te < D.length; te++) {
|
|
4130
|
-
const { triggerStr: U, triggerMatch:
|
|
4146
|
+
const { triggerStr: U, triggerMatch: K, triggerLength: re } = D[te];
|
|
4131
4147
|
for (let he = y - 1; he >= 0; --he) {
|
|
4132
4148
|
const oe = E.substring(he, y).match(R);
|
|
4133
4149
|
let pe = -1;
|
|
4134
4150
|
if (re > 0) {
|
|
4135
|
-
const I =
|
|
4151
|
+
const I = K ? he : he - re + 1;
|
|
4136
4152
|
if (I < 0 || (C(U, E, I) && (pe = I + re), !oe && pe < 0))
|
|
4137
4153
|
break;
|
|
4138
4154
|
} else {
|
|
@@ -4149,8 +4165,8 @@ const ta = 38, na = 40, ia = 13, ra = 14, oa = 27, sa = 9, aa = 10, ca = 100, la
|
|
|
4149
4165
|
const le = X.toLowerCase().indexOf(A.toLowerCase());
|
|
4150
4166
|
return le !== -1 && (w || le === 0);
|
|
4151
4167
|
}), H = U, W = A.length;
|
|
4152
|
-
|
|
4153
|
-
...
|
|
4168
|
+
Q = {
|
|
4169
|
+
...Q,
|
|
4154
4170
|
trigger: H,
|
|
4155
4171
|
matchStart: pe,
|
|
4156
4172
|
matchLength: W,
|
|
@@ -4159,13 +4175,13 @@ const ta = 38, na = 40, ia = 13, ra = 14, oa = 27, sa = 9, aa = 10, ca = 100, la
|
|
|
4159
4175
|
}
|
|
4160
4176
|
}
|
|
4161
4177
|
}
|
|
4162
|
-
return
|
|
4178
|
+
return Q;
|
|
4163
4179
|
}, f = (E, y) => E.map((m) => ({
|
|
4164
4180
|
triggerStr: m,
|
|
4165
4181
|
triggerMatch: m.match(y),
|
|
4166
4182
|
triggerLength: m.length
|
|
4167
4183
|
})), C = (E, y, S) => !E || !E.length || y.substr(S, E.length) === E, L = (E) => {
|
|
4168
|
-
const { onChange: y, options: S, spaceRemovers: m, spacer: w, value: x } = e, R = t, M = E.target.value, P =
|
|
4184
|
+
const { onChange: y, options: S, spaceRemovers: m, spacer: w, value: x } = e, R = t, M = E.target.value, P = no(u(E.target)).end;
|
|
4169
4185
|
if (M.length || G({
|
|
4170
4186
|
...r,
|
|
4171
4187
|
helperVisible: !1
|
|
@@ -4178,12 +4194,12 @@ const ta = 38, na = 40, ia = 13, ra = 14, oa = 27, sa = 9, aa = 10, ca = 100, la
|
|
|
4178
4194
|
if (i && m.length && M.length > 2 && w.length) {
|
|
4179
4195
|
for (let D = 0; D < Math.max(R.length, M.length); ++D)
|
|
4180
4196
|
if (R[D] !== M[D]) {
|
|
4181
|
-
if (D >= 2 && M[D - 1] === w && m.indexOf(M[D - 2]) === -1 && m.indexOf(M[D]) !== -1 && !
|
|
4182
|
-
const
|
|
4183
|
-
return k(D + 1), d.current !== null && (d.current.value =
|
|
4197
|
+
if (D >= 2 && M[D - 1] === w && m.indexOf(M[D - 2]) === -1 && m.indexOf(M[D]) !== -1 && !Nt(h(M.substring(0, D - 2), P - 3, S))) {
|
|
4198
|
+
const Q = `${M.slice(0, D - 1)}${M.slice(D, D + 1)}${M.slice(D - 1, D)}${M.slice(D + 1)}`;
|
|
4199
|
+
return k(D + 1), d.current !== null && (d.current.value = Q), x || G({
|
|
4184
4200
|
...r,
|
|
4185
|
-
value:
|
|
4186
|
-
}), y(
|
|
4201
|
+
value: Q
|
|
4202
|
+
}), y(Q);
|
|
4187
4203
|
}
|
|
4188
4204
|
break;
|
|
4189
4205
|
}
|
|
@@ -4205,26 +4221,26 @@ const ta = 38, na = 40, ia = 13, ra = 14, oa = 27, sa = 9, aa = 10, ca = 100, la
|
|
|
4205
4221
|
const { helperVisible: y, options: S, selection: m } = r, { onKeyDown: w, passThroughEnter: x } = e;
|
|
4206
4222
|
if (y)
|
|
4207
4223
|
switch (E.keyCode) {
|
|
4208
|
-
case
|
|
4224
|
+
case la:
|
|
4209
4225
|
E.preventDefault(), j();
|
|
4210
4226
|
break;
|
|
4211
|
-
case
|
|
4227
|
+
case oa:
|
|
4212
4228
|
E.preventDefault(), G({
|
|
4213
4229
|
...r,
|
|
4214
4230
|
selection: (S.length + m - 1) % S.length
|
|
4215
4231
|
});
|
|
4216
4232
|
break;
|
|
4217
|
-
case
|
|
4233
|
+
case sa:
|
|
4218
4234
|
E.preventDefault(), G({
|
|
4219
4235
|
...r,
|
|
4220
4236
|
selection: (m + 1) % S.length
|
|
4221
4237
|
});
|
|
4222
4238
|
break;
|
|
4223
|
-
case
|
|
4224
|
-
case
|
|
4239
|
+
case ca:
|
|
4240
|
+
case aa:
|
|
4225
4241
|
x || E.preventDefault(), v(m);
|
|
4226
4242
|
break;
|
|
4227
|
-
case
|
|
4243
|
+
case da:
|
|
4228
4244
|
v(m);
|
|
4229
4245
|
break;
|
|
4230
4246
|
default:
|
|
@@ -4239,15 +4255,15 @@ const ta = 38, na = 40, ia = 13, ra = 14, oa = 27, sa = 9, aa = 10, ca = 100, la
|
|
|
4239
4255
|
helperVisible: !1
|
|
4240
4256
|
});
|
|
4241
4257
|
}, v = (E) => {
|
|
4242
|
-
const { spacer: y, onSelect: S, changeOnSelect: m } = e, { matchStart: w, matchLength: x, options: R, trigger: M } = r, P = R[E], D = t,
|
|
4243
|
-
U.target !== null && (U.target.value = `${
|
|
4258
|
+
const { spacer: y, onSelect: S, changeOnSelect: m } = e, { matchStart: w, matchLength: x, options: R, trigger: M } = r, P = R[E], D = t, Q = D.substring(0, w - M.length), te = D.substring(w + x), U = { target: d.current }, K = m(M, P);
|
|
4259
|
+
U.target !== null && (U.target.value = `${Q}${K}${y}${te}`), L(U), U.target !== null && S(U.target.value), j(), k(Q.length + K.length + 1), o(!0);
|
|
4244
4260
|
}, k = (E) => {
|
|
4245
4261
|
G({
|
|
4246
4262
|
...r,
|
|
4247
4263
|
caret: E
|
|
4248
4264
|
});
|
|
4249
4265
|
const y = u(d.current);
|
|
4250
|
-
|
|
4266
|
+
io(y, E);
|
|
4251
4267
|
}, G = (E) => {
|
|
4252
4268
|
setTimeout(() => {
|
|
4253
4269
|
l({
|
|
@@ -4263,18 +4279,18 @@ const ta = 38, na = 40, ia = 13, ra = 14, oa = 27, sa = 9, aa = 10, ca = 100, la
|
|
|
4263
4279
|
return;
|
|
4264
4280
|
const x = m.getBoundingClientRect(), R = h(E, y, S);
|
|
4265
4281
|
if (Object.keys(R).length > 0 && w !== null) {
|
|
4266
|
-
const M =
|
|
4267
|
-
let
|
|
4268
|
-
U === "assist" ? (
|
|
4282
|
+
const M = to(w, y), P = w.getBoundingClientRect(), { minChars: D, onRequestOptions: Q, requestOnlyIfNoOptions: te, mode: U } = e;
|
|
4283
|
+
let K, re, he, we = "unset";
|
|
4284
|
+
U === "assist" ? (K = m === w ? M.top + w.offsetTop : M.top + x.top, re = Math.min(M.left + w.offsetLeft - ua, w.offsetLeft + P.width - ha)) : (K = x.top + m.offsetHeight, re = m.offsetLeft, he = m.offsetLeft - m.offsetWidth, we = `${x.width}px`), R.matchLength >= D && (R.options.length > 1 || R.options.length === 1 && R.options[0].length !== R.matchLength) ? G({
|
|
4269
4285
|
...r,
|
|
4270
4286
|
value: E,
|
|
4271
4287
|
helperVisible: !0,
|
|
4272
|
-
top:
|
|
4288
|
+
top: K,
|
|
4273
4289
|
left: re,
|
|
4274
4290
|
right: he,
|
|
4275
4291
|
width: we,
|
|
4276
4292
|
...R
|
|
4277
|
-
}) : ((!te || !R.options.length) &&
|
|
4293
|
+
}) : ((!te || !R.options.length) && Q(E.substr(R.matchStart, R.matchLength)), j());
|
|
4278
4294
|
} else
|
|
4279
4295
|
j();
|
|
4280
4296
|
}, j = () => {
|
|
@@ -4289,7 +4305,7 @@ const ta = 38, na = 40, ia = 13, ra = 14, oa = 27, sa = 9, aa = 10, ca = 100, la
|
|
|
4289
4305
|
const { helperVisible: E, left: y, right: S, matchStart: m, matchLength: w, options: x, selection: R, top: M, value: P, width: D } = r;
|
|
4290
4306
|
if (!E)
|
|
4291
4307
|
return null;
|
|
4292
|
-
const { maxOptions:
|
|
4308
|
+
const { maxOptions: Q, offsetX: te, offsetY: U, direction: K } = e;
|
|
4293
4309
|
if (x.length === 0)
|
|
4294
4310
|
return null;
|
|
4295
4311
|
if (R >= x.length)
|
|
@@ -4297,7 +4313,7 @@ const ta = 38, na = 40, ia = 13, ra = 14, oa = 27, sa = 9, aa = 10, ca = 100, la
|
|
|
4297
4313
|
...r,
|
|
4298
4314
|
selection: 0
|
|
4299
4315
|
}), null;
|
|
4300
|
-
const re =
|
|
4316
|
+
const re = Q === 0 ? x.length : Q, he = x.slice(0, re).map((oe, pe) => {
|
|
4301
4317
|
const I = oe.toLowerCase().indexOf(P.substr(m, w).toLowerCase());
|
|
4302
4318
|
return /* @__PURE__ */ z(
|
|
4303
4319
|
"li",
|
|
@@ -4314,21 +4330,21 @@ const ta = 38, na = 40, ia = 13, ra = 14, oa = 27, sa = 9, aa = 10, ca = 100, la
|
|
|
4314
4330
|
},
|
|
4315
4331
|
children: [
|
|
4316
4332
|
oe.slice(0, I),
|
|
4317
|
-
/* @__PURE__ */
|
|
4333
|
+
/* @__PURE__ */ a("strong", { children: oe.substr(I, w) }),
|
|
4318
4334
|
oe.slice(I + w)
|
|
4319
4335
|
]
|
|
4320
4336
|
},
|
|
4321
4337
|
oe
|
|
4322
4338
|
);
|
|
4323
|
-
}), we =
|
|
4324
|
-
return /* @__PURE__ */
|
|
4325
|
-
}, { Component: Z, ComponentProps: V, defaultValue: Y, disabled:
|
|
4339
|
+
}), we = K === "ltr" ? { left: y + te } : { right: S + te };
|
|
4340
|
+
return /* @__PURE__ */ a("ul", { className: "react-autocomplete-input", style: { ...we, top: M + U, width: D }, children: he });
|
|
4341
|
+
}, { Component: Z, ComponentProps: V, defaultValue: Y, disabled: J, onBlur: s, value: c, ...b } = e, p = Object.assign({}, b);
|
|
4326
4342
|
return Object.keys(e).forEach((E) => {
|
|
4327
4343
|
delete p[E];
|
|
4328
4344
|
}), /* @__PURE__ */ z(ge, { children: [
|
|
4329
4345
|
ke.cloneElement(Z, {
|
|
4330
|
-
disabled:
|
|
4331
|
-
onBlur:
|
|
4346
|
+
disabled: J,
|
|
4347
|
+
onBlur: s,
|
|
4332
4348
|
onChange: L,
|
|
4333
4349
|
onKeyDown: g,
|
|
4334
4350
|
ref: d,
|
|
@@ -4338,8 +4354,8 @@ const ta = 38, na = 40, ia = 13, ra = 14, oa = 27, sa = 9, aa = 10, ca = 100, la
|
|
|
4338
4354
|
}),
|
|
4339
4355
|
N()
|
|
4340
4356
|
] });
|
|
4341
|
-
},
|
|
4342
|
-
Component: /* @__PURE__ */
|
|
4357
|
+
}, pa = {
|
|
4358
|
+
Component: /* @__PURE__ */ a("textarea", {}),
|
|
4343
4359
|
ComponentProps: {},
|
|
4344
4360
|
defaultValue: void 0,
|
|
4345
4361
|
disabled: !1,
|
|
@@ -4369,9 +4385,9 @@ const ta = 38, na = 40, ia = 13, ra = 14, oa = 27, sa = 9, aa = 10, ca = 100, la
|
|
|
4369
4385
|
passThroughEnter: !1,
|
|
4370
4386
|
mode: "assist",
|
|
4371
4387
|
direction: "ltr"
|
|
4372
|
-
},
|
|
4388
|
+
}, Fl = (e) => {
|
|
4373
4389
|
let t = {
|
|
4374
|
-
...
|
|
4390
|
+
...pa,
|
|
4375
4391
|
...e
|
|
4376
4392
|
};
|
|
4377
4393
|
return e.mode === "autocomplete" && (t = {
|
|
@@ -4379,10 +4395,10 @@ const ta = 38, na = 40, ia = 13, ra = 14, oa = 27, sa = 9, aa = 10, ca = 100, la
|
|
|
4379
4395
|
trigger: "",
|
|
4380
4396
|
regex: ".",
|
|
4381
4397
|
spacer: ""
|
|
4382
|
-
}), /* @__PURE__ */
|
|
4398
|
+
}), /* @__PURE__ */ a(ma, { ...t });
|
|
4383
4399
|
}, Qt = {
|
|
4384
4400
|
formatFileModDate: (e, t) => {
|
|
4385
|
-
const n =
|
|
4401
|
+
const n = Jn.getModDate(t);
|
|
4386
4402
|
return n ? e.formatDate(n, {
|
|
4387
4403
|
dateStyle: "short",
|
|
4388
4404
|
timeStyle: "short"
|
|
@@ -4391,16 +4407,16 @@ const ta = 38, na = 40, ia = 13, ra = 14, oa = 27, sa = 9, aa = 10, ca = 100, la
|
|
|
4391
4407
|
formatFileSize: (e, t) => {
|
|
4392
4408
|
if (!t || typeof t.size != "number")
|
|
4393
4409
|
return null;
|
|
4394
|
-
const n = t.size, i =
|
|
4410
|
+
const n = t.size, i = ao(n, {
|
|
4395
4411
|
bits: !1,
|
|
4396
4412
|
output: "object"
|
|
4397
4413
|
});
|
|
4398
4414
|
return i.symbol === "B" ? `${Math.round(i.value / 10) / 100} KB` : i.symbol === "KB" ? `${Math.round(i.value)} ${i.symbol}` : `${i.value} ${i.symbol.toUpperCase()}`;
|
|
4399
4415
|
}
|
|
4400
|
-
},
|
|
4416
|
+
}, ga = {
|
|
4401
4417
|
locale: Me.EN,
|
|
4402
4418
|
formatters: { ...Qt }
|
|
4403
|
-
},
|
|
4419
|
+
}, fa = {
|
|
4404
4420
|
locale: Me.RU,
|
|
4405
4421
|
formatters: { ...Qt },
|
|
4406
4422
|
messages: {
|
|
@@ -4440,7 +4456,7 @@ const ta = 38, na = 40, ia = 13, ra = 14, oa = 27, sa = 9, aa = 10, ca = 100, la
|
|
|
4440
4456
|
[`chonky.actions.${ie.ToggleHiddenFiles.id}.button.name`]: "Скрытые файлы",
|
|
4441
4457
|
[`chonky.actions.${ie.ToggleShowFoldersFirst.id}.button.name`]: "Папки в начале"
|
|
4442
4458
|
}
|
|
4443
|
-
},
|
|
4459
|
+
}, ya = {
|
|
4444
4460
|
locale: Me.HE,
|
|
4445
4461
|
formatters: { ...Qt },
|
|
4446
4462
|
messages: {
|
|
@@ -4479,24 +4495,24 @@ const ta = 38, na = 40, ia = 13, ra = 14, oa = 27, sa = 9, aa = 10, ca = 100, la
|
|
|
4479
4495
|
[`chonky.actions.${ie.ToggleHiddenFiles.id}.button.name`]: "קבצים נסתרים",
|
|
4480
4496
|
[`chonky.actions.${ie.ToggleShowFoldersFirst.id}.button.name`]: "הצגת תיקיות בראש הרשימה"
|
|
4481
4497
|
}
|
|
4482
|
-
},
|
|
4483
|
-
[Me.EN]:
|
|
4484
|
-
[Me.RU]:
|
|
4485
|
-
[Me.HE]:
|
|
4498
|
+
}, va = {
|
|
4499
|
+
[Me.EN]: ga,
|
|
4500
|
+
[Me.RU]: fa,
|
|
4501
|
+
[Me.HE]: ya
|
|
4486
4502
|
};
|
|
4487
|
-
class
|
|
4503
|
+
class Gl extends Jn {
|
|
4488
4504
|
}
|
|
4489
|
-
const
|
|
4505
|
+
const Vl = ie, wa = {
|
|
4490
4506
|
listView: ie.EnableListView.id,
|
|
4491
4507
|
gridView: ie.EnableGridView.id
|
|
4492
4508
|
};
|
|
4493
|
-
|
|
4494
|
-
const
|
|
4509
|
+
ro({ iconComponent: so });
|
|
4510
|
+
const Hl = ke.memo(
|
|
4495
4511
|
ke.forwardRef(
|
|
4496
4512
|
({
|
|
4497
4513
|
theme: e,
|
|
4498
4514
|
styles: t = { height: "100%", minWidth: "600px" },
|
|
4499
|
-
defaultView: n =
|
|
4515
|
+
defaultView: n = wa.listView,
|
|
4500
4516
|
readOnlyMode: i = !1,
|
|
4501
4517
|
locale: o,
|
|
4502
4518
|
files: r,
|
|
@@ -4519,21 +4535,21 @@ const Bl = ke.memo(
|
|
|
4519
4535
|
}
|
|
4520
4536
|
}
|
|
4521
4537
|
})();
|
|
4522
|
-
const L = (Y) => Y.replace(/([A-Z])/g, (
|
|
4523
|
-
const c = e[
|
|
4524
|
-
return
|
|
4525
|
-
}, {}) : {}, [e]), [g, _] =
|
|
4526
|
-
return
|
|
4527
|
-
e && _(!0), k(n), i ? $(!0) : N([ie.CreateFolder, ie.DeleteFiles]), o !== void 0 && V(
|
|
4528
|
-
}, [e, n, i, o]), /* @__PURE__ */
|
|
4529
|
-
|
|
4538
|
+
const L = (Y) => Y.replace(/([A-Z])/g, (J) => "-" + J.toLowerCase()), u = ae(() => e !== void 0 ? Object.keys(e).reduce((J, s) => {
|
|
4539
|
+
const c = e[s];
|
|
4540
|
+
return s = s.startsWith("--") ? s : `--fp-theme-${L(s)}`, J[s] = c, J;
|
|
4541
|
+
}, {}) : {}, [e]), [g, _] = B(!1), [v, k] = B(), [G, $] = B(!1), [j, N] = B(), [Z, V] = B();
|
|
4542
|
+
return O(() => {
|
|
4543
|
+
e && _(!0), k(n), i ? $(!0) : N([ie.CreateFolder, ie.DeleteFiles]), o !== void 0 && V(va[o]);
|
|
4544
|
+
}, [e, n, i, o]), /* @__PURE__ */ a(
|
|
4545
|
+
q,
|
|
4530
4546
|
{
|
|
4531
4547
|
style: {
|
|
4532
4548
|
...t,
|
|
4533
4549
|
...u
|
|
4534
4550
|
},
|
|
4535
|
-
children: /* @__PURE__ */
|
|
4536
|
-
|
|
4551
|
+
children: /* @__PURE__ */ a(
|
|
4552
|
+
oo,
|
|
4537
4553
|
{
|
|
4538
4554
|
ref: f,
|
|
4539
4555
|
files: r ?? [],
|
|
@@ -4554,18 +4570,20 @@ const Bl = ke.memo(
|
|
|
4554
4570
|
);
|
|
4555
4571
|
}
|
|
4556
4572
|
)
|
|
4557
|
-
),
|
|
4573
|
+
), Ea = (e) => /* @__PURE__ */ a(lo.Option, { ...e, children: /* @__PURE__ */ a(At, { label: e.label, checked: e.isSelected }) }), La = (e) => {
|
|
4558
4574
|
const { styles: t } = e;
|
|
4559
|
-
return /* @__PURE__ */
|
|
4560
|
-
},
|
|
4561
|
-
const { values: t, options: n, onChange: i, placeholder: o, styles: r } = e, l = lt(), d =
|
|
4562
|
-
return
|
|
4575
|
+
return /* @__PURE__ */ a(co, { isMulti: !0, components: { Option: Ea }, styles: t, isClearable: !0, hideSelectedOptions: !1, closeMenuOnSelect: !1, ...e });
|
|
4576
|
+
}, Wl = (e) => {
|
|
4577
|
+
const { values: t, options: n, onChange: i, placeholder: o, styles: r } = e, l = lt(), d = Yt(l), [h, f] = B(t);
|
|
4578
|
+
return O(() => {
|
|
4579
|
+
f(t ?? []);
|
|
4580
|
+
}, [t]), /* @__PURE__ */ a(Vt, { theme: d, children: /* @__PURE__ */ a(
|
|
4563
4581
|
Ii,
|
|
4564
4582
|
{
|
|
4565
4583
|
multiline: !0,
|
|
4566
4584
|
fullWidth: !0,
|
|
4567
4585
|
disableUnderline: !0,
|
|
4568
|
-
inputComponent:
|
|
4586
|
+
inputComponent: La,
|
|
4569
4587
|
value: h,
|
|
4570
4588
|
onChange: (L) => {
|
|
4571
4589
|
f(L), i && i(L);
|
|
@@ -4578,7 +4596,7 @@ const Bl = ke.memo(
|
|
|
4578
4596
|
}
|
|
4579
4597
|
}
|
|
4580
4598
|
) });
|
|
4581
|
-
},
|
|
4599
|
+
}, zl = ({
|
|
4582
4600
|
value: e,
|
|
4583
4601
|
text: t,
|
|
4584
4602
|
children: n,
|
|
@@ -4596,18 +4614,18 @@ const Bl = ke.memo(
|
|
|
4596
4614
|
backgroundPadding: l,
|
|
4597
4615
|
counterClockwise: d,
|
|
4598
4616
|
circleRatio: h,
|
|
4599
|
-
styles:
|
|
4617
|
+
styles: uo({
|
|
4600
4618
|
...o
|
|
4601
4619
|
})
|
|
4602
4620
|
};
|
|
4603
|
-
return n ? /* @__PURE__ */
|
|
4604
|
-
|
|
4621
|
+
return n ? /* @__PURE__ */ a(ho, { ...f, children: n }) : /* @__PURE__ */ a(
|
|
4622
|
+
mo,
|
|
4605
4623
|
{
|
|
4606
4624
|
...f,
|
|
4607
4625
|
text: t
|
|
4608
4626
|
}
|
|
4609
4627
|
);
|
|
4610
|
-
},
|
|
4628
|
+
}, Ul = ({
|
|
4611
4629
|
values: e,
|
|
4612
4630
|
valueStart: t = 0,
|
|
4613
4631
|
valueEnd: n,
|
|
@@ -4617,8 +4635,8 @@ const Bl = ke.memo(
|
|
|
4617
4635
|
repeat: l,
|
|
4618
4636
|
children: d
|
|
4619
4637
|
}) => {
|
|
4620
|
-
const [h, f] =
|
|
4621
|
-
return
|
|
4638
|
+
const [h, f] = B(0), [C, L] = B(t), u = ke.useRef(void 0), g = e === void 0 && n !== void 0;
|
|
4639
|
+
return O(() => {
|
|
4622
4640
|
if (g)
|
|
4623
4641
|
return l ? u.current = window.setInterval(() => {
|
|
4624
4642
|
L((_) => _ === t ? n : t);
|
|
@@ -4629,8 +4647,8 @@ const Bl = ke.memo(
|
|
|
4629
4647
|
return u.current = window.setInterval(() => {
|
|
4630
4648
|
f((_) => (_ + 1) % e.length), L(e[h]);
|
|
4631
4649
|
}, o), () => clearInterval(u.current);
|
|
4632
|
-
}, [e, n, i, o, l, h]), g ? /* @__PURE__ */
|
|
4633
|
-
|
|
4650
|
+
}, [e, n, i, o, l, h]), g ? /* @__PURE__ */ a(
|
|
4651
|
+
po,
|
|
4634
4652
|
{
|
|
4635
4653
|
start: () => ({
|
|
4636
4654
|
value: t
|
|
@@ -4642,121 +4660,121 @@ const Bl = ke.memo(
|
|
|
4642
4660
|
ease: r
|
|
4643
4661
|
}
|
|
4644
4662
|
}),
|
|
4645
|
-
children: ({ value: _ }) => /* @__PURE__ */
|
|
4663
|
+
children: ({ value: _ }) => /* @__PURE__ */ a(ge, { children: d(_) })
|
|
4646
4664
|
}
|
|
4647
|
-
) : /* @__PURE__ */
|
|
4665
|
+
) : /* @__PURE__ */ a(ge, { children: d(C) });
|
|
4648
4666
|
};
|
|
4649
4667
|
export {
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4668
|
+
Ul as AnimatedValuesProvider,
|
|
4669
|
+
Fl as Autocomplete,
|
|
4670
|
+
Bt as BboxCorner,
|
|
4671
|
+
q as Box,
|
|
4672
|
+
Gt as COORDINATES_MERCATOR_FRACTION_DIGITS,
|
|
4673
|
+
Ft as COORDINATES_WGS_FRACTION_DIGITS,
|
|
4674
|
+
Ml as Cesium3DTileset,
|
|
4675
|
+
cl as CesiumBoundingSphere,
|
|
4676
|
+
sl as CesiumCartesian2,
|
|
4677
|
+
al as CesiumCartesian3,
|
|
4678
|
+
gs as CesiumCartographic,
|
|
4679
|
+
yl as CesiumCesiumBillboardGraphics,
|
|
4680
|
+
Xl as CesiumCesiumEntity,
|
|
4681
|
+
Kl as CesiumCesiumPolygonGraphics,
|
|
4682
|
+
pl as CesiumCesiumPolylineGraphics,
|
|
4683
|
+
ml as CesiumCesiumTerrainProvider,
|
|
4684
|
+
vl as CesiumColor,
|
|
4685
|
+
Bs as CesiumCompassTool,
|
|
4686
|
+
ol as CesiumConstantPositionProperty,
|
|
4687
|
+
rl as CesiumConstantProperty,
|
|
4688
|
+
qs as CesiumCustomDataSource,
|
|
4689
|
+
kl as CesiumDrawingsDataSource,
|
|
4690
|
+
ll as CesiumEllipsoid,
|
|
4691
|
+
hl as CesiumEllipsoidTerrainProvider,
|
|
4692
|
+
Ys as CesiumEntity,
|
|
4693
|
+
Ol as CesiumEntityDescription,
|
|
4694
|
+
Zs as CesiumEntityStaticDescription,
|
|
4695
|
+
ql as CesiumGeoJsonDataSource,
|
|
4696
|
+
dl as CesiumGeographicTilingScheme,
|
|
4697
|
+
Il as CesiumGeojsonLayer,
|
|
4698
|
+
Tl as CesiumHeightReference,
|
|
4699
|
+
Cl as CesiumHorizontalOrigin,
|
|
4682
4700
|
gt as CesiumImageryLayer,
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4701
|
+
gl as CesiumJulianDate,
|
|
4702
|
+
bl as CesiumLabelStyle,
|
|
4703
|
+
_l as CesiumMap,
|
|
4704
|
+
Jl as CesiumMath,
|
|
4705
|
+
Rl as CesiumOSMLayer,
|
|
4706
|
+
Xs as CesiumPolygonGraphics,
|
|
4707
|
+
wl as CesiumPolygonHierarchy,
|
|
4708
|
+
il as CesiumPolylineDashMaterialProperty,
|
|
4709
|
+
fl as CesiumPositionProperty,
|
|
4710
|
+
fs as CesiumRectangle,
|
|
4711
|
+
Ks as CesiumRectangleGraphics,
|
|
4712
|
+
ul as CesiumResource,
|
|
4713
|
+
El as CesiumScene,
|
|
4696
4714
|
_t as CesiumSceneMode,
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4715
|
+
Ql as CesiumSceneTransforms,
|
|
4716
|
+
Ll as CesiumVerticalOrigin,
|
|
4717
|
+
Sl as CesiumViewer,
|
|
4718
|
+
Dl as CesiumWFSLayer,
|
|
4719
|
+
Pl as CesiumWMSLayer,
|
|
4720
|
+
xl as CesiumWMTSLayer,
|
|
4721
|
+
Al as CesiumXYZLayer,
|
|
4722
|
+
zl as CircularProgressBar,
|
|
4723
|
+
Fs as CoordinatesTrackerTool,
|
|
4724
|
+
tl as CssBaseline,
|
|
4725
|
+
Vc as DateRangePicker,
|
|
4726
|
+
Hc as DateTimePicker,
|
|
4727
|
+
Eo as DateTimeRangePicker,
|
|
4728
|
+
Fc as DateTimeRangePickerFormControl,
|
|
4729
|
+
Wo as DrawInteraction,
|
|
4712
4730
|
be as DrawType,
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4731
|
+
Gl as FileHelper,
|
|
4732
|
+
Hl as FilePicker,
|
|
4733
|
+
Vl as FilePickerActions,
|
|
4734
|
+
wa as FilePickerViewObj,
|
|
4735
|
+
Vo as GeoJSONFeature,
|
|
4736
|
+
Nl as InspectorTool,
|
|
4737
|
+
Qc as Legend,
|
|
4738
|
+
Jc as MVTSource,
|
|
4739
|
+
Ao as Map,
|
|
4740
|
+
Wc as MapFilterContainer,
|
|
4741
|
+
Wl as MultiSelection,
|
|
4742
|
+
Lo as Popover,
|
|
4725
4743
|
Re as Proj,
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4744
|
+
Vs as ScaleTrackerTool,
|
|
4745
|
+
nl as ScopedCssBaseline,
|
|
4746
|
+
el as SmartTable,
|
|
4729
4747
|
Me as SupportedLocales,
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4748
|
+
Bl as TerrainianHeightTool,
|
|
4749
|
+
Do as TileLayer,
|
|
4750
|
+
Ho as TileOsm,
|
|
4751
|
+
Yc as TileWMS,
|
|
4752
|
+
$c as TileWMTS,
|
|
4753
|
+
Xc as TileXYZ,
|
|
4754
|
+
Gc as TimeRangeInput,
|
|
4755
|
+
No as VectorLayer,
|
|
4756
|
+
Go as VectorSource,
|
|
4757
|
+
zc as VectorTileLayer,
|
|
4758
|
+
Hs as ZoomButtons,
|
|
4759
|
+
zs as ZoomLevelTrackerTool,
|
|
4760
|
+
nd as buildStyles,
|
|
4761
|
+
ed as cesiumSampleTerrainMostDetailed,
|
|
4744
4762
|
Qt as defaultFormatters,
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4763
|
+
qc as getMVTOptions,
|
|
4764
|
+
jc as getWMSOptions,
|
|
4765
|
+
Uc as getWMTSOptions,
|
|
4766
|
+
Zc as getXYZOptions,
|
|
4749
4767
|
Lt as isDateRange,
|
|
4750
|
-
|
|
4768
|
+
go as mapMcToMuiTheme,
|
|
4751
4769
|
ve as useCesiumMap,
|
|
4752
4770
|
tt as useCesiumMapViewstate,
|
|
4753
4771
|
Xe as useMap,
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4772
|
+
fo as useMappedCesiumTheme,
|
|
4773
|
+
Yt as useMappedMuiTheme,
|
|
4774
|
+
Yl as useMediaQuery,
|
|
4757
4775
|
ht as useTileLayer,
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4776
|
+
ko as useVectorLayer,
|
|
4777
|
+
Fo as useVectorSource,
|
|
4778
|
+
Yo as useVectorTileLayer,
|
|
4779
|
+
Kc as useVectorTileSource
|
|
4762
4780
|
};
|