From 14ccc41abad4cbbb8e8d5ebc1977723654ee972b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 8 Mar 2024 15:12:16 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20open-pio?= =?UTF-8?q?neer/trails-openlayers-base-packages@1a8ad8934da35ffc5fb4d60fcc?= =?UTF-8?q?b63f4f870562af=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{d5d1c9196e26.js => 327987423dcc.js} | 2 +- .../assets/3299043505b3.js | 1 + .../{24e823fcd0f9.js => 47a1ae7e6ca8.js} | 4 +- .../{dec23d381087.js => 702bddfb066e.js} | 2 +- .../assets/8e70571c5f1f.js | 1 - .../{83810550f546.js => b39a895cb647.js} | 2 +- .../{f16488b1be7f.js => c2466a6c428e.js} | 2 +- .../{b2434404c3bf.js => d1331e772e66.js} | 2 +- .../{1fd2cfa0f8a5.js => d3807fb7088a.js} | 2 +- .../{6b8fa458910f.js => d777195b40a0.js} | 2 +- .../{702b940244c6.js => d7a128c1be2b.js} | 2 +- ...neer_basemap_switcher.BasemapSwitcher.html | 2 +- ...er_coordinate_viewer.CoordinateViewer.html | 2 +- ..._open_pioneer_geolocation.Geolocation.html | 2 +- .../_open_pioneer_legend.Legend.html | 2 +- .../_open_pioneer_map.MapAnchor.html | 2 +- .../_open_pioneer_map.MapContainer.html | 2 +- ...n_pioneer_map.calculateBufferedExtent.html | 2 +- .../_open_pioneer_map.getProjection.html | 2 +- ..._open_pioneer_map.registerProjections.html | 2 +- .../_open_pioneer_map.useCenter.html | 2 +- .../_open_pioneer_map.useMapModel.html | 2 +- .../_open_pioneer_map.useProjection.html | 2 +- .../_open_pioneer_map.useResolution.html | 2 +- .../functions/_open_pioneer_map.useScale.html | 2 +- .../functions/_open_pioneer_map.useView.html | 2 +- ..._pioneer_map_navigation.InitialExtent.html | 2 +- .../_open_pioneer_map_navigation.Zoom.html | 2 +- .../_open_pioneer_map_navigation.ZoomIn.html | 2 +- .../_open_pioneer_map_navigation.ZoomOut.html | 2 +- ...r_map_test_utils.createServiceOptions.html | 2 +- ..._open_pioneer_map_test_utils.setupMap.html | 2 +- ...r_map_test_utils.waitForInitialExtent.html | 2 +- ...ioneer_map_test_utils.waitForMapMount.html | 2 +- ..._open_pioneer_measurement.Measurement.html | 2 +- ...open_pioneer_overview_map.OverviewMap.html | 2 +- .../_open_pioneer_printing.Printing.html | 2 +- ...er_react_utils.ConfigureTitledSection.html | 2 +- ...en_pioneer_react_utils.SectionHeading.html | 2 +- ...pen_pioneer_react_utils.TitledSection.html | 2 +- .../_open_pioneer_react_utils.ToolButton.html | 2 +- ...r_react_utils.useCommonComponentProps.html | 2 +- .../_open_pioneer_react_utils.useEvent.html | 2 +- ...n_pioneer_react_utils.useHeadingLevel.html | 2 +- .../_open_pioneer_result_list.ResultList.html | 2 +- .../_open_pioneer_scale_bar.ScaleBar.html | 2 +- ...open_pioneer_scale_viewer.ScaleViewer.html | 2 +- .../_open_pioneer_search.Search.html | 2 +- .../_open_pioneer_selection.Selection.html | 2 +- ...er_spatial_bookmarks.SpatialBookmarks.html | 2 +- .../docs/functions/_open_pioneer_toc.Toc.html | 2 +- ...basemap_switcher.BasemapSwitcherProps.html | 14 +++---- ...ordinate_viewer.CoordinateViewerProps.html | 12 +++--- .../_open_pioneer_editing.EditingService.html | 8 ++-- ..._open_pioneer_editing.EditingWorkflow.html | 6 +-- ..._pioneer_geolocation.GeolocationProps.html | 16 ++++---- ...n_pioneer_legend.LegendItemAttributes.html | 6 +-- ...oneer_legend.LegendItemComponentProps.html | 4 +- .../_open_pioneer_legend.LegendProps.html | 10 ++--- .../_open_pioneer_map.BaseFeature.html | 12 +++--- .../_open_pioneer_map.CoordinateConfig.html | 4 +- .../_open_pioneer_map.ExtentConfig.html | 4 +- .../_open_pioneer_map.HighlightOptions.html | 10 ++--- .../_open_pioneer_map.HighlightStyle.html | 4 +- ..._open_pioneer_map.InitialExtentConfig.html | 4 +- ...pen_pioneer_map.InitialPositionConfig.html | 4 +- .../interfaces/_open_pioneer_map.Layer.html | 34 ++++++++-------- .../_open_pioneer_map.LayerBase.html | 28 ++++++------- .../_open_pioneer_map.LayerBaseConfig.html | 12 +++--- .../_open_pioneer_map.LayerBaseEvents.html | 4 +- .../_open_pioneer_map.LayerCollection.html | 20 +++++----- ...pen_pioneer_map.LayerCollectionEvents.html | 4 +- .../_open_pioneer_map.LayerConfig.html | 16 ++++---- ...pen_pioneer_map.LayerRetrievalOptions.html | 4 +- .../_open_pioneer_map.MapAnchorProps.html | 16 ++++---- .../_open_pioneer_map.MapConfig.html | 10 ++--- .../_open_pioneer_map.MapConfigProvider.html | 6 +-- .../_open_pioneer_map.MapContainerProps.html | 18 ++++----- .../_open_pioneer_map.MapModel.html | 18 ++++----- .../_open_pioneer_map.MapModelEvents.html | 4 +- .../_open_pioneer_map.MapPadding.html | 4 +- .../_open_pioneer_map.MapRegistry.html | 8 ++-- .../_open_pioneer_map.OlMapOptions.html | 4 +- .../_open_pioneer_map.SimpleLayerConfig.html | 18 ++++----- ...en_pioneer_map.SimpleLayerConstructor.html | 4 +- .../_open_pioneer_map.Sublayer.html | 32 +++++++-------- ..._open_pioneer_map.SublayersCollection.html | 4 +- ...pioneer_map.SublayersCollectionEvents.html | 4 +- .../_open_pioneer_map.UseMapModelLoading.html | 4 +- ..._open_pioneer_map.UseMapModelRejected.html | 4 +- ..._open_pioneer_map.UseMapModelResolved.html | 4 +- .../_open_pioneer_map.WMSLayer.html | 36 ++++++++--------- .../_open_pioneer_map.WMSLayerConfig.html | 22 +++++----- ..._open_pioneer_map.WMSLayerConstructor.html | 4 +- .../_open_pioneer_map.WMSSublayer.html | 34 ++++++++-------- .../_open_pioneer_map.WMSSublayerConfig.html | 16 ++++---- .../_open_pioneer_map.WMTSLayer.html | 40 +++++++++---------- .../_open_pioneer_map.WMTSLayerConfig.html | 24 +++++------ ...open_pioneer_map.WMTSLayerConstructor.html | 4 +- ...eer_map_navigation.InitialExtentProps.html | 8 ++-- ...open_pioneer_map_navigation.ZoomProps.html | 10 ++--- ...oneer_map_test_utils.SimpleMapOptions.html | 20 +++++----- ..._pioneer_measurement.MeasurementProps.html | 12 +++--- ..._pioneer_ogc_features.FeatureResponse.html | 10 ++--- ...eatures.OgcFeatureSearchSourceOptions.html | 16 ++++---- ...eatures.OgcFeatureVectorSourceOptions.html | 16 ++++---- ...atures.OgcFeaturesSearchSourceFactory.html | 4 +- ...atures.OgcFeaturesVectorSourceFactory.html | 4 +- ...pioneer_overview_map.OverviewMapProps.html | 14 +++---- .../_open_pioneer_printing.PrintingProps.html | 8 ++-- ...neer_react_utils.CommonComponentProps.html | 6 +-- ...act_utils.ConfigureTitledSectionProps.html | 4 +- ...oneer_react_utils.SectionHeadingProps.html | 4 +- ...ioneer_react_utils.TitledSectionProps.html | 8 ++-- ...n_pioneer_react_utils.ToolButtonProps.html | 22 +++++----- ...pen_pioneer_result_list.FormatOptions.html | 6 +-- ...pioneer_result_list.RenderCellContext.html | 6 +-- ...open_pioneer_result_list.ResultColumn.html | 14 +++---- ...n_pioneer_result_list.ResultListInput.html | 8 ++-- ...n_pioneer_result_list.ResultListProps.html | 12 +++--- ...t_list.ResultListSelectionChangeEvent.html | 4 +- ..._open_pioneer_scale_bar.ScaleBarProps.html | 10 ++--- ...pioneer_scale_viewer.ScaleViewerProps.html | 8 ++-- .../_open_pioneer_search.SearchOptions.html | 8 ++-- .../_open_pioneer_search.SearchProps.html | 18 ++++----- .../_open_pioneer_search.SearchResult.html | 14 +++---- ...open_pioneer_search.SearchSelectEvent.html | 6 +-- .../_open_pioneer_search.SearchSource.html | 6 +-- ...pen_pioneer_selection.ExtentSelection.html | 4 +- ...neer_selection.SelectionCompleteEvent.html | 6 +-- ...en_pioneer_selection.SelectionOptions.html | 8 ++-- ...open_pioneer_selection.SelectionProps.html | 14 +++---- ...pen_pioneer_selection.SelectionResult.html | 12 +++--- ...pen_pioneer_selection.SelectionSource.html | 8 ++-- ...selection.SelectionSourceChangedEvent.html | 4 +- ...oneer_selection.SelectionSourceEvents.html | 4 +- ..._selection.VectorLayerSelectionSource.html | 8 ++-- ...ion.VectorLayerSelectionSourceFactory.html | 4 +- ...ion.VectorLayerSelectionSourceOptions.html | 4 +- ...atial_bookmarks.SpatialBookmarksProps.html | 8 ++-- .../_open_pioneer_toc.TocProps.html | 16 ++++---- .../_open_pioneer_toc.ToolsConfig.html | 4 +- .../docs/modules/_open_pioneer_map.html | 2 +- ..._pioneer_editing.EditingWorkflowState.html | 2 +- ..._open_pioneer_map.HealthCheckFunction.html | 2 +- .../_open_pioneer_map.InitialViewConfig.html | 2 +- .../_open_pioneer_map.LayerLoadState.html | 2 +- .../_open_pioneer_map.MapAnchorPosition.html | 2 +- ...open_pioneer_map.ProjectionDefinition.html | 2 +- .../types/_open_pioneer_map.SimpleLayer.html | 2 +- .../_open_pioneer_map.UseMapModelResult.html | 2 +- ...en_pioneer_map_navigation.ZoomInProps.html | 2 +- ...n_pioneer_map_navigation.ZoomOutProps.html | 2 +- ...open_pioneer_react_utils.HeadingLevel.html | 2 +- ..._open_pioneer_selection.SelectionKind.html | 2 +- ...er_selection.SelectionSourceEventBase.html | 2 +- ...oneer_selection.SelectionSourceStatus.html | 2 +- ...selection.SelectionSourceStatusObject.html | 2 +- .../_open_pioneer_map.SimpleLayer-1.html | 2 +- .../_open_pioneer_map.WMSLayer-1.html | 2 +- .../_open_pioneer_map.WMTSLayer-1.html | 2 +- .../variables/_open_pioneer_theme.theme.html | 2 +- .../samples/experimental-sidebar/index.html | 2 +- .../samples/map-sample/index.html | 2 +- .../samples/ogc-api-sample/index.html | 2 +- .../samples/test-basemap-switcher/index.html | 2 +- .../test-highlight-and-zoom/index.html | 2 +- .../samples/test-menu-fix/index.html | 2 +- .../samples/test-result-list/index.html | 2 +- .../samples/test-toc/index.html | 2 +- 170 files changed, 565 insertions(+), 565 deletions(-) rename openlayers-base-packages/assets/{d5d1c9196e26.js => 327987423dcc.js} (93%) create mode 100644 openlayers-base-packages/assets/3299043505b3.js rename openlayers-base-packages/assets/{24e823fcd0f9.js => 47a1ae7e6ca8.js} (97%) rename openlayers-base-packages/assets/{dec23d381087.js => 702bddfb066e.js} (92%) delete mode 100644 openlayers-base-packages/assets/8e70571c5f1f.js rename openlayers-base-packages/assets/{83810550f546.js => b39a895cb647.js} (91%) rename openlayers-base-packages/assets/{f16488b1be7f.js => c2466a6c428e.js} (82%) rename openlayers-base-packages/assets/{b2434404c3bf.js => d1331e772e66.js} (93%) rename openlayers-base-packages/assets/{1fd2cfa0f8a5.js => d3807fb7088a.js} (92%) rename openlayers-base-packages/assets/{6b8fa458910f.js => d777195b40a0.js} (92%) rename openlayers-base-packages/assets/{702b940244c6.js => d7a128c1be2b.js} (98%) diff --git a/openlayers-base-packages/assets/d5d1c9196e26.js b/openlayers-base-packages/assets/327987423dcc.js similarity index 93% rename from openlayers-base-packages/assets/d5d1c9196e26.js rename to openlayers-base-packages/assets/327987423dcc.js index 8bfe76197..a56f8453c 100644 --- a/openlayers-base-packages/assets/d5d1c9196e26.js +++ b/openlayers-base-packages/assets/327987423dcc.js @@ -1,2 +1,2 @@ -import{f as R,r as l,j as e,B as y,a3 as B,p as _,F as z,C as T,v as N}from"./4a2b71d7880f.js";import{t as F}from"./848f03e9a62e.js";import{z as H,T as q,O as D,ac as V,ab as Z,ad as $,aB as v,y as x,af as W,aD as G,aE as U,aN as K,aO as J}from"./39284370b430.js";import{_ as Q}from"./a419295615be.js";import{c as P}from"./20bfdcc464b7.js";import{S}from"./e95b8e4fa01f.js";import{e as X}from"./d99ee97b3bdc.js";function Y(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var ee=Y(),w=R((r,n)=>{const{icon:t,children:p,isRound:s,"aria-label":c,...i}=r,a=t||p,u=l.isValidElement(a)?l.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return e.jsx(y,{padding:"0",borderRadius:s?"full":void 0,ref:n,"aria-label":c,...i,children:u})});w.displayName="IconButton";var oe=ee?l.useLayoutEffect:l.useEffect;function I(r,n=[]){const t=l.useRef(r);return oe(()=>{t.current=r}),l.useCallback((...p)=>{var s;return(s=t.current)==null?void 0:s.call(t,...p)},n)}function re(r,n){const t=l.useId();return l.useMemo(()=>r||[n,t].filter(Boolean).join("-"),[r,n,t])}function te(r,n){const t=r!==void 0;return[t,t&&typeof r<"u"?r:n]}function M(r={}){const{onClose:n,onOpen:t,isOpen:p,id:s}=r,c=I(t),i=I(n),[a,u]=l.useState(r.defaultIsOpen||!1),[d,b]=te(p,a),m=re(s,"disclosure"),g=l.useCallback(()=>{d||u(!1),i?.()},[d,i]),h=l.useCallback(()=>{d||u(!0),c?.()},[d,c]),f=l.useCallback(()=>{(b?g:h)()},[b,h,g]);return{isOpen:!!b,onOpen:h,onClose:g,onToggle:f,isControlled:d,getButtonProps:(o={})=>({...o,"aria-expanded":b,"aria-controls":m,onClick:B(o.onClick,f)}),getDisclosureProps:(o={})=>({...o,hidden:!b,id:m})}}var ae=P({displayName:"ArrowLeftIcon",path:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),e.jsx("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"})]})}),ne=P({displayName:"ArrowRightIcon",path:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),e.jsx("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"})]})});const k="main";class le{mapId=k;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new H({title:"OSM",isBaseLayer:!0,olLayer:new q({source:new D})})]}}}const ie={"sidebar-app":{name:"sidebar-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:le,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:V,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:Z,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/experimental-layout-sidebar":{name:"@open-pioneer/experimental-layout-sidebar",services:{},ui:{references:[]},properties:{}}},se=`.layout-sidebar{z-index:99}:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.layout-sidebar{height:100%;position:absolute;top:0}.layout-sidebar[data-theme=light]{background-color:var(--chakra-colors-whiteAlpha-700)}.layout-sidebar[data-theme=dark]{background-color:var(--chakra-colors-blackAlpha-700)}.layout-sidebar .layout-sidebar-main{transition:width .3s ease-out 0s;border-right:1px solid var(--chakra-colors-chakra-border-color)}.layout-sidebar .layout-sidebar-content{overflow:auto;transition:width .3s ease-out 0s}.layout-sidebar .layout-sidebar-content .content-section .content-header{font-size:1.5em;background-color:var(--chakra-colors-blackAlpha-500);padding:.5rem 1rem}.layout-sidebar .layout-sidebar-content .content-section .content-body{padding:1rem} +import{f as R,r as l,j as e,B as y,a3 as B,p as _,F as z,C as T,v as N}from"./4a2b71d7880f.js";import{t as F}from"./848f03e9a62e.js";import{z as H,T as q,O as D,ac as V,ab as Z,ad as $,aB as v,y as x,af as W,aD as G,aE as U,aN as K,aO as J}from"./39284370b430.js";import{_ as Q}from"./a419295615be.js";import{c as P}from"./20bfdcc464b7.js";import{S}from"./e95b8e4fa01f.js";import{e as X}from"./d99ee97b3bdc.js";function Y(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var ee=Y(),w=R((r,n)=>{const{icon:t,children:p,isRound:s,"aria-label":c,...i}=r,a=t||p,u=l.isValidElement(a)?l.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return e.jsx(y,{padding:"0",borderRadius:s?"full":void 0,ref:n,"aria-label":c,...i,children:u})});w.displayName="IconButton";var oe=ee?l.useLayoutEffect:l.useEffect;function I(r,n=[]){const t=l.useRef(r);return oe(()=>{t.current=r}),l.useCallback((...p)=>{var s;return(s=t.current)==null?void 0:s.call(t,...p)},n)}function re(r,n){const t=l.useId();return l.useMemo(()=>r||[n,t].filter(Boolean).join("-"),[r,n,t])}function te(r,n){const t=r!==void 0;return[t,t&&typeof r<"u"?r:n]}function M(r={}){const{onClose:n,onOpen:t,isOpen:p,id:s}=r,c=I(t),i=I(n),[a,u]=l.useState(r.defaultIsOpen||!1),[d,b]=te(p,a),m=re(s,"disclosure"),g=l.useCallback(()=>{d||u(!1),i?.()},[d,i]),h=l.useCallback(()=>{d||u(!0),c?.()},[d,c]),f=l.useCallback(()=>{(b?g:h)()},[b,h,g]);return{isOpen:!!b,onOpen:h,onClose:g,onToggle:f,isControlled:d,getButtonProps:(o={})=>({...o,"aria-expanded":b,"aria-controls":m,onClick:B(o.onClick,f)}),getDisclosureProps:(o={})=>({...o,hidden:!b,id:m})}}var ae=P({displayName:"ArrowLeftIcon",path:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),e.jsx("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"})]})}),ne=P({displayName:"ArrowRightIcon",path:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),e.jsx("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"})]})});const k="main";class le{mapId=k;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new H({title:"OSM",isBaseLayer:!0,olLayer:new q({source:new D})})]}}}const ie={"sidebar-app":{name:"sidebar-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:le,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:V,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:Z,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/experimental-layout-sidebar":{name:"@open-pioneer/experimental-layout-sidebar",services:{},ui:{references:[]},properties:{}}},se=`.layout-sidebar{z-index:99}:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.layout-sidebar{height:100%;position:absolute;top:0}.layout-sidebar[data-theme=light]{background-color:var(--chakra-colors-whiteAlpha-700)}.layout-sidebar[data-theme=dark]{background-color:var(--chakra-colors-blackAlpha-700)}.layout-sidebar .layout-sidebar-main{transition:width .3s ease-out 0s;border-right:1px solid var(--chakra-colors-chakra-border-color)}.layout-sidebar .layout-sidebar-content{overflow:auto;transition:width .3s ease-out 0s}.layout-sidebar .layout-sidebar-content .content-section .content-header{font-size:1.5em;background-color:var(--chakra-colors-blackAlpha-500);padding:.5rem 1rem}.layout-sidebar .layout-sidebar-content .content-section .content-body{padding:1rem} `,ce=["en"];function pe(r){switch(r){case"en":return Q(()=>import("./ddb5877018b4.js"),[],import.meta.url).then(n=>n.default)}throw new Error(`Unsupported locale: '${r}'`)}const de=_(se),ue=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:pe,locales:ce,packages:ie,styles:de},Symbol.toStringTag,{value:"Module"})),be="@open-pioneer/experimental-layout-sidebar",me=$.bind(void 0,be),A=60,E=180,O=300;function ge({defaultExpanded:r,expandedChanged:n,sidebarWidthChanged:t,items:p}){const s=me(),[c,{toggle:i}]=he(p),{isOpen:a,onToggle:u}=M({defaultIsOpen:r,onOpen(){n?.(!0)},onClose(){n?.(!1)}}),{isOpen:d,onToggle:b}=M(),m=c.size>0;l.useEffect(()=>{m&&!d&&b(),!m&&d&&b()},[m]),l.useEffect(()=>{if(t){let o=A;a&&(o=E),d&&(o+=O),t(o)}},[a,d]);const g=p?.map((o,L)=>{const C="white",j=c.has(o.id)?"outline":"ghost";return e.jsx("div",{children:a?e.jsx(y,{leftIcon:o.icon,variant:j,colorScheme:C,onClick:()=>i(o),children:o.label},o.id):e.jsx(z,{hasArrow:!0,label:o.label,placement:"right",children:e.jsx(w,{"aria-label":o.label,variant:j,colorScheme:C,icon:o.icon,onClick:()=>i(o)})},o.id)},L)}),h=p?.filter(o=>c.has(o.id)).map(o=>e.jsxs("div",{className:"content-section",children:[e.jsxs(v,{className:"content-header",alignItems:"center",children:[e.jsx(x,{children:o.label}),e.jsx(S,{}),e.jsx(T,{onClick:()=>i(o)})]}),e.jsx("div",{className:"content-body",children:o.content})]},o.id)),f=s.formatMessage({id:a?"toggle.collapse":"toggle.expand"});return e.jsxs(v,{className:"layout-sidebar",children:[e.jsxs(x,{className:"layout-sidebar-main",display:"flex",flexDirection:"column",width:a?`${E}px`:`${A}px`,padding:"10px",gap:"10px",children:[g,e.jsx(S,{}),e.jsx(z,{label:f,hasArrow:!0,placement:"right",children:e.jsx(w,{"aria-label":f,variant:"ghost",icon:a?e.jsx(ae,{}):e.jsx(ne,{}),onClick:u})})]}),e.jsx(x,{className:"layout-sidebar-content",width:d?`${O}px`:"0px",children:h})]})}function he(r){const[n,t]=l.useReducer((s,c)=>{switch(c.type){case"toggle":{const i=new Set(s);return i.has(c.id)?i.delete(c.id):i.add(c.id),i}case"retain":{const i=new Set(c.ids),a=new Set(s);for(const u of a)i.has(u)||a.delete(u);return a}}},void 0,()=>new Set),p=l.useCallback(s=>{t({type:"toggle",id:s.id})},[t]);return l.useEffect(()=>{t({type:"retain",ids:r?.map(s=>s.id)??[]})},[r,t]),[n,{toggle:p}]}const fe=[796987,5827477,796987,5827477];function xe(){const[r,n]=l.useState(),[t,p]=l.useState(!0),s=W(k),c=()=>{const a=s.map?.olMap;a&&a?.getView().fit(fe,{maxZoom:13})},i=[{id:"sandbox",icon:e.jsx(X,{}),label:"Sandbox",content:e.jsx(y,{onClick:c,children:"Center Berlin"})}];return e.jsx(v,{height:"100%",direction:"column",overflow:"hidden",children:e.jsx(G,{title:e.jsx(x,{textAlign:"center",py:1,px:1,children:e.jsx(U,{size:"md",children:"Sidebar sample"})}),children:e.jsxs(v,{flex:"1",direction:"column",position:"relative",children:[e.jsx(ge,{defaultExpanded:t,expandedChanged:a=>p(a),sidebarWidthChanged:a=>n({left:a}),items:i}),e.jsx(K,{mapId:k,viewPadding:r,viewPaddingChangeBehavior:"preserve-extent",children:e.jsx(J,{position:"top-left",horizontalGap:10,verticalGap:10,children:e.jsx(x,{backgroundColor:"whiteAlpha.800",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:"This is a sample for a sidebar component."})})})]})})})}const ve=N({component:xe,theme:F,appMetadata:ue});customElements.define("sidebar-app",ve); diff --git a/openlayers-base-packages/assets/3299043505b3.js b/openlayers-base-packages/assets/3299043505b3.js new file mode 100644 index 000000000..39a146d4a --- /dev/null +++ b/openlayers-base-packages/assets/3299043505b3.js @@ -0,0 +1 @@ +const e=JSON.parse('{"ol-map":{"basemapLabel":"Hintergrundkarte auswählen: ","tocTitle":"Karteninhalt","legendTitle":"Legende","measurementTitle":"Messen","selectionTitle":"Selektieren","overviewMapTitle":"Übersichtskarte","startEditingTitle":"Editierung - Neues Feature erstellen","stopEditingTitle":"Editierung - Stoppen","resetEditingTitle":"Editierung - Zurücksetzen","editing.featureCreated":"Objekt erstellt mit ID: {featureId}","resultListTitle":"Ergebnisliste","ariaLabel.header":"Kopfleiste","ariaLabel.footer":"Fussleiste mit Maßstabsangabe, Raumbezugssystem und Koordinatenanzeige","ariaLabel.map":"Karte. Mit den Pfeiltasten kannst du die Karte bewegen. Mit der Plus Taste hineinzoomen und mit der Minus Taste herauszoomen.","ariaLabel.toolbar":"Kartenwerkzeuge","geolocationTitle":"Geolokalisierung","spatialBookmarkTitle":"Räumliche Lesezeichen","printingTitle":"Drucken","searchSources.miningPermissions":"Bergbauberechtigungen","searchSources.lika":"Daten des Liegenschaftskatasters in NRW","foundResults":"Es {resultsCount, plural, =0 {wurden keine Ergebnisse} one {wurde 1 Ergebnis} other {wurden {resultsCount} Ergebnisse} } gefunden."},"@open-pioneer/experimental-layout-sidebar":{"toggle.expand":"Ausklappen","toggle.collapse":"Einklappen"},"@open-pioneer/editing":{"title":"Editierung von Objekten","tooltip.begin":"Klicken, um mit Erstellung der Geometrie zu beginnen","tooltip.continue":"Doppelt klicken, um Geometrie abzuschließen und Feature zu speichern"},"@open-pioneer/geolocation":{"locateNotSupported":"Die Geolokalisierung wird nicht unterstützt.","locateMeStart":"Geolokalisierung starten","locateMeEnd":"Geolokalisierung stoppen","error":"Fehler","permissionDenied":"Die Geolokalisierung wurde abgebrochen.","positionUnavailable":"Die Position kann nicht ermittelt werden.","timeout":"Die Geolokalisierung dauert zu lange und wurde daher abgebrochen.","unknownError":"Bei der Geolokalisierung ist es zu einem unerwarteten Fehler gekommen."},"@open-pioneer/legend":{"altLabel":"Legendengrafik für Layer {layerName}","fallbackLabel":"Legende nicht verfügbar","basemapLabel":"Hintergrundkarte"},"@open-pioneer/map-navigation":{"initial-extent.title":"Zoom auf initiale Ausdehnung","zoom-in.title":"Vergrößern","zoom-out.title":"Verkleinern"},"@open-pioneer/measurement":{"measurementLabel":"Modus","distance":"Strecke","area":"Fläche","deleteMeasurementLabel":"Messungen löschen","measurementInfoText":"Klicken Sie in die Karte, um eine Messung zu beginnen.","tooltips.help":"Klicken, um mit der Messung zu beginnen.","tooltips.continue":"Doppelt klicken, um die Messung zu beenden."},"@open-pioneer/printing":{"title":"Titel","fileFormat":"Datei Format","export":"Exportieren","input.placeholder":"Titel eingeben","printingMap":"Karte wird gedruckt ...","printingFailed":"Die Karte konnte nicht gedruckt werden."},"@open-pioneer/result-list":{"selectAllTooltip":"Alle auswählen","deSelectAllTooltip":"Alle abwählen","noDataMessage":"Keine Daten verfügbar","displayBoolean.true":"ja","displayBoolean.false":"nein","ariaLabel.selectSingle":"Drücken Sie die Leertaste zum ab- oder anwählen."},"@open-pioneer/search":{"noOptionsText":"Keine Suchtreffer gefunden","loadingText":"Frage Daten ab...","searchPlaceholder":"Suche...","ariaLabel.search":"Suchleiste","ariaLabel.instructions":"Benutze die Pfeiltasten Hoch und Runter um durch die Suchergebnisse zu scrollen, drücke Enter um das Suchergebnis zu selektieren, drücke Escape um zurückzukehren","ariaLabel.searchFocus":"fokussiert","ariaLabel.searchSelect":"selektiert","ariaLabel.searchClear":"gelöscht","ariaLabel.clearButton":"Suche leeren"},"@open-pioneer/selection":{"selectMethod":"Methode auswählen","EXTENT":"Rechteck","POLYGON":"Polygon","FREEPOLYGON":"Freies Zeichnen","CIRCLE":"Kreis","selectSource":"Quelle auswählen","tooltip":"Klicken Sie in die Karte, halten Sie die Maustaste gedrückt und ziehen Sie ein Rechteck auf","disabledTooltip":"Die aktuelle Selektionsquelle ist nicht verfügbar.","sourceNotAvailable":"Quelle nicht verfügbar","selectionFailed":"Die räumliche Auswahl ist fehlgeschlagen","selectionPlaceholder":"Keine Quelle ausgewählt","layerNotVisibleReason":"Zugehöriger Layer ist nicht sichtbar."},"@open-pioneer/spatial-bookmarks":{"bookmark.button.create":"Neues Lesezeichen hinzufügen","bookmark.button.deleteAll":"Alle Lesezeichen löschen","bookmark.button.deleteOne":"Lesezeichen löschen","bookmark.button.save":"Speichern","bookmark.button.cancel":"Abbrechen","bookmark.button.cancelDelete":"Nein","bookmark.button.confirmDelete":"Ja","bookmark.input.label":"Name","bookmark.input.placeholder":"Name des Lesezeichens","bookmark.alert.create":"Nach der Eingabe eines Namens können Sie das neue Lesezeichen speichern. Dabei wird der aktuelle Kartenausschnitt als Grundlage für die Position verwendet.","bookmark.alert.delete":"Möchten Sie wirklich alle räumlichen Lesezeichen löschen?","bookmark.alert.noSaved":"Sie haben keine gespeicherten Lesezeichen","bookmark.list.label":"Räumliche Lesezeichen"},"@open-pioneer/toc":{"basemapsLabel":"Hintergrundkarten","descriptionLabel":"Layer Beschreibung","operationalLayerLabel":"Layer","missingLayers":"Es sind keine Layer vorhanden.","error":"Beim Erstellen des Karteninhalts ist ein Fehler aufgetreten.","layerNotAvailable":"Layer nicht verfügbar","toolsLabel":"Kartenwerkzeuge","tools.hideAllLayers":"Alle Karteninhalte ausblenden"},"@open-pioneer/basemap-switcher":{"emptyBasemapLabel":"Ohne Hintergrundkarte","layerNotAvailable":"Layer nicht verfügbar"}}');export{e as default}; diff --git a/openlayers-base-packages/assets/24e823fcd0f9.js b/openlayers-base-packages/assets/47a1ae7e6ca8.js similarity index 97% rename from openlayers-base-packages/assets/24e823fcd0f9.js rename to openlayers-base-packages/assets/47a1ae7e6ca8.js index 42528a763..97e28b8d2 100644 --- a/openlayers-base-packages/assets/24e823fcd0f9.js +++ b/openlayers-base-packages/assets/47a1ae7e6ca8.js @@ -9,5 +9,5 @@ var Us=Object.defineProperty;var Ws=(o,e,t)=>e in o?Us(o,e,{enumerable:!0,config */var tt=p;function El(o,e){return o===e&&(o!==0||1/o===1/e)||o!==o&&e!==e}var Pl=typeof Object.is=="function"?Object.is:El,Ml=tt.useState,Ll=tt.useEffect,Al=tt.useLayoutEffect,Tl=tt.useDebugValue;function Il(o,e){var t=e(),n=Ml({inst:{value:t,getSnapshot:e}}),s=n[0].inst,i=n[1];return Al(function(){s.value=t,s.getSnapshot=e,fo(s)&&i({inst:s})},[o,t,e]),Ll(function(){return fo(s)&&i({inst:s}),o(function(){fo(s)&&i({inst:s})})},[o]),Tl(t),t}function fo(o){var e=o.getSnapshot;o=o.value;try{var t=e();return!Pl(o,t)}catch{return!0}}function Rl(o,e){return e()}var Ol=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Rl:Il;Ss.useSyncExternalStore=tt.useSyncExternalStore!==void 0?tt.useSyncExternalStore:Ol;ws.exports=Ss;var Dl=ws.exports;const jl=Zs(Dl),{use:un}=Dn,{useSyncExternalStore:Nl}=jl;const Fl=new WeakMap;function ot(o,e){const t=e?.sync,n=p.useRef(),s=p.useRef();let i=!0;const r=Nl(p.useCallback(d=>{const u=Cl(o,d,t);return d(),u},[o,t]),()=>{const d=dn(o,un);try{if(!i&&n.current&&s.current&&!bs(n.current,d,s.current,new WeakMap))return n.current}catch{}return d},()=>dn(o,un));i=!1;const a=new WeakMap;p.useEffect(()=>{n.current=r,s.current=a});const c=p.useMemo(()=>new WeakMap,[]);return vs(r,a,c,Fl)}function Vl(o){const e=ys({data:Array.from(o||[]),has(t){return this.data.some(n=>n[0]===t)},set(t,n){const s=this.data.find(i=>i[0]===t);return s?s[1]=n:this.data.push([t,n]),this},get(t){var n;return(n=this.data.find(s=>s[0]===t))==null?void 0:n[1]},delete(t){const n=this.data.findIndex(s=>s[0]===t);return n===-1?!1:(this.data.splice(n,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(t){this.data.forEach(n=>{t(n[1],n[0],this)})},keys(){return this.data.map(t=>t[0]).values()},values(){return this.data.map(t=>t[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(e,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(e),e}class Gl{label;filteredTypes;httpService;constructor(e,t,n){this.label=e,this.filteredTypes=t,this.httpService=n}async search(e,{mapProjection:t,signal:n}){const s=await this.request(e,100,n),i=new so({dataProjection:"EPSG:4326",featureProjection:t});return s.features.filter(r=>this.filteredTypes.includes(r.properties.type)).map((r,a)=>{const c=i.readGeometry(r.geometry);return{id:r.properties.osm_id||a,label:this.createLabel(r),geometry:c,properties:r.properties}})}async request(e,t,n){const s=new URL("https://photon.komoot.io/api?");s.searchParams.set("q",e),s.searchParams.set("lang","de"),s.searchParams.set("lat","51.961563"),s.searchParams.set("lon","7.628202"),s.searchParams.set("limit",t.toString());const i=await this.httpService.fetch(s,{signal:n});if(!i.ok)throw new Error("Request failed: "+i.status);return await i.json()}createLabel(e){return`${e.properties.name} (${e.properties.osm_value?e.properties.osm_value+", ":""}${e.properties.postcode?e.properties.postcode+", ":""}${e.properties.city?e.properties.city+", ":""}${e.properties.country?e.properties.country+")":")"}`}}const Bl=de("ol-app:AppModel");class zl{_intl;_mapRegistry;_ogcSearchSourceFactory;_vectorSelectionSourceFactory;_httpService;_state;_resources=[];constructor({references:e,intl:t}){this._mapRegistry=e.mapRegistry,this._intl=t,this._ogcSearchSourceFactory=e.ogcSearchSourceFactory,this._vectorSelectionSourceFactory=e.vectorSelectionSourceFactory,this._httpService=e.httpService,this._state=ys({searchSources:[],selectionSources:[],sourceMetadata:Vl(),resultListState:{input:void 0,open:!1,key:0}}),this.initSearchSources(),this.initSelectionSources().catch(n=>{Bl.error("Failed to initialize selection sources",n)})}destroy(){this._resources.forEach(e=>e.destroy())}get state(){return this._state}setResultListInput(e){const t=this._state.resultListState.key;this._state.resultListState={open:!0,key:t+1,input:e}}setResultListVisibility(e){this._state.resultListState.open=e}initSearchSources(){const e=this._ogcSearchSourceFactory.createSearchSource({label:this._intl.formatMessage({id:"searchSources.lika"}),baseUrl:"https://ogc-api.nrw.de/lika/v1",collectionId:"flurstueck",searchProperty:"flurstid",labelProperty:"objid"}),t=this._ogcSearchSourceFactory.createSearchSource({label:this._intl.formatMessage({id:"searchSources.miningPermissions"}),baseUrl:"https://ogc-api.nrw.de/inspire-am-bergbauberechtigungen/v1",collectionId:"managementrestrictionorregulationzone",searchProperty:"thematicId",labelProperty:"name",renderLabel(s){const i=s?.properties?.name,r=s?.id;return typeof i=="string"?i+" ("+r+")":String(r)},rewriteUrl(s){return s.searchParams.set("properties","name"),s}}),n=new Gl("Photon Geocoder",["city","street"],this._httpService);this._state.searchSources=[dt(e),dt(t),dt(n)]}async initSelectionSources(){const e=["ogc_kitas","ogc_kataster"],t=await this._mapRegistry.expectMapModel(G),n=t.layers.getOperationalLayers({sortByDisplayOrder:!0});for(const s of n){if(!e.includes(s.id)||!Ul(s.olLayer))continue;const i=this._vectorSelectionSourceFactory.createSelectionSource({vectorLayer:s.olLayer,label:s.title}),r=i.on("changed:status",()=>{i.status!=="available"&&(i.status==="unavailable"||i.status?.kind==="unavailable")&&t.removeHighlight()});this._resources.push(r,i),this._state.selectionSources.unshift(dt(i)),this._state.sourceMetadata.set(dt(i),s.attributes.resultListMetadata)}}}function Ul(o){return o instanceof ge&&o.getSource()instanceof De}const go=de("notifier:NotificationService");var ne,Ke,xt,kt,To,Oo,Hl;class Wl{constructor(){A(this,kt);A(this,Oo);A(this,ne,void 0);A(this,Ke,void 0);A(this,xt,void 0)}destroy(){clearTimeout(_(this,xt)),I(this,xt,void 0)}notify(e){W(this,kt,To).call(this,"showNotification",{title:e.title??void 0,message:e.message??void 0,level:e.level??"info",displayDuration:e.displayDuration})}closeAll(){W(this,kt,To).call(this,"closeAll")}registerHandler(e){if(_(this,ne))return go.warn(`A notification handler has already been registered; this new handler will be ignored. The component has likely been used twice in your application.`),{destroy(){}};I(this,ne,e);const t=_(this,Ke);if(I(this,Ke,void 0),t)for(const[s,...i]of t)e[s](...i);let n=!1;return{destroy:()=>{n||(n=!0,_(this,ne)===e&&I(this,ne,void 0))}}}}ne=new WeakMap,Ke=new WeakMap,xt=new WeakMap,kt=new WeakSet,To=function(e,...t){if(_(this,ne))_(this,ne)[e](...t);else{const n=_(this,Ke)??I(this,Ke,[]);if(n.length>=1024){go.error(`Internal notification buffer overflow: this event will be dropped to prevent a memory leak. Make sure that the UI is configured to display notifications (use ).`,{method:e,args:t});return}n.push([e,...t])}},Oo=new WeakSet,Hl=function(){_(this,ne)||go.warn(`No notification handler has been registered: notifications will not be visible. -Make sure that your app contains the component.`)};const Dt={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"};class jt extends Bn{constructor(e,t){super(e),this.feature=t}}function $l(o,e){const t=[];for(let n=0;n=t?o[e-t]:o[e]}function Ft(o,e,t){let n,s;er){const c=Be(o,n),d=Be(o,s);return Nt(c,d)}let a=0;if(nf.startIndex?Sf.startIndex&&(S-=g.length)),c=S,a=h)}const d=e.targets[a];let u=d.ring;if(e.targetIndex===a&&u){const h=Be(d.coordinates,c),f=t.getPixelFromCoordinate(h);Kn(f,e.startPx)>n&&(u=!1)}if(u){const h=d.coordinates,f=h.length,g=d.startIndex,v=c;if(g=t?n-=t:n<0&&(n+=t);let i=n+1;i>=t&&(i-=t);const r=o[n],a=r[0],c=r[1],d=o[i],u=d[0]-a,h=d[1]-c;return[a+u*s,c+h*s]}class Kl extends Ci{constructor(e){const t=e;t.stopDown||(t.stopDown=Ei),super(t),this.on,this.once,this.un,this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.pointerType_,this.freehand_=!1,this.source_=e.source?e.source:null,this.features_=e.features?e.features:null,this.snapTolerance_=e.snapTolerance?e.snapTolerance:12,this.type_=e.type,this.mode_=Xl(this.type_),this.stopClick_=!!e.stopClick,this.minPoints_=e.minPoints?e.minPoints:this.mode_==="Polygon"?3:2,this.maxPoints_=this.mode_==="Circle"?2:e.maxPoints?e.maxPoints:1/0,this.finishCondition_=e.finishCondition?e.finishCondition:Pi,this.geometryLayout_=e.geometryLayout?e.geometryLayout:"XY";let n=e.geometryFunction;if(!n){const s=this.mode_;if(s==="Circle")n=function(i,r,a){const c=r||new Ua([NaN,NaN]),d=Zo(i[0]),u=Mi(d,Zo(i[i.length-1]));return c.setCenterAndRadius(d,Math.sqrt(u),this.geometryLayout_),c};else{let i;s==="Point"?i=ze:s==="LineString"?i=Ue:s==="Polygon"&&(i=no),n=function(r,a,c){return a?s==="Polygon"?r[0].length?a.setCoordinates([r[0].concat([r[0][0]])],this.geometryLayout_):a.setCoordinates([],this.geometryLayout_):a.setCoordinates(r,this.geometryLayout_):a=new i(r,this.geometryLayout_),a}}}this.geometryFunction_=n,this.dragVertexDelay_=e.dragVertexDelay!==void 0?e.dragVertexDelay:500,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,this.overlay_=new ge({source:new De({useSpatialIndex:!1,wrapX:e.wrapX?e.wrapX:!1}),style:e.style?e.style:Yl(),updateWhileInteracting:!0}),this.geometryName_=e.geometryName,this.condition_=e.condition?e.condition:Li,this.freehandCondition_,e.freehand?this.freehandCondition_=Jo:this.freehandCondition_=e.freehandCondition?e.freehandCondition:Ai,this.traceCondition_,this.setTrace(e.trace||!1),this.traceState_={active:!1},this.traceSource_=e.traceSource||e.source||null,this.addChangeListener(Ti.ACTIVE,this.updateState_)}setTrace(e){let t;e?e===!0?t=Jo:t=e:t=Di,this.traceCondition_=t}setMap(e){super.setMap(e),this.updateState_()}getOverlay(){return this.overlay_}handleEvent(e){e.originalEvent.type===qn.CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_=this.mode_!=="Point"&&this.freehandCondition_(e);let t=e.type===ve.POINTERMOVE,n=!0;return!this.freehand_&&this.lastDragTime_&&e.type===ve.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,t=!0):this.lastDragTime_=void 0,this.shouldHandle_&&this.downTimeout_!==void 0&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&e.type===ve.POINTERDRAG&&this.sketchFeature_!==null?(this.addToDrawing_(e.coordinate),n=!1):this.freehand_&&e.type===ve.POINTERDOWN?n=!1:t&&this.getPointerCount()<2?(n=e.type===ve.POINTERMOVE,n&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):(e.originalEvent.pointerType==="mouse"||e.type===ve.POINTERDRAG&&this.downTimeout_===void 0)&&this.handlePointerMove_(e)):e.type===ve.DBLCLICK&&(n=!1),super.handleEvent(e)&&n}handleDownEvent(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(()=>{this.handlePointerMove_(new Ii(ve.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))},this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)}deactivateTrace_(){this.traceState_={active:!1}}toggleTraceState_(e){if(!this.traceSource_||!this.traceCondition_(e))return;if(this.traceState_.active){this.deactivateTrace_();return}const t=this.getMap(),n=t.getCoordinateFromPixel([e.pixel[0]-this.snapTolerance_,e.pixel[1]+this.snapTolerance_]),s=t.getCoordinateFromPixel([e.pixel[0]+this.snapTolerance_,e.pixel[1]-this.snapTolerance_]),i=Vn([n,s]),r=this.traceSource_.getFeaturesInExtent(i);if(r.length===0)return;const a=$l(e.coordinate,r);a.length&&(this.traceState_={active:!0,startPx:e.pixel.slice(),targets:a,targetIndex:-1})}addOrRemoveTracedCoordinates_(e,t){const n=e.startIndex<=e.endIndex,s=e.startIndex<=t;n===s?n&&t>e.endIndex||!n&&te.endIndex)&&this.removeTracedCoordinates_(t,e.endIndex):(this.removeTracedCoordinates_(e.startIndex,e.endIndex),this.addTracedCoordinates_(e,e.startIndex,t))}removeTracedCoordinates_(e,t){if(e===t)return;let n=0;if(e0&&this.removeLastPoints_(n)}addTracedCoordinates_(e,t,n){if(t===n)return;const s=[];if(t=r;--a)s.push(Ge(e.coordinates,a))}s.length&&this.appendCoordinates(s)}updateTrace_(e){const t=this.traceState_;if(!t.active||t.targetIndex===-1&&Kn(t.startPx,e.pixel)this.squaredClickTolerance_:r<=this.squaredClickTolerance_,!this.shouldHandle_)return}if(!this.finishCoordinate_){this.createOrUpdateSketchPoint_(e.coordinate.slice());return}this.updateTrace_(e),this.modifyDrawing_(e.coordinate)}atFinish_(e,t){let n=!1;if(this.sketchFeature_){let s=!1,i=[this.finishCoordinate_];const r=this.mode_;if(r==="Point")n=!0;else if(r==="Circle")n=this.sketchCoords_.length===2;else if(r==="LineString")s=!t&&this.sketchCoords_.length>this.minPoints_;else if(r==="Polygon"){const a=this.sketchCoords_;s=a[0].length>this.minPoints_,i=[a[0][0],a[0][a[0].length-2]],t?i=[a[0][0]]:i=[a[0][0],a[0][a[0].length-2]]}if(s){const a=this.getMap();for(let c=0,d=i.length;c=this.maxPoints_&&(this.freehand_?i.pop():s=!0),i.push(e.slice()),this.geometryFunction_(i,t,n)):r==="Polygon"&&(i=this.sketchCoords_[0],i.length>=this.maxPoints_&&(this.freehand_?i.pop():s=!0),i.push(e.slice()),s&&(this.finishCoordinate_=i[0]),this.geometryFunction_(this.sketchCoords_,t,n)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),s&&this.finishDrawing()}removeLastPoints_(e){if(!this.sketchFeature_)return;const t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),s=this.mode_;for(let i=0;i=2){this.finishCoordinate_=r[r.length-2].slice();const a=this.finishCoordinate_.slice();r[r.length-1]=a,this.createOrUpdateSketchPoint_(a)}this.geometryFunction_(r,t,n),t.getType()==="Polygon"&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(s==="Polygon"){r=this.sketchCoords_[0],r.splice(-2,1);const a=this.sketchLine_.getGeometry();if(r.length>=2){const c=r[r.length-2].slice();r[r.length-1]=c,this.createOrUpdateSketchPoint_(c)}a.setCoordinates(r),this.geometryFunction_(this.sketchCoords_,t,n)}if(r.length===1){this.abortDrawing();break}}this.updateSketchFeatures_()}removeLastPoint(){this.removeLastPoints_(1)}finishDrawing(){const e=this.abortDrawing_();if(!e)return;let t=this.sketchCoords_;const n=e.getGeometry(),s=this.getMap().getView().getProjection();this.mode_==="LineString"?(t.pop(),this.geometryFunction_(t,n,s)):this.mode_==="Polygon"&&(t[0].pop(),this.geometryFunction_(t,n,s),t=n.getCoordinates()),this.type_==="MultiPoint"?e.setGeometry(new vr([t])):this.type_==="MultiLineString"?e.setGeometry(new os([t])):this.type_==="MultiPolygon"&&e.setGeometry(new ns([t])),this.dispatchEvent(new jt(Dt.DRAWEND,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}abortDrawing_(){this.finishCoordinate_=null;const e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),this.deactivateTrace_(),e}abortDrawing(){const e=this.abortDrawing_();e&&this.dispatchEvent(new jt(Dt.DRAWABORT,e))}appendCoordinates(e){const t=this.mode_,n=!this.sketchFeature_;n&&this.startDrawing_(e[0]);let s;if(t==="LineString"||t==="Circle")s=this.sketchCoords_;else if(t==="Polygon")s=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[];else return;n&&s.shift(),s.pop();for(let r=0;r`}});if(!r||!r.ok||r.status!==201)return Promise.reject(new Error("Request failed: "+r.status));const a=r.headers.get("location");if(!a)return Promise.reject(new Error("Request failed: no Location response header"));const c=a.substring(a.lastIndexOf("/")+1);return Promise.resolve(c)}var we;class Jl extends No{constructor(t){super();A(this,we,void 0);$(this,"_httpService");$(this,"_intl");$(this,"_map");$(this,"_polygonDrawStyle");$(this,"_state");$(this,"_editLayerURL");$(this,"_drawSource");$(this,"_drawLayer");$(this,"_drawInteraction");$(this,"_olMap");$(this,"_mapContainer");$(this,"_tooltip");$(this,"_enterHandler");$(this,"_escapeHandler");$(this,"_interactionListener");$(this,"_mapListener");this._httpService=t.httpService,this._intl=t.intl,this._polygonDrawStyle=t.polygonDrawStyle,this._map=t.map,this._olMap=t.map.olMap,this._state="active:initialized",this._editLayerURL=t.ogcApiFeatureLayerUrl,this._drawSource=new De,this._drawLayer=new ge({source:this._drawSource,zIndex:Fo,properties:{name:"editing-layer"}}),this._drawInteraction=new Wo({source:this._drawSource,type:"Polygon",style:this._polygonDrawStyle}),this._tooltip=this._createTooltip(this._olMap),this._enterHandler=n=>{if(n.code==="Enter"&&n.target===this._olMap.getTargetElement()){const s=this._drawInteraction.getOverlay().getSource().getFeatures();s[0]&&s[0].getGeometry().getCoordinates()[0].length>4&&this._drawInteraction.finishDrawing()}},this._escapeHandler=n=>{n.code==="Escape"&&n.target===this._olMap.getTargetElement()&&this.reset()},this._interactionListener=[],this._mapListener=[],this._start()}getDrawInteraction(){return this._drawInteraction}getState(){return this._state}_setState(t){this._state=t,this.emit(t)}_start(){this._olMap.addLayer(this._drawLayer),this._olMap.addInteraction(this._drawInteraction),this._mapContainer=this._olMap.getTargetElement()??void 0,this._mapContainer&&(this._mapContainer.addEventListener("keydown",this._enterHandler,!1),this._mapContainer.addEventListener("keydown",this._escapeHandler,!1)),this._tooltip.element.classList.remove("editing-tooltip-hidden");const t=this._drawInteraction.on("drawstart",()=>{this._setState("active:drawing"),this._tooltip.element.textContent=this._intl.formatMessage({id:"tooltip.continue"})}),n=this._drawInteraction.on("drawend",i=>{this._setState("active:saving");const r=this._editLayerURL,a=i.feature.getGeometry();if(!a){this._destroy(),_(this,we)?.reject(new Error("no geometry available"));return}const c=this._olMap.getView().getProjection(),u=new so({dataProjection:c}).writeGeometryObject(a,{rightHanded:!0,decimals:10});Zl(this._httpService,r,u,c).then(h=>{this._destroy(),_(this,we)?.resolve(h)}).catch(h=>{console.log(h),this._destroy(),_(this,we)?.reject(h)})}),s=this._map.on("changed:container",()=>{this._mapContainer?.removeEventListener("keydown",this._enterHandler),this._mapContainer?.removeEventListener("keydown",this._escapeHandler),this._mapContainer=this._olMap.getTargetElement()??void 0,this._mapContainer&&(this._mapContainer.addEventListener("keydown",this._enterHandler,!1),this._mapContainer.addEventListener("keydown",this._escapeHandler,!1))});this._interactionListener.push(t,n),this._mapListener.push(s)}reset(){this._drawInteraction.abortDrawing(),this._tooltip.element.textContent=this._intl.formatMessage({id:"tooltip.begin"}),this._setState("active:initialized")}stop(){this._destroy(),_(this,we)?.resolve(void 0)}_destroy(){this._olMap.removeLayer(this._drawLayer),this._olMap.removeInteraction(this._drawInteraction),this._tooltip.destroy(),this._interactionListener.map(t=>{ce(t)}),this._mapListener.map(t=>{t.destroy()}),this._mapContainer?.removeEventListener("keydown",this._enterHandler),this._mapContainer?.removeEventListener("keydown",this._escapeHandler),this._state="inactive"}whenComplete(){return(_(this,we)??I(this,we,jn())).promise}_createTooltip(t){const n=document.createElement("div");n.className="editing-tooltip editing-tooltip-hidden",n.textContent=this._intl.formatMessage({id:"tooltip.begin"});const s=new bt({element:n,offset:[15,0],positioning:"center-left"}),i=t.on("pointermove",r=>{r.dragging||s.setPosition(r.coordinate)});return t.addOverlay(s),{overlay:s,element:n,destroy(){ce(i),t.removeOverlay(s)}}}}we=new WeakMap;class Ql{_serviceOptions;_workflows;constructor(e){this._serviceOptions=e,this._workflows=new Map}start(e,t){if(!t||!e||!e.id)throw new Error("Map, mapId or url is undefined.");const n=e.id;let s=this._workflows.get(n);if(s)throw new Error("EditingWorkflow could not be started. EditingWorkflow already in progress for this map.");return s=new Jl({map:e,ogcApiFeatureLayerUrl:t,polygonDrawStyle:this._serviceOptions.properties.polygonDrawStyle,httpService:this._serviceOptions.references.httpService,intl:this._serviceOptions.intl}),this._workflows.set(n,s),this._connectToWorkflowComplete(s,n),s}stop(e){const t=this._workflows.get(e);if(t)t.stop();else return new Error("No workflow found for mapId: "+e)}reset(e){const t=this._workflows.get(e);if(t)t.reset();else return new Error("No workflow found for mapId: "+e)}_connectToWorkflowComplete(e,t){e.whenComplete().finally(()=>{this._workflows.delete(t)})}}new ze([407354,5754673]),new ze([404740,5757893]);var Le,Se,Ct,Et,Pt,Io;class ec extends No{constructor(t,n,s){super();A(this,Pt);$(this,"label");A(this,Le,{kind:"available"});A(this,Se,void 0);A(this,Ct,void 0);A(this,Et,void 0);this.label=n,I(this,Se,t),I(this,Et,s),W(this,Pt,Io).call(this),I(this,Ct,_(this,Se).on("change:visible",()=>{W(this,Pt,Io).call(this)}))}destroy(){ce(_(this,Ct))}get status(){return _(this,Le)}async select(t,n){if(t.type!=="extent")throw new Error(`Unsupported selection kind: ${t.type}`);if(_(this,Le).kind!=="available"||_(this,Se).getSource()===null)return[];const s=[];_(this,Se).getSource().forEachFeatureIntersectingExtent(t.extent,a=>{if(!a.getGeometry())return;const c={...a.getProperties()};delete c.geometries;const d={id:a.getId()?.toString()||Xn(),geometry:a.getGeometry(),properties:c};s.push(d)});const i=s.filter(a=>a!=null);return i.length>n.maxResults?i.slice(0,n.maxResults):i}}Le=new WeakMap,Se=new WeakMap,Ct=new WeakMap,Et=new WeakMap,Pt=new WeakSet,Io=function(){const n=_(this,Se).getVisible()?{kind:"available"}:{kind:"unavailable",reason:_(this,Et)};n.kind!==_(this,Le).kind&&(I(this,Le,n),this.emit("changed:status"))};var Mt;class tc{constructor({intl:e}){A(this,Mt,void 0);I(this,Mt,e)}createSelectionSource(e){return new ec(e.vectorLayer,e.label,_(this,Mt).formatMessage({id:"layerNotVisibleReason"}))}}Mt=new WeakMap;const Ie=de("local-storage"),oc=0,le={CORRUPTED_DATA:"local-storage:corrupted-data",INVALID_PATH:"local-storage:invalid-path",INVALID_VALUE:"local-storage:invalid-value",NOT_SUPPORTED:"local-storage:not-supported",INTERNAL:"local-storage:internal-error"};var Ye,se,_e,Xe,ie,Zt,ks,Jt,Cs,Ae,mt,xe,Ve,Qt,Es;class nc{constructor(e){A(this,Zt);A(this,Jt);A(this,Ae);A(this,xe);A(this,Qt);A(this,Ye,void 0);A(this,se,{});A(this,_e,void 0);A(this,Xe,void 0);A(this,ie,void 0);I(this,Ye,ac(e.properties)),I(this,_e,lc()),_(this,_e)&&(W(this,Jt,Cs).call(this),I(this,Xe,W(this,Qt,Es).call(this)))}destroy(){_(this,ie)&&(clearTimeout(_(this,ie)),I(this,ie,void 0)),_(this,_e)&&W(this,Ae,mt).call(this)}get isSupported(){return!!_(this,Xe)}get(e){return W(this,xe,Ve).call(this).get(e)}set(e,t){return W(this,xe,Ve).call(this).set(e,t)}remove(e){return W(this,xe,Ve).call(this).remove(e)}removeAll(){return W(this,xe,Ve).call(this).removeAll()}getNamespace(e){return W(this,xe,Ve).call(this).getNamespace(e)}}Ye=new WeakMap,se=new WeakMap,_e=new WeakMap,Xe=new WeakMap,ie=new WeakMap,Zt=new WeakSet,ks=function(){_(this,ie)&&clearTimeout(_(this,ie)),I(this,ie,setTimeout(()=>{I(this,ie,void 0),W(this,Ae,mt).call(this)},oc))},Jt=new WeakSet,Cs=function(){try{const e=_(this,_e);if(!e)throw new ae(le.INTERNAL,"Local storage is not available.");const t=e.getItem(_(this,Ye));if(t==null){I(this,se,{}),W(this,Ae,mt).call(this);return}try{const n=JSON.parse(t);if(!nt(n))throw new ae(le.CORRUPTED_DATA,"Persisted value should be an object.");I(this,se,n)}catch(n){Ie.warn("Invalid persisted data, reverting to default.",n),I(this,se,{}),W(this,Ae,mt).call(this)}}catch(e){Ie.error("Failed to load from local storage",e)}},Ae=new WeakSet,mt=function(){try{const e=_(this,_e);if(!e)throw new ae(le.INTERNAL,"Local storage is not available.");const t=JSON.stringify(_(this,se));e.setItem(_(this,Ye),t)}catch(e){Ie.error("Failed to save to local storage",e)}},xe=new WeakSet,Ve=function(){const e=_(this,Xe);if(!e)throw new ae(le.NOT_SUPPORTED,"Local storage is not supported by this browser.");return e},Qt=new WeakSet,Es=function(){const e={getByPath:t=>pn(sc(_(this,se),t)),setByPath:(t,n)=>{if(!rc(n))throw new ae(le.INVALID_VALUE,"The value is not supported by local storage.");if(n=pn(n),t.length===0){if(!nt(n))throw new ae(le.INVALID_VALUE,"The root value must be a plain object.");I(this,se,n)}else ic(_(this,se),t,n);W(this,Zt,ks).call(this)}};return new Ho([],e)};class Ho{path;access;constructor(e,t){this.path=e,this.access=t}get(e){return this.access.getByPath([...this.path,e])}set(e,t){this.access.setByPath([...this.path,e],t)}remove(e){this.access.setByPath([...this.path,e],void 0)}removeAll(){this.access.setByPath(this.path,{})}getNamespace(e){const t=this.get(e);if(t===void 0)this.set(e,{});else if(!nt(t))throw new ae(le.INVALID_PATH,`Cannot use '${e}' as a namespace because it is not associated with an object.`);return new Ho(this.path.concat([e]),this.access)}}const hn="trails-state";function sc(o,e){let t=o;for(const n of e){if(!nt(t))throw new ae(le.INVALID_PATH,`Cannot get nested property '${n}' because the parent is no object.`);t=t[n]}return t}function ic(o,e,t){if(!e.length)throw new ae(le.INTERNAL,"Path must not be empty.");let n=o;for(let i=0,r=e.length-1;i"u"){Ie.warn("Local storage is not supported by this browser.");return}try{const o=globalThis.localStorage;if(!o){Ie.warn("Local storage is not supported by this browser.");return}return o}catch(o){Ie.warn("Local storage is not supported by this browser.",o);return}}function pn(o){return o!=null&&(o=JSON.parse(JSON.stringify(o))),o}const cc={"ol-map":{name:"ol-map",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:dl,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{vectorSourceFactory:{name:"ogc-features.VectorSourceFactory",qualifier:void 0,all:!1}}},AppModel:{name:"AppModel",clazz:zl,provides:[{name:"ol-app.AppModel",qualifier:void 0}],references:{ogcSearchSourceFactory:{name:"ogc-features.SearchSourceFactory",qualifier:void 0,all:!1},vectorSelectionSourceFactory:{name:"selection.VectorSelectionSourceFactory",qualifier:void 0,all:!1},httpService:{name:"http.HttpService",qualifier:void 0,all:!1},mapRegistry:{name:"map.MapRegistry",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1},{name:"ol-app.AppModel",qualifier:void 0,all:!1},{name:"notifier.NotificationService",qualifier:void 0,all:!1},{name:"editing.EditingService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:Ni,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:Wl,provides:[{name:"notifier.NotificationService",qualifier:"notifier.NotificationService"}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:Fi,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/ogc-features":{name:"@open-pioneer/ogc-features",services:{VectorSourceFactory:{name:"VectorSourceFactory",clazz:wr,provides:[{name:"ogc-features.VectorSourceFactory",qualifier:void 0}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}},SearchSourceFactory:{name:"SearchSourceFactory",clazz:Sr,provides:[{name:"ogc-features.SearchSourceFactory",qualifier:void 0}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{}},"@open-pioneer/experimental-layout-sidebar":{name:"@open-pioneer/experimental-layout-sidebar",services:{},ui:{references:[]},properties:{}},"@open-pioneer/coordinate-viewer":{name:"@open-pioneer/coordinate-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/overview-map":{name:"@open-pioneer/overview-map",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-bar":{name:"@open-pioneer/scale-bar",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-viewer":{name:"@open-pioneer/scale-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/result-list":{name:"@open-pioneer/result-list",services:{},ui:{references:[]},properties:{}},"@open-pioneer/toc":{name:"@open-pioneer/toc",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-navigation":{name:"@open-pioneer/map-navigation",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/editing":{name:"@open-pioneer/editing",services:{EditingServiceImpl:{name:"EditingServiceImpl",clazz:Ql,provides:[{name:"editing.EditingService",qualifier:void 0}],references:{mapRegistry:{name:"map.MapRegistry",qualifier:void 0,all:!1},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{polygonDrawStyle:{value:{"stroke-color":"yellow","stroke-width":2,"fill-color":"rgba(0, 0, 0, 0.1)","circle-radius":5,"circle-fill-color":"rgba(0, 0, 255, 0.2)","circle-stroke-color":"rgba(0, 0, 255, 0.7)","circle-stroke-width":2},required:!1}}},"@open-pioneer/geolocation":{name:"@open-pioneer/geolocation",services:{},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/legend":{name:"@open-pioneer/legend",services:{},ui:{references:[]},properties:{}},"@open-pioneer/measurement":{name:"@open-pioneer/measurement",services:{},ui:{references:[]},properties:{}},"@open-pioneer/printing":{name:"@open-pioneer/printing",services:{},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/spatial-bookmarks":{name:"@open-pioneer/spatial-bookmarks",services:{},ui:{references:[{name:"local-storage.LocalStorageService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/search":{name:"@open-pioneer/search",services:{},ui:{references:[]},properties:{}},"@open-pioneer/selection":{name:"@open-pioneer/selection",services:{VectorSelectionSourceFactory:{name:"VectorSelectionSourceFactory",clazz:tc,provides:[{name:"selection.VectorSelectionSourceFactory",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/local-storage":{name:"@open-pioneer/local-storage",services:{LocalStorageServiceImpl:{name:"LocalStorageServiceImpl",clazz:nc,provides:[{name:"local-storage.LocalStorageService",qualifier:"local-storage.LocalStorageService"}],references:{}}},ui:{references:[]},properties:{storageId:{value:null,required:!1}}}},dc=`.search-box{position:absolute;width:500px;max-width:100%;z-index:1}.spatial-bookmarks{max-height:300px}:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.editing-tooltip{position:relative;background:rgba(255,255,255,.8);border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.editing-tooltip-hidden{visibility:hidden}.measurement-tooltip{position:relative;background:rgba(255,255,255,.8);border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.measurement-active-tooltip{background:rgba(0,0,0,.9);border-radius:4px;border-color:#000000e6;opacity:.9;color:#fff}.measurement-finished-tooltip{background-color:#4cb3ffe6;color:#000;border:1px solid white}.measurement-active-tooltip:before,.measurement-finished-tooltip:before{border-top:6px solid rgba(0,0,0,.9);border-right:6px solid transparent;border-left:6px solid transparent;content:"";position:absolute;bottom:-6px;margin-left:-7px;left:50%}.measurement-finished-tooltip:before{border-top-color:#4cb3ff}.printing-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10000;-webkit-user-select:none;user-select:none;pointer-events:all;cursor:wait;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:#b4b4b4cc}.printing-overlay-status{flex:1 1 auto;font-size:1.5em;text-align:center}.search-component .chakra-divider{display:none}.search-component .search-highlighted-match{font-weight:700}.search-component .search-value-container{cursor:text;padding-left:30px!important}.search-component .search-invisible{display:none}.selection-drag-box{background-color:#ffffff4d!important;border:3px solid var(--chakra-colors-background_primary)!important}.selection-tooltip{position:relative;background:rgba(255,255,255,.8);border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.selection .react-select{cursor:default}.map-container .selection-active{cursor:crosshair}.map-container .selection-inactive{cursor:no-drop}.selection-source-value.selection-source-value--disabled{opacity:.4}.selection-source-value.selection-source-value--disabled span{margin:0 6px 0 0}.layout-sidebar{height:100%;position:absolute;top:0}.layout-sidebar[data-theme=light]{background-color:var(--chakra-colors-whiteAlpha-700)}.layout-sidebar[data-theme=dark]{background-color:var(--chakra-colors-blackAlpha-700)}.layout-sidebar .layout-sidebar-main{transition:width .3s ease-out 0s;border-right:1px solid var(--chakra-colors-chakra-border-color)}.layout-sidebar .layout-sidebar-content{overflow:auto;transition:width .3s ease-out 0s}.layout-sidebar .layout-sidebar-content .content-section .content-header{font-size:1.5em;background-color:var(--chakra-colors-blackAlpha-500);padding:.5rem 1rem}.layout-sidebar .layout-sidebar-content .content-section .content-body{padding:1rem}.overview-map .ol-overviewmap{position:relative;height:100%;width:100%}.overview-map .ol-overviewmap:not(.ol-collapsed){border:1px solid black}.overview-map .ol-overviewmap .ol-overviewmap-map{border:none;width:100%;height:100%}.overview-map .ol-overviewmap .ol-overviewmap-box{border:2px solid red}.scale-bar .ol-scale-bar{margin-bottom:8px;margin-right:8px}.scale-bar .ol-scale-bar,.scale-bar .ol-scale-line{position:relative;bottom:0;left:0;background:none}.scale-bar .ol-scale-bar .ol-scale-bar-inner,.scale-bar .ol-scale-bar .ol-scale-line-inner,.scale-bar .ol-scale-line .ol-scale-bar-inner,.scale-bar .ol-scale-line .ol-scale-line-inner{color:var(--chakra-white);border-color:var(--chakra-white)}.result-list-no-data-message{text-align:center;margin-top:50px;font-weight:700;font-size:larger}.result-list-table th,.result-list-table td{overflow-wrap:break-word}.result-list-table.result-list-table--is-resizing *{cursor:col-resize}.result-list-table thead{position:sticky;top:0;z-index:1;background:var(--chakra-colors-background_body)}.result-list-table th{position:relative;border-right-width:thin}.result-list-table tbody tr:hover{background:var(--chakra-colors-background_light)}.result-list-table .result-list-resizer{position:absolute;top:0;height:100%;right:0;width:8px;background:var(--chakra-colors-trails-100);transform:scaleX(.25);cursor:col-resize;-webkit-user-select:none;user-select:none;touch-action:none;padding-left:0}.result-list-table th:last-child .result-list-resizer{width:8px;transform:translate(50%) scaleX(.25)}.result-list-table th .result-list-resizer.result-list-resizer--is-resizing{background:var(--chakra-colors-trails-500);transform:scale(1)}.result-list-table th .result-list-resizer:hover{transform:scale(1)} -`,uc=["en","de"];function hc(o){switch(o){case"en":return Ht(()=>import("./f16488b1be7f.js"),[],import.meta.url).then(e=>e.default);case"de":return Ht(()=>import("./8e70571c5f1f.js"),[],import.meta.url).then(e=>e.default)}throw new Error(`Unsupported locale: '${o}'`)}const pc=Js(dc),fc=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:hc,locales:uc,packages:cc,styles:pc},Symbol.toStringTag,{value:"Module"})),gc="@open-pioneer/coordinate-viewer",mc=ue.bind(void 0,gc),vc=4,bc=o=>{const{mapId:e,precision:t,displayProjectionCode:n}=o,{containerProps:s}=oe("coordinate-viewer",o),{map:i}=Y(e),r=i?.olMap,a=fs(r)?.getCode()??"";let{coordinates:c}=wc(r);c=c&&n?_c(c,a,n):c;const d=yc(c,t),u=n||a,h=d?d+" "+u:"";return l.jsx(N,{...s,children:l.jsx(fe,{className:"coordinate-viewer-text",children:h})})};function yc(o,e){const t=mc();return o?Sc(o,e,t):""}function wc(o){const[e,t]=p.useState();return p.useEffect(()=>{if(!o)return;const n=o.on("pointermove",s=>{t(s.coordinate)});return()=>ce(n)},[o]),{coordinates:e}}function Sc(o,e,t){if(o[0]==null||o[1]==null)return"";const n=e??vc,[s,i]=o,r=t.formatNumber(s,{maximumFractionDigits:n,minimumFractionDigits:n}),a=t.formatNumber(i,{maximumFractionDigits:n,minimumFractionDigits:n});return r+" "+a}function _c(o,e,t){return Vi(o,e,t)}function fn(o){const e=p.useRef(null);return p.useLayoutEffect(()=>{e.current=o}),p.useCallback((...n)=>{const s=e.current;return s(...n)},[])}const xc="@open-pioneer/notifier",kc=rt.bind(void 0,xc);var Ps=is({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"}),Cc=is({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"});const Ec=!1;function Pc(o){const{position:e="top-right"}=o,t=Tr(),n=kc("notifier.NotificationService"),[s,i]=p.useState(!Ec),r=fn(c=>{const d=c.level==="error"?l.jsx(Ps,{h:"100%",w:"100%"}):void 0;t({position:e,title:c.title,description:c.message||null,status:c.level,isClosable:!0,duration:c.displayDuration??null,icon:d})}),a=fn(()=>{t.closeAll()});return p.useEffect(()=>{const c=n.registerHandler({showNotification:r,closeAll:a});return()=>c.destroy()},[s,n,r,a]),l.jsx(l.Fragment,{})}const bo=.75,Gt=.1;let Mc=class extends Zn{constructor(e){e=e||{},super({element:document.createElement("div"),render:e.render,target:e.target}),this.boundHandleRotationChanged_=this.handleRotationChanged_.bind(this),this.collapsed_=e.collapsed!==void 0?e.collapsed:!0,this.collapsible_=e.collapsible!==void 0?e.collapsible:!0,this.collapsible_||(this.collapsed_=!1),this.rotateWithView_=e.rotateWithView!==void 0?e.rotateWithView:!1,this.viewExtent_=void 0;const t=e.className!==void 0?e.className:"ol-overviewmap",n=e.tipLabel!==void 0?e.tipLabel:"Overview map",s=e.collapseLabel!==void 0?e.collapseLabel:"‹";typeof s=="string"?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=s):this.collapseLabel_=s;const i=e.label!==void 0?e.label:"›";typeof i=="string"?(this.label_=document.createElement("span"),this.label_.textContent=i):this.label_=i;const r=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,a=document.createElement("button");a.setAttribute("type","button"),a.title=n,a.appendChild(r),a.addEventListener(qn.CLICK,this.handleClick_.bind(this),!1),this.ovmapDiv_=document.createElement("div"),this.ovmapDiv_.className="ol-overviewmap-map",this.view_=e.view;const c=new Gi({view:e.view,controls:new en,interactions:new en});this.ovmap_=c,e.layers&&e.layers.forEach(function(O){c.addLayer(O)});const d=document.createElement("div");d.className="ol-overviewmap-box",d.style.boxSizing="border-box",this.boxOverlay_=new bt({position:[0,0],positioning:"center-center",element:d}),this.ovmap_.addOverlay(this.boxOverlay_);const u=t+" "+Jn+" "+Bi+(this.collapsed_&&this.collapsible_?" "+tn:"")+(this.collapsible_?"":" ol-uncollapsible"),h=this.element;h.className=u,h.appendChild(this.ovmapDiv_),h.appendChild(a);const f=this,g=this.boxOverlay_,v=this.boxOverlay_.getElement(),S=function(O){return{clientX:O.clientX,clientY:O.clientY}},L=function(O){const T=S(O),X=c.getEventCoordinateInternal(T);g.setPosition(X)},E=function(O){const T=c.getEventCoordinateInternal(O);f.getMap().getView().setCenterInternal(T),window.removeEventListener("mousemove",L),window.removeEventListener("mouseup",E)};v.addEventListener("mousedown",function(){window.addEventListener("mousemove",L),window.addEventListener("mouseup",E)})}setMap(e){const t=this.getMap();if(e!==t){if(t){const n=t.getView();n&&this.unbindView_(n),this.ovmap_.setTarget(null)}if(super.setMap(e),e){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push(zn(e,zi.PROPERTYCHANGE,this.handleMapPropertyChange_,this));const n=e.getView();n&&(this.bindView_(n),n.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}}handleMapPropertyChange_(e){if(e.key===ho.VIEW){const t=e.oldValue;t&&this.unbindView_(t);const n=this.getMap().getView();this.bindView_(n)}else!this.ovmap_.isRendered()&&(e.key===ho.TARGET||e.key===ho.SIZE)&&this.ovmap_.updateSize()}bindView_(e){if(!this.view_){const t=new Hn({projection:e.getProjection()});this.ovmap_.setView(t)}e.addChangeListener(on.ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_()}unbindView_(e){e.removeChangeListener(on.ROTATION,this.boundHandleRotationChanged_)}handleRotationChanged_(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())}validateExtent_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const n=e.getSize(),i=e.getView().calculateExtentInternal(n);if(this.viewExtent_&&Ui(i,this.viewExtent_))return;this.viewExtent_=i;const r=t.getSize(),c=t.getView().calculateExtentInternal(r),d=t.getPixelFromCoordinateInternal(Wi(i)),u=t.getPixelFromCoordinateInternal(Hi(i)),h=Math.abs(d[0]-u[0]),f=Math.abs(d[1]-u[1]),g=r[0],v=r[1];hg*bo||f>v*bo?this.resetExtent_():Wn(c,i)||this.recenter_()}resetExtent_(){const e=this.getMap(),t=this.ovmap_,n=e.getSize(),i=e.getView().calculateExtentInternal(n),r=t.getView(),a=Math.log(bo/Gt)/Math.LN2,c=1/(Math.pow(2,a/2)*Gt);$i(i,c),r.fitInternal(qi(i))}recenter_(){const e=this.getMap(),t=this.ovmap_,n=e.getView();t.getView().setCenterInternal(n.getCenterInternal())}updateBox_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const n=e.getSize(),s=e.getView(),i=t.getView(),r=this.rotateWithView_?0:-s.getRotation(),a=this.boxOverlay_,c=this.boxOverlay_.getElement(),d=s.getCenterInternal(),u=s.getResolution(),h=i.getResolution(),f=n[0]*u/h,g=n[1]*u/h;if(a.setPosition(d),c){c.style.width=f+"px",c.style.height=g+"px";const v="rotate("+r+"rad)";c.style.transform=v}}updateBoxAfterOvmapIsRendered_(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=Ki(this.ovmap_,Un.POSTRENDER,function(e){delete this.ovmapPostrenderKey_,this.updateBox_()},this))}handleClick_(e){e.preventDefault(),this.handleToggle_()}handleToggle_(){this.element.classList.toggle(tn),this.collapsed_?nn(this.collapseLabel_,this.label_):nn(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;const e=this.ovmap_;if(!this.collapsed_){if(e.isRendered()){this.viewExtent_=void 0,e.render();return}e.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}}getCollapsible(){return this.collapsible_}setCollapsible(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),!e&&this.collapsed_&&this.handleToggle_())}setCollapsed(e){!this.collapsible_||this.collapsed_===e||this.handleToggle_()}getCollapsed(){return this.collapsed_}getRotateWithView(){return this.rotateWithView_}setRotateWithView(e){this.rotateWithView_!==e&&(this.rotateWithView_=e,this.getMap().getView().getRotation()!==0&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))}getOverviewMap(){return this.ovmap_}render(e){this.validateExtent_(),this.updateBox_()}};const Lc=Mc,yo="units",Ac=[1,2,5],ut=25.4/.28;class Tc extends Zn{constructor(e){e=e||{};const t=document.createElement("div");t.style.pointerEvents="none",super({element:t,render:e.render,target:e.target}),this.on,this.once,this.un;const n=e.className!==void 0?e.className:e.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=n+"-inner",this.element.className=n+" "+Jn,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=e.minWidth!==void 0?e.minWidth:64,this.maxWidth_=e.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(yo,this.handleUnitsChanged_),this.setUnits(e.units||"metric"),this.scaleBar_=e.bar||!1,this.scaleBarSteps_=e.steps||4,this.scaleBarText_=e.text||!1,this.dpi_=e.dpi||void 0}getUnits(){return this.get(yo)}handleUnitsChanged_(){this.updateElement_()}setUnits(e){this.set(yo,e)}setDpi(e){this.dpi_=e}updateElement_(){const e=this.viewState_;if(!e){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const t=e.center,n=e.projection,s=this.getUnits(),i=s=="degrees"?"degrees":"m";let r=_o(n,e.resolution,t,i);const a=this.minWidth_*(this.dpi_||ut)/ut,c=this.maxWidth_!==void 0?this.maxWidth_*(this.dpi_||ut)/ut:void 0;let d=a*r,u="";if(s=="degrees"){const T=Yi.degrees;d*=T,d=c){f=S,g=L,v=E;break}else if(g>=a)break;S=f,L=g,E=v,++h}const O=this.scaleBar_?this.createScaleBar(g,f,u):f.toFixed(v<0?-v:0)+" "+u;this.renderedHTML_!=O&&(this.innerElement_.innerHTML=O,this.renderedHTML_=O),this.renderedWidth_!=g&&(this.innerElement_.style.width=g+"px",this.renderedWidth_=g),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(e,t,n){const s=this.getScaleForResolution(),i=s<1?Math.round(1/s).toLocaleString()+" : 1":"1 : "+Math.round(s).toLocaleString(),r=this.scaleBarSteps_,a=e/r,c=[this.createMarker("absolute")];for(let u=0;u
`+this.createMarker("relative")+(u%2===0||r===2?this.createStepText(u,e,!1,t,n):"")+"")}return c.push(this.createStepText(r,e,!0,t,n)),(this.scaleBarText_?`
`+i+"
":"")+c.join("")}createMarker(e){return`
`}createStepText(e,t,n,s,i){const a=(e===0?0:Math.round(s/this.scaleBarSteps_*e*100)/100)+(e===0?"":" "+i),c=e===0?-3:t/this.scaleBarSteps_*-1,d=e===0?0:t/this.scaleBarSteps_*2;return`
`+a+"
"}getScaleForResolution(){const e=_o(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m"),t=this.dpi_||ut,n=1e3/25.4;return e*n*t}render(e){const t=e.frameState;t?this.viewState_=t.viewState:this.viewState_=null,this.updateElement_()}}const Ms=Tc,Ic=o=>{const{mapId:e,displayMode:t="line"}=o,{containerProps:n}=oe("scale-bar",o),{map:s}=Y(e),i=p.useRef(null);return p.useEffect(()=>{if(i.current&&s){const r=s.olMap,a=new Ms({units:"metric",target:i.current,bar:t==="bar"});return r.addControl(a),()=>{r.removeControl(a)}}},[t,s]),l.jsx(N,{...n,ref:i})},Rc="@open-pioneer/scale-viewer",Oc=ue.bind(void 0,Rc),Dc=o=>{const{mapId:e}=o,{containerProps:t}=oe("scale-viewer",o),{map:n}=Y(e),s=Oc(),i=sl(n?.olMap),r=i?s.formatNumber(i):void 0;return l.jsx(N,{...t,children:r&&l.jsxs(fe,{children:["1:",r]})})},Ls="ol-map",Ce=rt.bind(void 0,Ls),Ee=ue.bind(void 0,Ls);let jc=0;function Nc(o,e){const t=`atom${++jc}`,n={toString:()=>t};return typeof o=="function"?n.read=o:(n.init=o,n.read=function(s){return s(this)},n.write=function(s,i,r){return i(this,typeof r=="function"?r(s(this)):r)}),e&&(n.write=e),n}const gn=o=>"init"in o,mn=o=>!!o.write,qt=new WeakMap,Fc=(o,e)=>{qt.set(o,e),o.catch(()=>{}).finally(()=>qt.delete(o))},vn=(o,e)=>{const t=qt.get(o);t&&(qt.delete(o),t(e))},bn=(o,e)=>{o.status="fulfilled",o.value=e},yn=(o,e)=>{o.status="rejected",o.reason=e},Vc=o=>typeof o?.then=="function",ht=(o,e)=>!!o&&"v"in o&&"v"in e&&Object.is(o.v,e.v),wn=(o,e)=>!!o&&"e"in o&&"e"in e&&Object.is(o.e,e.e),Fe=o=>!!o&&"v"in o&&o.v instanceof Promise,Gc=(o,e)=>"v"in o&&"v"in e&&o.v.orig&&o.v.orig===e.v.orig,Bt=o=>{if("e"in o)throw o.e;return o.v},$o=()=>{const o=new WeakMap,e=new WeakMap,t=new Map;let n,s;const i=b=>o.get(b),r=(b,y)=>{const w=o.get(b);if(o.set(b,y),t.has(b)||t.set(b,w),Fe(w)){const m="v"in y?y.v instanceof Promise?y.v:Promise.resolve(y.v):Promise.reject(y.e);w.v!==m&&vn(w.v,m)}},a=(b,y,w)=>{const m=new Map;let x=!1;w.forEach((M,k)=>{!M&&k===b&&(M=y),M&&(m.set(k,M),y.d.get(k)!==M&&(x=!0))}),(x||y.d.size!==m.size)&&(y.d=m)},c=(b,y,w)=>{const m=i(b),x={d:m?.d||new Map,v:y};if(w&&a(b,x,w),ht(m,x)&&m.d===x.d)return m;if(Fe(m)&&Fe(x)&&Gc(m,x)){if(m.d===x.d)return m;x.v=m.v}return r(b,x),x},d=(b,y,w,m)=>{if(Vc(y)){let x;const M=()=>{const P=i(b);if(!Fe(P)||P.v!==k)return;const V=c(b,k,w);e.has(b)&&P.d!==V.d&&Z(b,V,P.d)},k=new Promise((P,V)=>{let j=!1;y.then(z=>{j||(j=!0,bn(k,z),P(z),M())},z=>{j||(j=!0,yn(k,z),V(z),M())}),x=z=>{j||(j=!0,z.then(q=>bn(k,q),q=>yn(k,q)),P(z))}});return k.orig=y,k.status="pending",Fc(k,P=>{P&&x(P),m?.()}),c(b,k,w)}return c(b,y,w)},u=(b,y,w)=>{const m=i(b),x={d:m?.d||new Map,e:y};return w&&a(b,x,w),wn(m,x)&&m.d===x.d?m:(r(b,x),x)},h=(b,y)=>{const w=i(b);if(!y&&w&&(e.has(b)||Array.from(w.d).every(([j,z])=>{if(j===b)return!0;const q=h(j);return q===z||ht(q,z)})))return w;const m=new Map;let x=!0;const M=j=>{if(j===b){const q=i(j);if(q)return m.set(j,q),Bt(q);if(gn(j))return m.set(j,void 0),j.init;throw new Error("no atom init")}const z=h(j);return m.set(j,z),Bt(z)};let k,P;const V={get signal(){return k||(k=new AbortController),k.signal},get setSelf(){return!P&&mn(b)&&(P=(...j)=>{if(!x)return O(b,...j)}),P}};try{const j=b.read(M,V);return d(b,j,m,()=>k?.abort())}catch(j){return u(b,j,m)}finally{x=!1}},f=b=>Bt(h(b)),g=b=>{let y=e.get(b);return y||(y=T(b)),y},v=(b,y)=>!y.l.size&&(!y.t.size||y.t.size===1&&y.t.has(b)),S=b=>{const y=e.get(b);y&&v(b,y)&&X(b)},L=b=>{const y=new Map,w=new WeakMap,m=k=>{var P;const V=new Set((P=e.get(k))==null?void 0:P.t);return t.forEach((j,z)=>{var q;(q=i(z))!=null&&q.d.has(k)&&V.add(z)}),V},x=k=>{m(k).forEach(P=>{P!==k&&(y.set(P,(y.get(P)||new Set).add(k)),w.set(P,(w.get(P)||0)+1),x(P))})};x(b);const M=k=>{m(k).forEach(P=>{var V;if(P!==k){let j=w.get(P);if(j&&w.set(P,--j),!j){let z=!!((V=y.get(P))!=null&&V.size);if(z){const q=i(P),zs=h(P,!0);z=!ht(q,zs)}z||y.forEach(q=>q.delete(P))}M(P)}})};M(b)},E=(b,...y)=>{let w=!0;const m=k=>Bt(h(k)),x=(k,...P)=>{let V;if(k===b){if(!gn(k))throw new Error("atom not writable");const j=i(k),z=d(k,P[0]);ht(j,z)||L(k)}else V=E(k,...P);if(!w){const j=R()}return V},M=b.write(m,x,...y);return w=!1,M},O=(b,...y)=>{const w=E(b,...y),m=R();return w},T=(b,y,w)=>{var m;const x=w||[];(m=i(b))==null||m.d.forEach((k,P)=>{const V=e.get(P);V?V.t.add(b):P!==b&&T(P,b,x)}),h(b);const M={t:new Set(y&&[y]),l:new Set};if(e.set(b,M),mn(b)&&b.onMount){const{onMount:k}=b;x.push(()=>{const P=k((...V)=>O(b,...V));P&&(M.u=P)})}return w||x.forEach(k=>k()),M},X=b=>{var y;const w=(y=e.get(b))==null?void 0:y.u;w&&w(),e.delete(b);const m=i(b);m&&(Fe(m)&&vn(m.v),m.d.forEach((x,M)=>{if(M!==b){const k=e.get(M);k&&(k.t.delete(b),v(M,k)&&X(M))}}))},Z=(b,y,w)=>{const m=new Set(y.d.keys());w?.forEach((x,M)=>{if(m.has(M)){m.delete(M);return}const k=e.get(M);k&&(k.t.delete(b),v(M,k)&&X(M))}),m.forEach(x=>{const M=e.get(x);M?M.t.add(b):e.has(b)&&T(x,b)})},R=()=>{let b;for(;t.size;){const y=Array.from(t);t.clear(),y.forEach(([w,m])=>{const x=i(w);if(x){const M=e.get(w);M&&x.d!==m?.d&&Z(w,x,m?.d),M&&!(!Fe(m)&&(ht(m,x)||wn(m,x)))&&M.l.forEach(k=>k())}})}};return{get:f,set:O,sub:(b,y)=>{const w=g(b),m=R(),x=w.l;return x.add(y),()=>{x.delete(y),S(b)}}}};let wo;const Bc=()=>(wo||(wo=$o()),wo),As=p.createContext(void 0),zc=o=>{const e=p.useContext(As);return o?.store||e||Bc()},Uc=({children:o,store:e})=>{const t=p.useRef();return!e&&!t.current&&(t.current=$o()),p.createElement(As.Provider,{value:e||t.current},o)},Wc=o=>typeof o?.then=="function",Hc=Dn.use||(o=>{if(o.status==="pending")throw o;if(o.status==="fulfilled")return o.value;throw o.status==="rejected"?o.reason:(o.status="pending",o.then(e=>{o.status="fulfilled",o.value=e},e=>{o.status="rejected",o.reason=e}),o)});function $c(o,e){const t=zc(e),[[n,s,i],r]=p.useReducer(d=>{const u=t.get(o);return Object.is(d[0],u)&&d[1]===t&&d[2]===o?d:[u,t,o]},void 0,()=>[t.get(o),t,o]);let a=n;(s!==t||i!==o)&&(r(),a=t.get(o));const c=e?.delay;return p.useEffect(()=>{const d=t.sub(o,()=>{if(typeof c=="number"){setTimeout(r,c);return}r()});return r(),d},[t,o,c]),p.useDebugValue(a),Wc(a)?Hc(a):a}const Ts="@open-pioneer/spatial-bookmarks",qc=rt.bind(void 0,Ts),Kc=ue.bind(void 0,Ts),be=de("spatial-bookmark:SpatialBookmarkViewModel");class Yc{map;packageNamespace;writableBookmarks=Nc([]);stopBookmarksListener;store;get bookmarks(){return this.writableBookmarks}constructor(e,t){this.map=e,this.packageNamespace=t.getNamespace("spatial-bookmarks"),this.store=$o(),this.loadState(),this.stopBookmarksListener=this.store.sub(this.bookmarks,()=>{this.saveState()})}destroy(){this.stopBookmarksListener()}createBookmark(e){const t=this.map.olMap,n=t.getView().calculateExtent(),s=t.getView().getProjection().getCode(),i={minX:n[0],minY:n[1],maxX:n[2],maxY:n[3]},r={id:Xn(),title:e,extent:i,projection:s};be.debug("Created a new bookmark",r);const a=this.writableBookmarks;this.store.set(a,[...this.store.get(a),r])}activateBookmark(e){be.debug("Activating bookmark",e);const t=this.getBookmarkExtent(e);be.debug("Attempting to apply extent",t),this.applyExtent(t)}deleteBookmark(e){be.debug("Deleting bookmark",e);const t=this.writableBookmarks;this.store.set(t,[...this.store.get(t).filter(n=>n.id!==e)])}deleteAllBookmarks(){be.debug("Deleting all bookmarks"),this.store.set(this.writableBookmarks,[])}loadState(){be.debug("Restoring bookmarks from local storage");const e=this.packageNamespace.get("bookmarks")??[];try{Xc(e),this.store.set(this.writableBookmarks,e)}catch(t){be.error("Bookmarks data in local storage is invalid, resetting to default value.",t),this.store.set(this.writableBookmarks,[]),this.saveState()}}saveState(){be.debug("Saving bookmarks to local storage"),this.packageNamespace.set("bookmarks",this.store.get(this.bookmarks))}getBookmarkExtent(e){const n=this.map.olMap.getView(),s=e.extent,i=[s.minX,s.minY,s.maxX,s.maxY],r=n.getProjection(),a=e.projection;return Xi(i,a,r)}applyExtent(e){const n=this.map.olMap.getView(),s=Zi(e),i=n.getResolutionForExtent(e);n.setCenter(s),n.setResolution(i)}}function Xc(o){if(!Array.isArray(o))throw new Error("Expected bookmarks from local storage to be an array.");for(const e of o)Zc(e)}function Zc(o){if(!o||typeof o!="object")throw new Error("Expected bookmark from local storage to be an object.");const e=o;if(typeof e.id!="string")throw new Error("Bookmark does not have a valid id.");if(typeof e.title!="string")throw new Error("Bookmark does not have a valid title.");if(Jc(e.extent),typeof e.projection!="string")throw new Error("Bookmark does not have a valid projection value.")}function Jc(o){if(!o||typeof o!="object")throw new Error("Expected bookmark extent from local storage to be an object.");const e=o;if(typeof e.minX!="number"||typeof e.minY!="number"||typeof e.maxX!="number"||typeof e.maxY!="number")throw new Error("Expected bookmark extent from local storage to have valid coordinates.")}const Qc=o=>{const{map:e}=Y(o.mapId),t=qc("local-storage.LocalStorageService"),n=rd(e,t);return n&&l.jsx(Uc,{store:n.store,children:l.jsx(ed,{...o,viewModel:n})})};function ed(o){const{viewModel:e}=o,t=Kc(),n=p.useRef([]),[s,i]=p.useState(!1),r=$c(e.bookmarks),[a,c]=p.useState(""),d=a.trim().length>0,{containerProps:u}=oe("spatial-bookmarks",o),[h,f]=p.useState("list"),g=()=>{e.deleteAllBookmarks(),f("list")},v=()=>{d&&(e.createBookmark(a),f("list"),c(""),i(!0))};p.useEffect(()=>{if(s){const T=n.current;T&&T[r.length-1]?.scrollIntoView?.(),i(!1)}},[r,s]);const S=()=>l.jsxs(ko,{children:[l.jsxs(co,{rounded:"md",status:"warning",children:[l.jsx(uo,{}),t.formatMessage({id:"bookmark.alert.delete"})]}),l.jsx(sd,{intl:t,onClear:g,onCancel:()=>f("list")})]}),L=()=>l.jsxs(ko,{children:[l.jsxs(co,{rounded:"md",status:"info",children:[l.jsx(uo,{}),t.formatMessage({id:"bookmark.alert.create"})]}),l.jsx(io,{"aria-label":t.formatMessage({id:"bookmark.input.label"}),placeholder:t.formatMessage({id:"bookmark.input.placeholder"}),value:a,onChange:T=>{c(T.target.value)},onKeyDown:T=>{T.key==="Enter"&&v()},isRequired:!0,isInvalid:!d,autoFocus:!0}),l.jsx(id,{intl:t,isInvalid:!d,onCancel:()=>{c(""),f("list")},onSave:v})]}),E=()=>l.jsxs(l.Fragment,{children:[r.length?td(r,e,t,n):l.jsxs(co,{rounded:"md",status:"info",children:[l.jsx(uo,{}),t.formatMessage({id:"bookmark.alert.noSaved"})]}),l.jsx(nd,{intl:t,bookmarks:r,showCreate:()=>f("create"),showDelete:()=>f("delete")})]}),O=l.jsxs(l.Fragment,{children:[h==="list"&&E(),h==="create"&&L(),h==="delete"&&S()]});return l.jsx(pe,{flexDirection:"column",...u,children:O})}function td(o,e,t,n){const s=t.formatMessage({id:"bookmark.button.deleteOne"}),i=o.map((r,a)=>l.jsx(od,{index:a,listItemNodes:n,bookmark:r,onActivate:()=>e.activateBookmark(r),onDelete:()=>e.deleteBookmark(r.id),deleteBtnLabel:s},r.id));return l.jsx(ss,{as:"ul",className:"spatial-bookmark-list",role:"listbox","aria-label":t.formatMessage({id:"bookmark.list.label"}),flexShrink:1,flexGrow:1,p:1,spacing:1,overflowY:"auto",listStyleType:"none",children:i})}const Sn={ArrowDown:1,ArrowUp:-1};function od(o){const{index:e,listItemNodes:t,bookmark:n,onDelete:s,onActivate:i,deleteBtnLabel:r}=o,a=n.title,c=d=>{const u=d.key;if(u==="Enter"){d.target===d.currentTarget&&i();return}if(Sn[u]!=null){const h=t.current?.length;if(!h)return;let f=(e+Sn[u])%h;f<0&&(f=h-1),t.current[f]?.focus()}};return l.jsx(N,{as:"li",p:1,ref:d=>{if(!d){t.current.splice(e,1);return}t.current[e]=d},className:Rt("spatial-bookmarks-item"),tabIndex:0,rounded:"md",role:"option",cursor:"pointer",outline:0,_hover:{background:"trails.50"},_focusVisible:{boxShadow:"outline"},onKeyDown:c,onClick:i,children:l.jsxs(pe,{width:"100%",flexDirection:"row",align:"center",gap:1,children:[l.jsx(ls,{children:l.jsx(es,{})}),l.jsx(fe,{ps:2,noOfLines:1,children:a}),l.jsx(Cr,{}),l.jsx(Nn,{hasArrow:!0,label:r,placement:"right",children:l.jsx(oo,{className:"spatial-bookmarks-item-delete","aria-label":r,borderRadius:"full",iconSpacing:0,padding:0,colorScheme:"red",variant:"ghost",leftIcon:l.jsx(ts,{}),onClick:d=>{s(),d.stopPropagation()}})},e)]})})}function nd(o){const{intl:e,bookmarks:t,showCreate:n,showDelete:s}=o;return l.jsxs(qo,{children:[l.jsx(st,{isDisabled:t.length===0,colorScheme:"red",width:void 0,iconSpacing:0,leftIcon:l.jsx(ts,{}),onClick:s,"aria-label":e.formatMessage({id:"bookmark.button.deleteAll"}),variant:"outline"}),l.jsx(st,{onClick:n,width:"100%",children:e.formatMessage({id:"bookmark.button.create"})})]})}function sd(o){const{intl:e,onCancel:t,onClear:n}=o;return l.jsxs(qo,{children:[l.jsx(st,{variant:"outline",onClick:t,children:e.formatMessage({id:"bookmark.button.cancelDelete"})}),l.jsx(st,{onClick:n,children:e.formatMessage({id:"bookmark.button.confirmDelete"})})]})}function id(o){const{intl:e,onCancel:t,onSave:n,isInvalid:s}=o;return l.jsxs(qo,{children:[l.jsx(st,{variant:"outline",onClick:()=>t(),children:e.formatMessage({id:"bookmark.button.cancel"})}),l.jsx(st,{isDisabled:s,onClick:()=>n(),children:e.formatMessage({id:"bookmark.button.save"})})]})}function qo(o){return l.jsx(pe,{width:"100%",flexDirection:"row",mt:2,gap:1,flexGrow:0,flexShrink:0,children:o.children})}function st(o){return l.jsx(oo,{width:"100%",...o})}function rd(o,e){const[t,n]=p.useState();return p.useEffect(()=>{let s;return o?s=new Yc(o,e):s=void 0,n(s),()=>s?.destroy()},[o,e]),t}function ad(){const o=p.useId(),e=Ee();return l.jsx(N,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",role:"dialog",width:350,children:l.jsx(N,{role:"dialog","aria-labelledby":o,children:l.jsx(je,{title:l.jsx(Ne,{id:o,size:"md",mb:2,children:e.formatMessage({id:"spatialBookmarkTitle"})}),children:l.jsx(Qc,{mapId:G})})})})}const Is="@open-pioneer/printing",ld=rt.bind(void 0,Is),cd=ue.bind(void 0,Is),dd="map",_n="printing-hide";class ud{olMap;title="";fileFormat="pdf";running=!1;i18n;drawInformation=[];scaleLine=void 0;overlay=void 0;constructor(e,t){this.olMap=e,this.i18n=t}destroy(){this.reset()}setTitle(e){this.title=e}setFileFormat(e){this.fileFormat=e}async handleMapExport(){if(!(!this.olMap||!this.fileFormat)){if(this.running)throw new Error("Printing already running.");try{await this.beginExport();const e=await this.exportToCanvas(this.olMap.getViewport());if(e)this.fileFormat=="png"?await this.exportMapInPNG(e):await this.exportMapInPDF(e);else throw new Error("Canvas export failed")}finally{this.reset()}}}async exportToCanvas(e){const t={useCORS:!0,ignoreElements:function(i){if(i.classList&&typeof i.classList=="object"){const r=i.classList;return r.contains("map-anchors")||r.contains(_n)}return!1}},n=(await Ht(()=>import("./f16e60ff8734.js"),[],import.meta.url)).default;return await n(e,t)}async beginExport(){this.running=!0;const e=this.olMap.getInteractions().getArray().filter(t=>t.getActive()&&t instanceof Wo);this.drawInformation=[],e?.forEach(t=>{const n=t,s=n.getOverlay().getStyle();n.getOverlay().setStyle(null),this.drawInformation?.push({draw:n,style:s})}),this.addOverlay(),await this.addScaleLine()}reset(){this.removeScaleLine(),this.removeOverlay(),this.running=!1,this.drawInformation?.length&&this.drawInformation.forEach(e=>{e.draw.getOverlay().setStyle(e.style)})}async addScaleLine(){this.scaleLine=new Ms({className:"printing-scale-bar ol-scale-bar",bar:!0,text:!0,minWidth:125});const e=jn(),t=this.scaleLine.render;this.scaleLine.render=(...n)=>{t.apply(this.scaleLine,n),e.resolve()},this.olMap.addControl(this.scaleLine),await e.promise,await new Promise(n=>{requestAnimationFrame(n)})}removeScaleLine(){this.scaleLine&&(this.olMap.removeControl(this.scaleLine),this.scaleLine=void 0)}addOverlay(){const e=this.olMap.getTargetElement(),t=this.overlay=document.createElement("div");t.classList.add("printing-overlay",_n),e.appendChild(t);const n=document.createElement("div");n.classList.add("printing-overlay-status"),n.textContent=this.i18n.overlayText,t.appendChild(n)}removeOverlay(){this.overlay?.remove(),this.overlay=void 0}getTitleAndFileName(){const e=this.title||"",t=this.title||dd;return{title:e,fileName:t}}async exportMapInPNG(e){const t=document.createElement("canvas");t.width=e.width,t.height=e.height+50,t.style.backgroundColor="#fff";const n=t.getContext("2d");if(!n)throw new Error("2d canvas rendering context not available");const{title:s,fileName:i}=this.getTitleAndFileName();n.fillStyle="#fff",n.fillRect(0,0,t.width,t.height),n.font="20px bold sans-serif",n.textAlign="center",n.fillStyle="#000";const r=t.width/2;n.fillText(s,r,20),n.drawImage(e,0,50);const a=document.createElement("a");a.setAttribute("download",i+".png"),a.href=t.toDataURL("image/png",.8),a.click()}async exportMapInPDF(e){const{jsPDF:t}=await Ht(()=>import("./897ddd196142.js"),["./897ddd196142.js","./a419295615be.js","./75a84f2be53e.js","./4a2b71d7880f.js","./39284370b430.js","./d99ee97b3bdc.js","./c3dd43fe6cb8.js","./12553b373d3d.js","./8067ba7f14cf.js"],import.meta.url),n=new t({orientation:"landscape",unit:"mm",format:"a4"}),s=n.internal.pageSize.getWidth(),i=n.internal.pageSize.getHeight(),r=15,a=20,c=i-a;n.setFontSize(20);const{title:d,fileName:u}=this.getTitleAndFileName();n.text(d,s/2,r,{align:"center"});const h=e.width/e.height;let f=c,g=f*h;g>=s&&(g=s,f=g/h);const v=(s-g)/2,S=a+(c-f)/2;n.addImage(e,"",v,S,g,f),n.save(u+".pdf")}}const hd=de("printing"),pd=o=>{const e=cd(),{mapId:t}=o,{containerProps:n}=oe("printing",o),[s,i]=p.useState("pdf"),[r,a]=p.useState(""),[c,d]=p.useState(!1),u=ld("notifier.NotificationService"),{map:h}=Y(t),f=fd(h,e);p.useEffect(()=>{f?.setFileFormat(s)},[f,s]),p.useEffect(()=>{f?.setTitle(r)},[f,r]);function g(S){(S==="png"||S==="pdf")&&i(S)}function v(){c||!f||(d(!0),f.handleMapExport().catch(S=>{const L=e.formatMessage({id:"printingFailed"});u.notify({level:"error",message:L}),hd.error("Failed to print the map",S)}).finally(()=>d(!1)))}return l.jsxs(N,{...n,children:[l.jsxs($t,{mb:4,alignItems:"center",children:[l.jsxs(Co,{mb:2,children:[l.jsx(vt,{minWidth:"82",mb:1,children:e.formatMessage({id:"title"})}),l.jsx(io,{placeholder:e.formatMessage({id:"input.placeholder"}),value:r,onChange:S=>{a(S.target.value)},isRequired:!0,autoFocus:!0})]}),l.jsxs(Co,{mb:2,children:[l.jsx(vt,{minWidth:"82",mb:1,children:e.formatMessage({id:"fileFormat"})}),l.jsxs(Go,{value:s,onChange:S=>g(S.target.value),className:"printing-select",children:[l.jsx("option",{value:"png",children:"PNG"}),l.jsx("option",{value:"pdf",children:"PDF"})]})]})]}),l.jsx(oo,{isLoading:c,loadingText:e.formatMessage({id:"printingMap"}),disabled:c,padding:2,className:"printing-export-button",onClick:v,width:"100%",children:e.formatMessage({id:"export"})})]})};function fd(o,e){const[t,n]=p.useState(void 0);return p.useEffect(()=>{if(!o)return;const s=new ud(o.olMap,{overlayText:e.formatMessage({id:"printingMap"})});return n(s),()=>{s.destroy(),n(void 0)}},[o,e]),t}function gd(){const o=p.useId(),e=Ee();return l.jsx(N,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",role:"dialog",width:350,children:l.jsx(N,{role:"dialog","aria-labelledby":o,children:l.jsx(je,{title:l.jsx(Ne,{id:o,size:"md",mb:2,children:e.formatMessage({id:"printingTitle"})}),children:l.jsx(pd,{mapId:G})})})})}const md="@open-pioneer/legend",Rs=ue.bind(void 0,md),vd=o=>{const{mapId:e,showBaseLayers:t=!1}=o,{containerProps:n}=oe("legend",o),{map:s}=Y(e);return l.jsx(N,{...n,children:s?l.jsx(bd,{map:s,showBaseLayers:t}):null})};function bd(o){const{map:e,showBaseLayers:t}=o,s=Sd(e).map(i=>l.jsx(Os,{layer:i,showBaseLayers:t},i.id));return l.jsx(ss,{as:"ul",className:"legend-layer-list",listStyleType:"none",spacing:2,children:s})}function Os(o){const{layer:e,showBaseLayers:t}=o,{isVisible:n}=xd(e),s=_d(e);if(!n||!t&&!("parentLayer"in e)&&e.isBaseLayer)return;const i=[];return s?.length&&s.forEach(r=>{i.push(l.jsx(Os,{layer:r,showBaseLayers:t},r.id))}),l.jsxs(l.Fragment,{children:[l.jsx(yd,{layer:e,showBaseLayers:t}),i]})}function yd(o){const e=Rs(),{layer:t,showBaseLayers:n}=o,s=kd(t),i=wd(t);let r;s?.Component?r=l.jsx(s.Component,{layer:t}):s?.imageUrl?r=l.jsx(xn,{layer:t,imageUrl:s.imageUrl}):i&&(r=l.jsx(xn,{layer:t,imageUrl:i}));const a=!("parentLayer"in t)&&t.isBaseLayer;return r?l.jsxs(N,{as:"li",className:Rt("legend-item",`layer-${Cd(t.id)}`),children:[n&&a?l.jsx(fe,{as:"b",children:e.formatMessage({id:"basemapLabel"})}):null,r]}):void 0}function xn(o){const e=Rs(),{layer:t,imageUrl:n}=o;return l.jsxs(N,{children:[l.jsx(fe,{children:t.title}),l.jsx(as,{maxW:"none",maxH:"none",src:n,alt:e.formatMessage({id:"altLabel"},{layerName:t.title}),className:"legend-item__image",fallbackStrategy:"onError",fallback:l.jsx(N,{children:l.jsxs(fe,{children:[l.jsx(Ps,{me:2}),e.formatMessage({id:"fallbackLabel"})]})})})]})}function wd(o){const e=p.useCallback(()=>o.legend,[o]),t=p.useCallback(n=>{const s=o.on("changed:legend",n);return()=>s.destroy()},[o]);return p.useSyncExternalStore(t,e)}function Sd(o){const e=p.useCallback(n=>{const s=o.layers.on("changed",n);return()=>s.destroy()},[o]),t=p.useCallback(()=>{let n=o.layers.getAllLayers({sortByDisplayOrder:!0})??[];return n=n.reverse(),n},[o]);return Ds(e,t)}function _d(o){const e=p.useCallback(n=>{const s=o.sublayers?.on("changed",n);return()=>s?.destroy()},[o]),t=p.useCallback(()=>{if(!o.sublayers)return;let s=o.sublayers?.getSublayers({sortByDisplayOrder:!0});return s=s.reverse(),s},[o]);return Ds(e,t)}function Ds(o,e){const t=p.useRef(),n=p.useCallback(i=>{const r=o(()=>{t.current=void 0,i()});return()=>{t.current=void 0,r()}},[o]),s=p.useCallback(()=>{if(t.current)return t.current.value;const i=e();return t.current={value:i},i},[e]);return p.useSyncExternalStore(n,s)}function xd(o){const e=p.useCallback(()=>o.visible,[o]),t=p.useCallback(s=>{const i=o.on("changed:visible",s);return()=>i.destroy()},[o]);return{isVisible:p.useSyncExternalStore(t,e)}}function kd(o){const[e,t]=p.useState(void 0);return p.useEffect(()=>{t(o.attributes.legend);const n=o.on("changed:attributes",()=>{t(o.attributes.legend)});return()=>n.destroy()},[o]),e}function Cd(o){return o.toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}function Ed(){const o=p.useId(),e=Ee();return l.jsx(N,{role:"dialog","aria-labelledby":o,children:l.jsx(je,{title:l.jsx(Ne,{id:o,size:"md",mb:2,children:e.formatMessage({id:"legendTitle"})}),children:l.jsx(N,{overflowY:"auto",maxHeight:300,children:l.jsx(vd,{mapId:G,showBaseLayers:!0})})})})}const js="@open-pioneer/geolocation",Pd=rt.bind(void 0,js),Md=ue.bind(void 0,js);function Ld(o){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{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 3A8.994 8.994 0 0013 3.06V1h-2v2.06A8.994 8.994 0 003.06 11H1v2h2.06A8.994 8.994 0 0011 20.94V23h2v-2.06A8.994 8.994 0 0020.94 13H23v-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"}}]})(o)}const kn=de("geolocation:GeolocationController"),Cn=17;class Ad extends No{olMap;positionHighlightLayer;geolocation;maxZoom=Cn;accuracyFeature;positionFeature;changeHandlers=[];isCurrentlyActive=!1;setMapToPosition=!0;trackingOptions={};isInitialZoom=!0;constructor(e,t){super(),this.olMap=e,this.isInitialZoom=!0,this.accuracyFeature=new Pe,this.accuracyFeature.setStyle(Pn()),this.positionFeature=new Pe,this.positionFeature.setStyle(En()),this.positionHighlightLayer=new ge({source:new De({features:[this.accuracyFeature,this.positionFeature]})}),this.positionHighlightLayer.setZIndex(Fo);const n=t||Td();this.geolocation=new za({tracking:!1,trackingOptions:n,projection:e.getView()?.getProjection()}),this.trackingOptions=n,this.geolocation.on("error",s=>this.handleGeolocationError(s))}destroy(){this.stopGeolocation(),this.geolocation?.setTracking(!1),this.geolocation.dispose(),this.accuracyFeature=void 0,this.positionFeature=void 0,this.positionHighlightLayer.dispose()}startGeolocation(){if(this.isCurrentlyActive)return Promise.resolve();const e=this.olMap;return new Promise(n=>{this.isCurrentlyActive=!0,this.geolocation?.setProjection(e.getView()?.getProjection()),this.geolocation?.setTracking(!0);const s=this.geolocation.on("change:accuracyGeometry",()=>{const c=this.geolocation.getAccuracyGeometry()||void 0;if(this.accuracyFeature?.setGeometry(c),this.accuracyFeature?.getGeometry()!==void 0&&n(),this.isInitialZoom){const d=this?.accuracyFeature?.getGeometry()?.getExtent();if(d){const u=rl(d);if(!u)return;e.getView().fit(u,{maxZoom:this.maxZoom}),this.isInitialZoom=!1}}}),i=this.geolocation.on("change:position",()=>{const c=this.geolocation.getPosition();c&&(c[0]||c[1])!==void 0&&(this.positionFeature?.setGeometry(new ze(c)),this.setMapToPosition&&e.getView().setCenter(c),this.positionFeature?.getGeometry()!==void 0&&n())}),r=e.getView().on("change:resolution",()=>{this.setMapToPosition=this.isInitialZoom}),a=e.on("pointermove",c=>{c.dragging&&(this.setMapToPosition=!1)});this.changeHandlers.push(s,i,r,a),e.addLayer(this.positionHighlightLayer)}).catch(n=>{kn.error("Failed to determine location",n)})}stopGeolocation(){this.geolocation?.setTracking(!1),this.isCurrentlyActive=!1,this.trackingOptions={},this.setMapToPosition=!0,this.isInitialZoom=!0,this.changeHandlers.forEach(e=>{ce(e)}),this.changeHandlers=[],this.accuracyFeature?.setGeometry(void 0),this.positionFeature?.setGeometry(void 0),this.olMap.removeLayer(this.positionHighlightLayer)}setPositionFeatureStyle(e){this.positionFeature?.setStyle(e??En())}setAccuracyFeatureStyle(e){this.accuracyFeature?.setStyle(e??Pn())}setMaxZoom(e){this.maxZoom=e??Cn}getMaxZoom(){return this.maxZoom}getPositionFeature(){return this.positionFeature}getAccuracyFeature(){return this.accuracyFeature}getTrackingOptions(){return this.trackingOptions}getGeolocation(){return this.geolocation}handleGeolocationError(e){kn.error("Error from geolocation API:",e.message);const t=(()=>{switch(e.code){case 1:return"permission-denied";case 2:return"position-unavailable";case 3:return"timeout";default:return"unknown"}})();this.emit("error",t)}}const En=()=>new Re({image:new jo({radius:6,fill:new et({color:"#3399CC"}),stroke:new Te({color:"#fff",width:2})})}),Pn=()=>new Re({stroke:new Te({color:"#3399CC",width:3}),fill:new et({color:"rgba(0, 0, 255, 0.05)"})}),Td=()=>({enableHighAccuracy:!0,timeout:6e4,maximumAge:6e5}),Id=p.forwardRef(function(e,t){const{mapId:n,maxZoom:s,positionFeatureStyle:i,accuracyFeatureStyle:r,trackingOptions:a}=e,{containerProps:c}=oe("geolocation",e),d=!!navigator.geolocation,[u,h]=p.useState(!1),[f,g]=p.useState(!1),{map:v}=Y(n),S=Md(),L=Pd("notifier.NotificationService"),E=Rd(v,s,a,i,r),O=(()=>d?u?S.formatMessage({id:"locateMeEnd"}):S.formatMessage({id:"locateMeStart"}):S.formatMessage({id:"locateNotSupported"}))();p.useEffect(()=>{if(E===void 0)return;const X=E.on("error",function(Z){const R=S.formatMessage({id:"error"}),H=(()=>{switch(Z){case"permission-denied":return S.formatMessage({id:"permissionDenied"});case"position-unavailable":return S.formatMessage({id:"positionUnavailable"});case"timeout":return S.formatMessage({id:"timeout"});case"unknown":return S.formatMessage({id:"unknownError"})}})();g(!1),h(!1),L.notify({level:"error",title:R,message:H})});return()=>{X.destroy()}},[E,S,L]),p.useEffect(()=>{if(!E){g(!1);return}return u&&(g(!0),E.startGeolocation().then(()=>{g(!1)})),()=>{E?.stopGeolocation(),g(!1)}},[E,u]);const T=()=>{v&&h(!u)};return l.jsx(te,{ref:t,label:O,icon:l.jsx(Ld,{}),onClick:()=>T(),isActive:u,isLoading:f,isDisabled:!d,...c})});function Rd(o,e,t,n,s){const[i,r]=p.useState();return p.useEffect(()=>{if(!o)return;const a=new Ad(o.olMap,t);return r(a),()=>{a.destroy(),r(void 0)}},[o,t]),p.useEffect(()=>{i?.setPositionFeatureStyle(n)},[i,n]),p.useEffect(()=>{i?.setAccuracyFeatureStyle(s)},[i,s]),p.useEffect(()=>{i?.setMaxZoom(e)},[i,e]),i}function Od(o){const{toolState:e,onToolStateChange:t}=o,n=Ee(),s=Ce("ol-app.AppModel"),i=ot(s.state).resultListState,r=i.open,{map:a}=Y(G),c=Ce("editing.EditingService"),d=Ce("notifier.NotificationService"),u=Oe((h,f)=>{t(h,f??!e[h])});return Dd(a,c,d,n,e,u),l.jsxs(pe,{role:"toolbar","aria-label":n.formatMessage({id:"ariaLabel.toolbar"}),direction:"column",gap:1,padding:1,children:[l.jsx(te,{label:e.editingActive?n.formatMessage({id:"stopEditingTitle"}):n.formatMessage({id:"startEditingTitle"}),icon:e.editingActive?l.jsx(ir,{}):l.jsx(rr,{}),isActive:e.editingActive,onClick:()=>u("editingActive")}),l.jsx(te,{label:n.formatMessage({id:"resetEditingTitle"}),icon:l.jsx(ar,{}),onClick:()=>c.reset(G)}),i.input&&l.jsx(te,{label:n.formatMessage({id:"resultListTitle"}),icon:l.jsx(lr,{}),isActive:i.open,onClick:()=>s.setResultListVisibility(!r)}),l.jsx(te,{label:n.formatMessage({id:"printingTitle"}),icon:l.jsx(cr,{}),isActive:e.printingActive,onClick:()=>u("printingActive")}),l.jsx(te,{label:n.formatMessage({id:"spatialBookmarkTitle"}),icon:l.jsx(dr,{}),isActive:e.bookmarksActive,onClick:()=>u("bookmarksActive")}),l.jsx(Id,{mapId:G}),l.jsx(te,{label:n.formatMessage({id:"tocTitle"}),icon:l.jsx(ur,{}),isActive:e.tocActive,onClick:()=>u("tocActive")}),l.jsx(te,{label:n.formatMessage({id:"legendTitle"}),icon:l.jsx(hr,{}),isActive:e.legendActive,onClick:()=>u("legendActive")}),l.jsx(te,{label:n.formatMessage({id:"measurementTitle"}),icon:l.jsx(pr,{}),isActive:e.measurementActive,onClick:()=>u("measurementActive")}),l.jsx(te,{label:n.formatMessage({id:"selectionTitle"}),icon:l.jsx(fr,{}),isActive:e.selectionActive,onClick:()=>u("selectionActive")}),l.jsx(te,{label:n.formatMessage({id:"overviewMapTitle"}),icon:l.jsx(es,{}),isActive:e.overviewMapActive,onClick:()=>u("overviewMapActive")}),l.jsx(_r,{mapId:G}),l.jsx(xr,{mapId:G}),l.jsx(kr,{mapId:G})]})}function Dd(o,e,t,n,s,i){p.useEffect(()=>{if(!o)return;function r(){if(!o)throw Error("map is undefined");try{const c=o.layers.getLayerById("krankenhaus"),d=new URL(c.attributes.collectionURL+"/items");e.start(o,d).whenComplete().then(h=>{if(!h)return;t.notify({level:"info",message:n.formatMessage({id:"editing.featureCreated"},{featureId:h}),displayDuration:4e3}),(c?.olLayer).getSource()?.refresh()}).catch(h=>{console.error(h)}).finally(()=>{i("editingActive",!1)})}catch(c){console.log(c)}}function a(){e.stop(G)}s.editingActive?r():a()},[o,e,t,n,s.editingActive,i])}const jd="@open-pioneer/measurement",Nd=ue.bind(void 0,jd);class Fd{olMap;messages;activeFeatureStyle;layer;source;draw=void 0;sketch=void 0;helpTooltip;measureTooltip;overlayTooltips=[];resources=[];constructor(e,t){this.olMap=e,this.messages=t;const n=this.source=new De;this.layer=new ge({source:n}),this.layer.setZIndex(Fo),e.addLayer(this.layer);const s=e.on("pointermove",this.handlePointerMove.bind(this));this.resources.push({destroy(){ce(s)}});const i=()=>{this.helpTooltip.element.classList.add("hidden")};e.getViewport().addEventListener("mouseout",i),this.resources.push({destroy(){e.getViewport().removeEventListener("mouseout",i)}}),this.helpTooltip=this.createHelpTooltip()}destroy(){this.stopMeasurement();for(const e of this.resources)e.destroy();this.resources=[],this.helpTooltip.destroy(),this.measureTooltip?.destroy();for(const e of this.overlayTooltips)e.destroy();this.overlayTooltips=[],this.olMap.removeLayer(this.layer),this.layer.dispose(),this.source.dispose()}getVectorLayer(){return this.layer}setFinishedFeatureStyle(e){this.layer.setStyle(e)}setActiveFeatureStyle(e){const t=Ji(e);this.activeFeatureStyle=(n,...s)=>{const i=n?.getGeometry()?.getType();if(i==="Polygon"||i==="LineString"||i==="Point")return t(n,...s)},this.draw?.getOverlay().setStyle(this.activeFeatureStyle)}clearMeasurements(){this.source.clear();for(const e of this.overlayTooltips)e.destroy();this.overlayTooltips=[]}startMeasurement(e){if(this.draw)throw new Error("Internal error: another measurement interaction is still active.");const t=e==="area"?"Polygon":"LineString",n=this.draw=new Wo({source:this.source,type:t,style:this.activeFeatureStyle});this.olMap.addInteraction(n);let s,i;n.on("drawstart",r=>{s=this.measureTooltip=this.createMeasureTooltip();const a=this.sketch=r.feature;if(!a)return;let c;i=a.getGeometry()?.on("change",d=>{const u=d.target,h=this.olMap.getView().getProjection();let f="";u instanceof no?(f=Gd(u,h,this.messages),c=u.getInteriorPoint().getCoordinates()||null):u instanceof Ue&&(f=Bd(u,h,this.messages),c=u.getLastCoordinate()||null),s&&(s.element.innerHTML=f,c&&s?.overlay.setPosition(c))})}),n.on("drawend",()=>{if(s){const r=s.element.classList;r.remove("measurement-active-tooltip"),r.remove("printing-hide"),r.add("measurement-finished-tooltip"),s.overlay.setOffset([0,-7]),this.overlayTooltips.push(s),this.measureTooltip=s=void 0}this.sketch=void 0,i&&ce(i)}),n.on("drawabort",()=>{s&&(s.destroy(),this.measureTooltip=s=void 0),this.sketch=void 0,i&&ce(i)})}stopMeasurement(){this.draw&&(this.olMap.removeInteraction(this.draw),this.draw.abortDrawing(),this.draw.dispose(),this.draw=void 0),this.sketch=void 0,this.measureTooltip?.destroy(),this.measureTooltip=void 0}createMeasureTooltip(){const e=document.createElement("div");e.className="measurement-tooltip measurement-active-tooltip printing-hide";const t=new bt({element:e,offset:[0,-15],positioning:"bottom-center",stopEvent:!1,insertFirst:!1}),n=this.olMap;return n.addOverlay(t),{overlay:t,element:e,destroy(){n.removeOverlay(t)}}}createHelpTooltip(){const e=document.createElement("div");e.className="measurement-tooltip printing-hide hidden";const t=new bt({element:e,offset:[15,0],positioning:"center-left"}),n=this.olMap;return n.addOverlay(t),{overlay:t,element:e,destroy(){n.removeOverlay(t)}}}handlePointerMove(e){if(e.dragging)return;const t=this.helpTooltip,n=Vd(this.messages,this.sketch);t.element.textContent=n,t.overlay.setPosition(e.coordinate),t.element.classList.remove("hidden")}}function Vd(o,e){if(e){const t=e.getGeometry();if(t instanceof no||t instanceof Ue)return o.getContinueMessage()}return o.getHelpMessage()}function Gd(o,e,t){const n=Qi(o,{projection:e});let s;return n>=1e6?s=`${t.formatNumber(n/1e6)} km2`:s=`${t.formatNumber(n)} m2`,s}function Bd(o,e,t){const n=er(o,{projection:e});let s;return n>=1e3?s=`${t.formatNumber(n/1e3)} km`:s=`${t.formatNumber(n)} m`,s}const zd=o=>{const e=Nd(),{mapId:t,activeFeatureStyle:n,finishedFeatureStyle:s}=o,{containerProps:i}=oe("measurement",o),[r,a]=p.useState("distance"),c=g=>e.formatMessage({id:g}),d=Y(t),u=Ud(d.map,e);p.useEffect(()=>{u?.setActiveFeatureStyle(n??Wd())},[u,n]),p.useEffect(()=>{u?.setFinishedFeatureStyle(s??Hd())},[u,s]),p.useEffect(()=>{if(u)return u.startMeasurement(r),()=>{u.stopMeasurement()}},[u,r]);function h(g){if(g==="distance"||g==="area")a(g);else throw new Error(`Unexpected measurement type: '${g}'.`)}function f(){u?.clearMeasurements()}return l.jsxs(N,{...i,children:[l.jsx(fe,{mb:3,children:e.formatMessage({id:"measurementInfoText"})}),l.jsx($t,{mb:4,alignItems:"center",children:l.jsxs(Co,{mb:2,children:[l.jsx(vt,{mb:1,children:c("measurementLabel")}),l.jsxs(Go,{value:r,onChange:g=>h(g.target.value),className:"measurement-select",children:[l.jsx("option",{value:"distance",children:c("distance")}),l.jsx("option",{value:"area",children:c("area")})]})]})}),l.jsx(oo,{padding:2,className:"measurement-delete-button",onClick:f,width:"100%",children:c("deleteMeasurementLabel")})]})};function Ud(o,e){const[t,n]=p.useState(void 0);return p.useEffect(()=>{if(!o)return;const s=new Fd(o.olMap,{getContinueMessage(){return e.formatMessage({id:"tooltips.continue"})},getHelpMessage(){return e.formatMessage({id:"tooltips.help"})},formatNumber(i){return e.formatNumber(i,{maximumFractionDigits:2})}});return n(s),()=>{s.destroy(),n(void 0)}},[o,e]),t}function Wd(){return[new Re({stroke:new Te({color:"#fff",lineDash:[10,10],width:5})}),new Re({fill:new et({color:"rgba(0,0,0,0.15)"}),stroke:new Te({color:"rgba(0, 0, 0, 0.7)",lineDash:[10,10],width:3}),image:new jo({radius:5,stroke:new Te({color:"rgba(0, 0, 0, 0.7)",width:2}),fill:new et({color:"rgba(255, 255, 255, 0.2)"})})})]}function Hd(){return[new Re({stroke:new Te({color:"#fff",width:5})}),new Re({stroke:new Te({color:"#0b96fc",width:3}),fill:new et({color:"rgba(11,150,252,0.15)"})})]}function $d(){const o=p.useId(),e=Ee();return l.jsx(N,{role:"dialog","aria-labelledby":o,children:l.jsx(je,{title:l.jsx(Ne,{id:o,size:"md",mb:2,children:e.formatMessage({id:"measurementTitle"})}),children:l.jsx(zd,{mapId:G})})})}const qd="200px",Kd="300px",Yd=o=>{const{mapId:e,olLayer:t,height:n=qd,width:s=Kd}=o,{containerProps:i}=oe("overview-map",o),r=p.useRef(null),{map:a}=Y(e);return p.useEffect(()=>{if(r.current&&a&&t){const c=a.olMap,d=new Lc({className:"ol-overviewmap",layers:[t],collapsible:!1,collapsed:!1,target:r.current});return c.addControl(d),()=>{c.removeControl(d)}}},[a,t]),l.jsx(N,{height:n,width:s,ref:r,...i})};function Xd(){const o=p.useMemo(()=>new Do({source:new $n}),[]);return l.jsx(N,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:325,children:l.jsx(N,{role:"dialog",children:l.jsx(Yd,{mapId:G,olLayer:o})})})}function Zd(){const o=Ce("ol-app.AppModel"),e=ot(o.state).resultListState,[t,n]=p.useState([]),[s,i]=p.useState([]),r=p.useCallback(a=>{n(a.features),i(a.getFeatureIds())},[]);return p.useEffect(()=>{console.log("Anzahl Features: "+t.length),console.log("SelectedIds: "+s.toString())},[t,s]),e.input&&l.jsx(N,{className:"result-list-container",position:"absolute",visibility:e.open?"visible":"hidden",bottom:"0",backgroundColor:"white",width:"100%",height:"400px",zIndex:1,borderTop:"2px solid",borderBottom:"2px solid",borderColor:"trails.100",children:l.jsx(Lr,{input:e.input,mapId:G,onSelectionChange:r},e.key)})}const Jd="@open-pioneer/search",ao=ue.bind(void 0,Jd);function Qd(o){const e=o.selectProps.inputValue.length>0,t={...o,className:Rt(o.className,{"search-invisible":!e})};return l.jsx(me.Menu,{...t,children:o.children})}function eu(o){const t=ao().formatMessage({id:"noOptionsText"});return l.jsx(me.NoOptionsMessage,{...o,children:l.jsx(ee.span,{className:"search-no-match",children:t})})}function tu(o){const t=ao().formatMessage({id:"loadingText"});return l.jsx(me.LoadingMessage,{...o,children:l.jsx(ee.span,{className:"search-loading-text",children:t})})}function ou({children:o,...e}){const t={...e,className:Rt(e.className,"search-value-container")};return l.jsxs(me.ValueContainer,{...t,children:[!!o&&l.jsx(Cc,{style:{position:"absolute",left:8}}),o]})}function nu(o){const e={...o,isHidden:!1};return l.jsx(me.Input,{...e})}function su(o){return null}function iu(o){return l.jsxs(me.IndicatorsContainer,{...o,children:[o.children,!o.selectProps.isLoading&&o.selectProps.inputValue&&l.jsx(ru,{selectProps:o.selectProps,clearValue:o.clearValue})]})}function ru(o){const t=ao().formatMessage({id:"ariaLabel.clearButton"}),n=s=>{s.preventDefault(),s.stopPropagation(),o.clearValue()};return l.jsx(Qs,{role:"button",size:"md",mr:1,"aria-label":t,onClick:n,onTouchEnd:n,onMouseDown:s=>s.preventDefault()})}function au(o){return null}function lu(o){const e=o.selectProps.inputValue,t=o.data.label,n={...o,className:Rt(o.className,"search-option")};return l.jsx(me.Option,{...n,children:l.jsx(ee.div,{className:"search-option-label",children:e.trim().length>0?cu(t,e):t})})}function cu(o,e){const t=o.toLowerCase().indexOf(e.toLowerCase());return t>=0?l.jsxs(l.Fragment,{children:[o.substring(0,t),l.jsx(ee.span,{className:"search-highlighted-match",children:o.substring(t,t+e.length)},"highlighted"),o.substring(t+e.length)]}):o}const Mn=de("search:SearchController"),Ln=200,An=5;var Lt,Ze,Je,Qe,re,eo,Ns;class du{constructor(e,t){A(this,eo);A(this,Lt,void 0);A(this,Ze,[]);A(this,Je,An);A(this,Qe,Ln);A(this,re,void 0);I(this,Lt,e),I(this,Ze,t)}destroy(){_(this,re)?.abort(),I(this,re,void 0)}async search(e){if(_(this,re)?.abort(),I(this,re,void 0),!e)return[];const t=I(this,re,new AbortController);try{return await uu(t.signal,_(this,Qe)),t.signal.aborted&&(Mn.debug(`search canceled with ${e}`),ei()),(await Promise.all(_(this,Ze).map(s=>W(this,eo,Ns).call(this,s,e,t.signal)))).filter(s=>s!=null)}finally{_(this,re)===t&&I(this,re,void 0)}}get searchTypingDelay(){return _(this,Qe)}set searchTypingDelay(e){I(this,Qe,e??Ln)}get maxResultsPerSource(){return _(this,Je)}set maxResultsPerSource(e){I(this,Je,e??An)}get sources(){return _(this,Ze)}}Lt=new WeakMap,Ze=new WeakMap,Je=new WeakMap,Qe=new WeakMap,re=new WeakMap,eo=new WeakSet,Ns=async function(e,t,n){const s=e.label,i=_(this,Lt).olMap.getView().getProjection();try{const r=_(this,Je);let a=await e.search(t,{maxResults:r,signal:n,mapProjection:i});return a.length>r&&(a=a.slice(0,r)),{label:s,source:e,results:a}}catch(r){Wt(r)||Mn.error(`search for source ${s} failed`,r);return}};async function uu(o,e){o.aborted||await new Promise(t=>{const n=()=>{o.removeEventListener("abort",n),clearTimeout(s),t()};o.addEventListener("abort",n);const s=setTimeout(n,e)})}const Kt=de("search:Search"),hu=o=>{const{mapId:e,sources:t,searchTypingDelay:n,maxResultsPerGroup:s,onSelect:i,onClear:r}=o,{containerProps:a}=oe("search",o),{map:c}=Y(e),d=ao(),u=mu(t,n,s,c),{input:h,search:f,selectedOption:g,onInputChanged:v,onResultConfirmed:S}=vu(u),L=gu(),E=pu(d),O=fu(),T=Oe((R,H)=>{H.action==="input-change"&&v(R)}),X=Oe((R,H)=>{switch(H.action){case"select-option":R&&(S(R),i?.({source:R.source,result:R.result}));break;case"clear":v(""),Z.current?.blur(),Z.current?.focus(),r?.();break;default:Kt.debug(`Unhandled action type '${H.action}'.`);break}}),Z=p.useRef(null);return l.jsx(N,{...a,children:l.jsx(Eo,{className:"search-component",classNamePrefix:"react-select",ref:Z,inputValue:h,onInputChange:T,"aria-label":d.formatMessage({id:"ariaLabel.search"}),ariaLiveMessages:E,colorScheme:"trails",selectedOptionStyle:"color",selectedOptionColorScheme:"trails",chakraStyles:L,isClearable:!0,placeholder:d.formatMessage({id:"searchPlaceholder"}),closeMenuOnSelect:!0,isLoading:f.kind==="loading",options:f.kind==="ready"?f.results:void 0,filterOption:()=>!0,tabSelectsValue:!1,components:O,onChange:X,value:g,menuPosition:"fixed"})})};function pu(o){return p.useMemo(()=>({onFocus:({focused:i})=>`${i.label} ${o.formatMessage({id:"ariaLabel.searchFocus"})}.`,onChange:({action:i,label:r})=>{let a="";switch(i){case"select-option":a=`${r} ${o.formatMessage({id:"ariaLabel.searchSelect"})}.`;break;case"clear":a=`${r} ${o.formatMessage({id:"ariaLabel.searchClear"})}.`;break}return a},guidance:()=>`${o.formatMessage({id:"ariaLabel.instructions"})}`,onFilter:()=>""}),[o])}function fu(){return p.useMemo(()=>({Menu:Qd,Input:nu,SingleValue:su,Option:lu,NoOptionsMessage:eu,LoadingMessage:tu,ValueContainer:ou,IndicatorsContainer:iu,ClearIndicator:au}),[])}function gu(){const[o,e]=Fn("colors",["trails.100","trails.50"],["#d5e5ec","#eaf2f5"]);return p.useMemo(()=>({groupHeading:n=>({...n,backgroundColor:o,padding:"8px 12px",fontSize:"inherit",fontWeight:"inherit"}),option:n=>({...n,backgroundColor:"inherit",_focus:{backgroundColor:e}}),dropdownIndicator:n=>({...n,display:"none"})}),[o,e])}function mu(o,e,t,n){const[s,i]=p.useState(void 0);return p.useEffect(()=>{if(!n)return;const r=new du(n,o);return i(r),()=>{r.destroy(),i(void 0)}},[n,o]),p.useEffect(()=>{s&&(s.searchTypingDelay=e)},[s,e]),p.useEffect(()=>{s&&(s.maxResultsPerSource=t)},[s,t]),s}function vu(o){const[e,t]=p.useReducer((a,c)=>{switch(c.kind){case"input":return{...a,query:c.query,selectedOption:null};case"select-option":return{...a,selectedOption:c.option,query:c.option.label};case"load-results":return{...a,search:{kind:"loading"}};case"accept-results":return{...a,search:{kind:"ready",results:c.results}}}},void 0,()=>({query:"",selectedOption:null,search:{kind:"ready",results:[]}})),n=p.useRef(),s=Oe(a=>{if(!o){n.current=void 0,t({kind:"accept-results",results:[]});return}Kt.isDebug()&&Kt.debug(`Starting new search for query ${JSON.stringify(a)}.`),t({kind:"load-results"});const c=n.current=bu(o,a).then(d=>{n.current===c&&t({kind:"accept-results",results:d})})}),i=p.useCallback(a=>{t({kind:"select-option",option:a})},[]),r=p.useCallback(a=>{t({kind:"input",query:a}),s(a)},[s]);return{input:e.query,search:e.search,selectedOption:e.selectedOption,onResultConfirmed:i,onInputChanged:r}}async function bu(o,e){let t;try{t=await o.search(e)}catch(n){Wt(n)||Kt.error("Search failed",n),t=[]}return yu(t)}function yu(o){return o.map((t,n)=>({label:t.label,options:t.results.map(s=>({value:`${n}-${s.id}`,label:s.label,source:t.source,result:s}))}))}function Fs(o,e){const t=o.olMap.getViewport();o.highlightAndZoom(e,{viewPadding:t&&t.offsetWidth<1e3?{top:150,right:75,bottom:50,left:75}:{top:150,right:400,bottom:50,left:400}})}function wu(){const{map:o}=Y(G),e=Ce("ol-app.AppModel"),t=ot(e.state).searchSources;function n(i){if(console.debug("The user selected the following item: ",i.result),!o)return;const r=i.result.geometry;r&&Fs(o,[r])}function s(){console.debug("The user cleared the search"),o?.removeHighlight()}return l.jsx(N,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",mt:5,className:"search-box",children:l.jsx(hu,{mapId:G,sources:t,maxResultsPerGroup:10,onSelect:n,onClear:s})})}const Vs="@open-pioneer/selection",Su=rt.bind(void 0,Vs),Ko=ue.bind(void 0,Vs),pt="selection-active",zt="selection-inactive";class _u{tooltip;interactionResources=[];olMap;isActive=!0;tooltipMessage;tooltipDisabledMessage;constructor(e,t,n,s,i){let r;switch(t){case Yo.extent:default:r=this.initViewport(e),this.interactionResources.push(this.createDragBox(e,i,r,this.interactionResources)),this.interactionResources.push(this.createDrag(e,r,this.interactionResources));break}this.tooltip=this.createHelpTooltip(e,n),this.olMap=e,this.tooltipMessage=n,this.tooltipDisabledMessage=s}initViewport(e){const t=e.getViewport();return t.classList.add(pt),t.oncontextmenu=n=>(n.preventDefault(),!1),t}destroy(){this.tooltip.destroy(),this.interactionResources.forEach(e=>{e.destroy()})}setActive(e){if(this.isActive===e)return;const t=this.olMap.getViewport();e?(this.interactionResources.forEach(n=>this.olMap.addInteraction(n.interaction)),this.tooltip.element.textContent=this.tooltipMessage,t.classList.remove(zt),t.classList.add(pt),this.isActive=!0):(this.interactionResources.forEach(n=>this.olMap.removeInteraction(n.interaction)),this.tooltip.element.textContent=this.tooltipDisabledMessage,t.classList.remove(pt),t.classList.add(zt),this.isActive=!1)}createDragBox(e,t,n,s){const i=new sn({className:"selection-drag-box",condition:tr});return e.addInteraction(i),i.on("boxend",function(){t(i.getGeometry())}),{interaction:i,destroy(){e.removeInteraction(i),s.splice(s.indexOf(this)),i.dispose(),n.classList.remove(pt),n.classList.remove(zt),n.oncontextmenu=null}}}createDrag(e,t,n){const s=function(a){return a.originalEvent.button==2},i=new rn({condition:s});return e.addInteraction(i),{interaction:i,destroy(){e.removeInteraction(i),n.splice(n.indexOf(this)),i.dispose(),t.classList.remove(pt),t.classList.remove(zt),t.oncontextmenu=null}}}createHelpTooltip(e,t){const n=document.createElement("div");n.className="selection-tooltip printing-hide",n.textContent=t;const s=new bt({element:n,offset:[15,0],positioning:"center-left"}),i=e.on("pointermove",r=>{s.setPosition(r.coordinate)});return e.addOverlay(s),{overlay:s,element:n,destroy(){e.removeOverlay(s),s.dispose(),ce(i)}}}getDragboxInteraction(){return this.interactionResources.find(e=>e.interaction instanceof sn)}getDragPanInteraction(){return this.interactionResources.find(e=>e.interaction instanceof rn)}}const So=de("selection:SelectionController"),xu=1e4;var At,Tt,It,to,Gs;class ku{constructor(e){A(this,to);A(this,At,void 0);A(this,Tt,void 0);A(this,It,void 0);const{mapModel:t,onError:n,maxResults:s=xu}=e;I(this,At,t),I(this,Tt,s),I(this,It,n)}destroy(){}async select(e,t){if(t)return await W(this,to,Gs).call(this,e,t)}}At=new WeakMap,Tt=new WeakMap,It=new WeakMap,to=new WeakSet,Gs=async function(e,t){const n=_(this,At).olMap.getView().getProjection();try{So.debug(`Starting selection on source '${e.label}'`);const s=_(this,Tt);let i=await e.select({type:"extent",extent:t},{maxResults:s,mapProjection:n,signal:new AbortController().signal});return i.length>s&&(i=i.slice(0,s)),So.debug(`Found ${i.length} results on source '${e.label}'`),{source:e,results:i}}catch(s){So.error(`selection from source ${e.label} failed`,s),_(this,It).call(this);return}};var Yo=(o=>(o.extent="EXTENT",o.polygon="POLYGON",o.free="FREEPOLYGON",o.circle="CIRCLE",o))(Yo||{});const Tn={classNamePrefix:"react-select",menuPosition:"fixed",isSearchable:!1,isClearable:!1},Cu=o=>{const e=Ko(),{mapId:t,sources:n,onSelectionComplete:s,onSelectionSourceChanged:i}=o,{containerProps:r}=oe("selection",o),[a,c]=p.useState(()=>n.find(R=>(R.status??"available")==="available")),d=Y(t),{onExtentSelected:u}=Mu(d.map,n,a,s),h=Tu(),g=p.useCallback(R=>{const H=[];if(R||(R=["EXTENT"]),R.forEach(b=>{Object.values(Yo).includes(b)&&H.push({label:e.formatMessage({id:b}),value:b})}),H.length===0)throw new Error("methods does not contain valid values");return H},[e])(void 0),[v,S]=p.useState(g[0]),L=Oe(R=>{S(R)}),[E,O]=p.useState(!0);Au(d.map,v,e,u,E);const T=p.useMemo(()=>n.map(R=>({label:R.label,value:R})),[n]),X=p.useMemo(()=>T.find(R=>R.value===a),[T,a]),Z=Oe(R=>{c(R?.value),i&&i({source:R?.value})});return p.useEffect(()=>{if(!a){O(!1);return}const R=e.formatMessage({id:"sourceNotAvailable"}),H=()=>a&&Ro(a,R).kind==="available";O(H());const b=a.on("changed:status",()=>{O(H())});return()=>b.destroy()},[a,O,e]),l.jsxs(ko,{...r,spacing:2,children:[g.length>1&&l.jsxs($t,{children:[l.jsx(vt,{children:e.formatMessage({id:"selectMethod"})}),l.jsx(Eo,{className:"selection-method react-select",...Tn,options:g,onChange:L,value:v,chakraStyles:h})]}),l.jsxs($t,{children:[l.jsx(vt,{children:e.formatMessage({id:"selectSource"})}),l.jsx(Eo,{className:"selection-source react-select",...Tn,options:T,placeholder:e.formatMessage({id:"selectionPlaceholder"}),value:X,onChange:Z,components:{Option:Eu,SingleValue:Pu},isOptionDisabled:R=>R.value===void 0||R.value.status==="unavailable",getOptionLabel:R=>R.label+(R.value===void 0||R.value.status==="unavailable"?" "+e.formatMessage({id:"sourceNotAvailable"}):""),chakraStyles:h})]})]})};function Eu(o){const{value:e}=o.data,{isAvailable:t,content:n}=Bs(e,!1);return l.jsx(me.Option,{...o,isDisabled:!t,className:"selection-source-option",children:n})}function Pu(o){const{value:e}=o.data,{isAvailable:t,content:n}=Bs(e,!0),s=t?"selection-source-value":"selection-source-value selection-source-value--disabled";return l.jsx(me.SingleValue,{...o,isDisabled:!t,className:s,children:n})}function Bs(o,e){const t=o?.label,n=Lu(o);return{isAvailable:n.kind==="available",content:l.jsxs(pe,{direction:"row",alignItems:"center",grow:1,children:[!e&&l.jsx(pe,{grow:1,children:t}),n.kind==="unavailable"&&l.jsx(N,{ml:2,children:l.jsx(Nn,{label:n.reason,placement:"right",openDelay:500,children:l.jsx(ee.span,{children:l.jsx(ti,{as:Mr,color:"red",className:"warning-icon","aria-label":n.reason})})})}),e&&t]})}}function Mu(o,e,t,n){const s=Su("notifier.NotificationService"),i=Ko(),[r,a]=p.useState(void 0);p.useEffect(()=>{if(!o)return;const d=new ku({mapModel:o,onError(){s.notify({level:"error",message:i.formatMessage({id:"selectionFailed"})})}});return a(d),()=>{d.destroy()}},[o,s,e,i]);const c=Oe(async d=>{if(!r||!t)return;const u=await r.select(t,d.getExtent());u&&n?.(u)});return{controller:r,onExtentSelected:c}}function Ro(o,e){const t=o.status??"available",n=typeof t=="string"?{kind:t}:t;return n.kind==="available"?n:{kind:"unavailable",reason:n.reason??e}}function Lu(o){const e=Ko(),[t,n]=p.useState(()=>({kind:"available"}));return p.useEffect(()=>{if(!o){n({kind:"available"});return}const s=e.formatMessage({id:"sourceNotAvailable"});n(Ro(o,s));const i=o.on?.("changed:status",()=>{n(Ro(o,s))});return()=>i?.destroy()},[o,e]),t}function Au(o,e,t,n,s){p.useEffect(()=>{if(!o)return;const i=new _u(o.olMap,e.value,t.formatMessage({id:"tooltip"}),t.formatMessage({id:"disabledTooltip"}),n);return i.setActive(s),()=>{i?.destroy()}},[o,e,t,n,s])}function Tu(){const[o,e]=Fn("colors",["background_body","border"],["#ffffff","#ffffff"]);return p.useMemo(()=>({control:n=>({...n,cursor:"pointer"}),indicatorSeparator:n=>({...n,borderColor:e}),dropdownIndicator:n=>({...n,backgroundColor:o})}),[o,e])}function Iu(){const o=Ee(),e=Ce("notifier.NotificationService"),t=p.useId(),{map:n}=Y(G),s=Ce("ol-app.AppModel"),i=ot(s.state).selectionSources,r=ot(s.state).sourceMetadata,a={numberOptions:{maximumFractionDigits:3},dateOptions:{dateStyle:"medium",timeStyle:"medium",timeZone:"UTC"}};function c(u){const{source:h,results:f}=u;if(!n){console.debug("Map not ready");return}n?.removeHighlight();const g=f.map(S=>S.geometry);g.length>0&&Fs(n,g);const v=r.get(h);if(!v){console.warn("Can not show results because no metadata could be found");return}s.setResultListInput({columns:v,data:f,formatOptions:a}),e.notify({level:"info",message:o.formatMessage({id:"foundResults"},{resultsCount:f.length}),displayDuration:4e3})}function d(u){n?.removeHighlight()}return l.jsx(N,{role:"dialog","aria-labelledby":t,children:l.jsx(je,{title:l.jsx(Ne,{id:t,size:"md",mb:2,children:o.formatMessage({id:"selectionTitle"})}),children:l.jsx(Cu,{mapId:G,sources:i,onSelectionComplete:c,onSelectionSourceChanged:d})})})}function Ru(o){const e=p.useId(),t=Ee();return l.jsx(N,{role:"dialog","aria-labelledby":e,children:l.jsx(je,{title:l.jsx(Ne,{id:e,size:"md",mb:2,children:l.jsx(fe,{children:t.formatMessage({id:"tocTitle"})})}),children:l.jsx(N,{overflowY:"auto",maxHeight:o.maxHeight,children:l.jsx(yr,{mapId:G,showTools:!0,basemapSwitcherProps:{allowSelectingEmptyBasemap:!0}})})})})}const Ou={bookmarksActive:!1,legendActive:!0,overviewMapActive:!0,tocActive:!0,printingActive:!1};function Du(){const o=Ee(),{map:e}=Y(G),[t,n]=p.useState(),[s,i]=p.useState(Ou),r={...s,editingActive:t==="editing",measurementActive:t==="measurement",selectionActive:t==="selection"},a=(f,g)=>{if(f==="selectionActive"||f==="measurementActive"||f==="editingActive"){let v;switch(f){case"editingActive":v="editing";break;case"measurementActive":v="measurement";break;case"selectionActive":v="selection";break}v!==t&&g?(n(v),e?.removeHighlight()):v===t&&!g&&(n(void 0),e?.removeHighlight())}else i({...s,[f]:g})},c=Ce("ol-app.AppModel"),d=ot(c.state).resultListState,u=d.input&&d.open,h=[r.tocActive&&l.jsx(Ru,{maxHeight:r.legendActive||t?"300px":"75vh"},"toc"),r.legendActive&&l.jsx(Ed,{},"legend"),t==="selection"?l.jsx(Iu,{},"selection"):t==="measurement"?l.jsx($d,{},"measurement"):void 0];return l.jsxs(pe,{height:"100%",direction:"column",overflow:"hidden",children:[l.jsx(Pc,{position:"top-right"}),l.jsxs(je,{title:l.jsx(N,{role:"region","aria-label":o.formatMessage({id:"ariaLabel.header"}),textAlign:"center",py:1,children:l.jsx(Ne,{size:"md",children:"OpenLayers Base Packages - Default Sample"})}),children:[l.jsx(pe,{flex:"1",direction:"column",position:"relative",children:l.jsxs(or,{mapId:G,role:"main","aria-label":o.formatMessage({id:"ariaLabel.map"}),viewPadding:u?{bottom:400}:void 0,children:[l.jsx(Er,{centerContent:!0,children:l.jsx(wu,{})}),l.jsx(lt,{position:"top-left",horizontalGap:20,verticalGap:20,children:l.jsx(ju,{children:h})}),l.jsx(lt,{position:"top-right",horizontalGap:20,verticalGap:20,children:r.overviewMapActive&&l.jsx(Xd,{})}),l.jsx(lt,{horizontalGap:20,position:"bottom-left",children:r.bookmarksActive&&l.jsx(ad,{})}),l.jsx(lt,{horizontalGap:20,position:"bottom-left",children:r.printingActive&&l.jsx(gd,{})}),l.jsx(lt,{position:"bottom-right",horizontalGap:10,verticalGap:45,children:l.jsx(Od,{toolState:r,onToolStateChange:a})}),l.jsx(Zd,{})]})}),l.jsxs(pe,{role:"region","aria-label":o.formatMessage({id:"ariaLabel.footer"}),gap:3,alignItems:"center",justifyContent:"center",children:[l.jsx(bc,{mapId:G,precision:2,displayProjectionCode:"EPSG:4326"}),l.jsx(Ic,{mapId:G}),l.jsx(Dc,{mapId:G})]})]})]})}function ju(o){const e=o.children,t=[];for(const n of e)n&&(t.length&&t.push(l.jsx(Ar,{mt:4,mb:4},t.length)),t.push(n));if(t.length!==0)return l.jsx(N,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",width:350,maxWidth:350,children:t})}const Nu=oi({component:Du,theme:ni,appMetadata:fc,config:{properties:{"@open-pioneer/local-storage":{storageId:"ol-app-state"},"@open-pioneer/editing":{polygonDrawStyle:{"stroke-color":"red","stroke-width":2,"fill-color":"rgba(0, 0, 0, 0.1)","circle-radius":5,"circle-fill-color":"rgba(255, 0, 0, 0.2)","circle-stroke-color":"rgba(255, 0, 0, 0.7)","circle-stroke-width":2}}}},async resolveConfig(o){const e=o.getAttribute("forced-locale");if(e)return{locale:e}}});customElements.define("ol-map-app",Nu);const Fu=document.getElementsByTagName("body")[0];Vu();function Vu(){const o=window.location.search,t=new URLSearchParams(o).get("lang"),n=document.createElement("ol-map-app");n.classList.add("full-height"),n.classList.add("app"),n.setAttribute("id","test"),t&&n.setAttribute("forced-locale",t),Fu.appendChild(n)} +Make sure that your app contains the component.`)};const Dt={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"};class jt extends Bn{constructor(e,t){super(e),this.feature=t}}function $l(o,e){const t=[];for(let n=0;n=t?o[e-t]:o[e]}function Ft(o,e,t){let n,s;er){const c=Be(o,n),d=Be(o,s);return Nt(c,d)}let a=0;if(nf.startIndex?Sf.startIndex&&(S-=g.length)),c=S,a=h)}const d=e.targets[a];let u=d.ring;if(e.targetIndex===a&&u){const h=Be(d.coordinates,c),f=t.getPixelFromCoordinate(h);Kn(f,e.startPx)>n&&(u=!1)}if(u){const h=d.coordinates,f=h.length,g=d.startIndex,v=c;if(g=t?n-=t:n<0&&(n+=t);let i=n+1;i>=t&&(i-=t);const r=o[n],a=r[0],c=r[1],d=o[i],u=d[0]-a,h=d[1]-c;return[a+u*s,c+h*s]}class Kl extends Ci{constructor(e){const t=e;t.stopDown||(t.stopDown=Ei),super(t),this.on,this.once,this.un,this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.pointerType_,this.freehand_=!1,this.source_=e.source?e.source:null,this.features_=e.features?e.features:null,this.snapTolerance_=e.snapTolerance?e.snapTolerance:12,this.type_=e.type,this.mode_=Xl(this.type_),this.stopClick_=!!e.stopClick,this.minPoints_=e.minPoints?e.minPoints:this.mode_==="Polygon"?3:2,this.maxPoints_=this.mode_==="Circle"?2:e.maxPoints?e.maxPoints:1/0,this.finishCondition_=e.finishCondition?e.finishCondition:Pi,this.geometryLayout_=e.geometryLayout?e.geometryLayout:"XY";let n=e.geometryFunction;if(!n){const s=this.mode_;if(s==="Circle")n=function(i,r,a){const c=r||new Ua([NaN,NaN]),d=Zo(i[0]),u=Mi(d,Zo(i[i.length-1]));return c.setCenterAndRadius(d,Math.sqrt(u),this.geometryLayout_),c};else{let i;s==="Point"?i=ze:s==="LineString"?i=Ue:s==="Polygon"&&(i=no),n=function(r,a,c){return a?s==="Polygon"?r[0].length?a.setCoordinates([r[0].concat([r[0][0]])],this.geometryLayout_):a.setCoordinates([],this.geometryLayout_):a.setCoordinates(r,this.geometryLayout_):a=new i(r,this.geometryLayout_),a}}}this.geometryFunction_=n,this.dragVertexDelay_=e.dragVertexDelay!==void 0?e.dragVertexDelay:500,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,this.overlay_=new ge({source:new De({useSpatialIndex:!1,wrapX:e.wrapX?e.wrapX:!1}),style:e.style?e.style:Yl(),updateWhileInteracting:!0}),this.geometryName_=e.geometryName,this.condition_=e.condition?e.condition:Li,this.freehandCondition_,e.freehand?this.freehandCondition_=Jo:this.freehandCondition_=e.freehandCondition?e.freehandCondition:Ai,this.traceCondition_,this.setTrace(e.trace||!1),this.traceState_={active:!1},this.traceSource_=e.traceSource||e.source||null,this.addChangeListener(Ti.ACTIVE,this.updateState_)}setTrace(e){let t;e?e===!0?t=Jo:t=e:t=Di,this.traceCondition_=t}setMap(e){super.setMap(e),this.updateState_()}getOverlay(){return this.overlay_}handleEvent(e){e.originalEvent.type===qn.CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_=this.mode_!=="Point"&&this.freehandCondition_(e);let t=e.type===ve.POINTERMOVE,n=!0;return!this.freehand_&&this.lastDragTime_&&e.type===ve.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,t=!0):this.lastDragTime_=void 0,this.shouldHandle_&&this.downTimeout_!==void 0&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&e.type===ve.POINTERDRAG&&this.sketchFeature_!==null?(this.addToDrawing_(e.coordinate),n=!1):this.freehand_&&e.type===ve.POINTERDOWN?n=!1:t&&this.getPointerCount()<2?(n=e.type===ve.POINTERMOVE,n&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):(e.originalEvent.pointerType==="mouse"||e.type===ve.POINTERDRAG&&this.downTimeout_===void 0)&&this.handlePointerMove_(e)):e.type===ve.DBLCLICK&&(n=!1),super.handleEvent(e)&&n}handleDownEvent(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(()=>{this.handlePointerMove_(new Ii(ve.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))},this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)}deactivateTrace_(){this.traceState_={active:!1}}toggleTraceState_(e){if(!this.traceSource_||!this.traceCondition_(e))return;if(this.traceState_.active){this.deactivateTrace_();return}const t=this.getMap(),n=t.getCoordinateFromPixel([e.pixel[0]-this.snapTolerance_,e.pixel[1]+this.snapTolerance_]),s=t.getCoordinateFromPixel([e.pixel[0]+this.snapTolerance_,e.pixel[1]-this.snapTolerance_]),i=Vn([n,s]),r=this.traceSource_.getFeaturesInExtent(i);if(r.length===0)return;const a=$l(e.coordinate,r);a.length&&(this.traceState_={active:!0,startPx:e.pixel.slice(),targets:a,targetIndex:-1})}addOrRemoveTracedCoordinates_(e,t){const n=e.startIndex<=e.endIndex,s=e.startIndex<=t;n===s?n&&t>e.endIndex||!n&&te.endIndex)&&this.removeTracedCoordinates_(t,e.endIndex):(this.removeTracedCoordinates_(e.startIndex,e.endIndex),this.addTracedCoordinates_(e,e.startIndex,t))}removeTracedCoordinates_(e,t){if(e===t)return;let n=0;if(e0&&this.removeLastPoints_(n)}addTracedCoordinates_(e,t,n){if(t===n)return;const s=[];if(t=r;--a)s.push(Ge(e.coordinates,a))}s.length&&this.appendCoordinates(s)}updateTrace_(e){const t=this.traceState_;if(!t.active||t.targetIndex===-1&&Kn(t.startPx,e.pixel)this.squaredClickTolerance_:r<=this.squaredClickTolerance_,!this.shouldHandle_)return}if(!this.finishCoordinate_){this.createOrUpdateSketchPoint_(e.coordinate.slice());return}this.updateTrace_(e),this.modifyDrawing_(e.coordinate)}atFinish_(e,t){let n=!1;if(this.sketchFeature_){let s=!1,i=[this.finishCoordinate_];const r=this.mode_;if(r==="Point")n=!0;else if(r==="Circle")n=this.sketchCoords_.length===2;else if(r==="LineString")s=!t&&this.sketchCoords_.length>this.minPoints_;else if(r==="Polygon"){const a=this.sketchCoords_;s=a[0].length>this.minPoints_,i=[a[0][0],a[0][a[0].length-2]],t?i=[a[0][0]]:i=[a[0][0],a[0][a[0].length-2]]}if(s){const a=this.getMap();for(let c=0,d=i.length;c=this.maxPoints_&&(this.freehand_?i.pop():s=!0),i.push(e.slice()),this.geometryFunction_(i,t,n)):r==="Polygon"&&(i=this.sketchCoords_[0],i.length>=this.maxPoints_&&(this.freehand_?i.pop():s=!0),i.push(e.slice()),s&&(this.finishCoordinate_=i[0]),this.geometryFunction_(this.sketchCoords_,t,n)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),s&&this.finishDrawing()}removeLastPoints_(e){if(!this.sketchFeature_)return;const t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),s=this.mode_;for(let i=0;i=2){this.finishCoordinate_=r[r.length-2].slice();const a=this.finishCoordinate_.slice();r[r.length-1]=a,this.createOrUpdateSketchPoint_(a)}this.geometryFunction_(r,t,n),t.getType()==="Polygon"&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(s==="Polygon"){r=this.sketchCoords_[0],r.splice(-2,1);const a=this.sketchLine_.getGeometry();if(r.length>=2){const c=r[r.length-2].slice();r[r.length-1]=c,this.createOrUpdateSketchPoint_(c)}a.setCoordinates(r),this.geometryFunction_(this.sketchCoords_,t,n)}if(r.length===1){this.abortDrawing();break}}this.updateSketchFeatures_()}removeLastPoint(){this.removeLastPoints_(1)}finishDrawing(){const e=this.abortDrawing_();if(!e)return;let t=this.sketchCoords_;const n=e.getGeometry(),s=this.getMap().getView().getProjection();this.mode_==="LineString"?(t.pop(),this.geometryFunction_(t,n,s)):this.mode_==="Polygon"&&(t[0].pop(),this.geometryFunction_(t,n,s),t=n.getCoordinates()),this.type_==="MultiPoint"?e.setGeometry(new vr([t])):this.type_==="MultiLineString"?e.setGeometry(new os([t])):this.type_==="MultiPolygon"&&e.setGeometry(new ns([t])),this.dispatchEvent(new jt(Dt.DRAWEND,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}abortDrawing_(){this.finishCoordinate_=null;const e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),this.deactivateTrace_(),e}abortDrawing(){const e=this.abortDrawing_();e&&this.dispatchEvent(new jt(Dt.DRAWABORT,e))}appendCoordinates(e){const t=this.mode_,n=!this.sketchFeature_;n&&this.startDrawing_(e[0]);let s;if(t==="LineString"||t==="Circle")s=this.sketchCoords_;else if(t==="Polygon")s=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[];else return;n&&s.shift(),s.pop();for(let r=0;r`}});if(!r||!r.ok||r.status!==201)return Promise.reject(new Error("Request failed: "+r.status));const a=r.headers.get("location");if(!a)return Promise.reject(new Error("Request failed: no Location response header"));const c=a.substring(a.lastIndexOf("/")+1);return Promise.resolve(c)}var we;class Jl extends No{constructor(t){super();A(this,we,void 0);$(this,"_httpService");$(this,"_intl");$(this,"_map");$(this,"_polygonDrawStyle");$(this,"_state");$(this,"_editLayerURL");$(this,"_drawSource");$(this,"_drawLayer");$(this,"_drawInteraction");$(this,"_olMap");$(this,"_mapContainer");$(this,"_tooltip");$(this,"_enterHandler");$(this,"_escapeHandler");$(this,"_interactionListener");$(this,"_mapListener");this._httpService=t.httpService,this._intl=t.intl,this._polygonDrawStyle=t.polygonDrawStyle,this._map=t.map,this._olMap=t.map.olMap,this._state="active:initialized",this._editLayerURL=t.ogcApiFeatureLayerUrl,this._drawSource=new De,this._drawLayer=new ge({source:this._drawSource,zIndex:Fo,properties:{name:"editing-layer"}}),this._drawInteraction=new Wo({source:this._drawSource,type:"Polygon",style:this._polygonDrawStyle}),this._tooltip=this._createTooltip(this._olMap),this._enterHandler=n=>{if(n.code==="Enter"&&n.target===this._olMap.getTargetElement()){const s=this._drawInteraction.getOverlay().getSource().getFeatures();s[0]&&s[0].getGeometry().getCoordinates()[0].length>4&&this._drawInteraction.finishDrawing()}},this._escapeHandler=n=>{n.code==="Escape"&&n.target===this._olMap.getTargetElement()&&this.reset()},this._interactionListener=[],this._mapListener=[],this._start()}getDrawInteraction(){return this._drawInteraction}getState(){return this._state}_setState(t){this._state=t,this.emit(t)}_start(){this._olMap.addLayer(this._drawLayer),this._olMap.addInteraction(this._drawInteraction),this._mapContainer=this._olMap.getTargetElement()??void 0,this._mapContainer&&(this._mapContainer.addEventListener("keydown",this._enterHandler,!1),this._mapContainer.addEventListener("keydown",this._escapeHandler,!1)),this._tooltip.element.classList.remove("editing-tooltip-hidden");const t=this._drawInteraction.on("drawstart",()=>{this._setState("active:drawing"),this._tooltip.element.textContent=this._intl.formatMessage({id:"tooltip.continue"})}),n=this._drawInteraction.on("drawend",i=>{this._setState("active:saving");const r=this._editLayerURL,a=i.feature.getGeometry();if(!a){this._destroy(),_(this,we)?.reject(new Error("no geometry available"));return}const c=this._olMap.getView().getProjection(),u=new so({dataProjection:c}).writeGeometryObject(a,{rightHanded:!0,decimals:10});Zl(this._httpService,r,u,c).then(h=>{this._destroy(),_(this,we)?.resolve(h)}).catch(h=>{console.log(h),this._destroy(),_(this,we)?.reject(h)})}),s=this._map.on("changed:container",()=>{this._mapContainer?.removeEventListener("keydown",this._enterHandler),this._mapContainer?.removeEventListener("keydown",this._escapeHandler),this._mapContainer=this._olMap.getTargetElement()??void 0,this._mapContainer&&(this._mapContainer.addEventListener("keydown",this._enterHandler,!1),this._mapContainer.addEventListener("keydown",this._escapeHandler,!1))});this._interactionListener.push(t,n),this._mapListener.push(s)}reset(){this._drawInteraction.abortDrawing(),this._tooltip.element.textContent=this._intl.formatMessage({id:"tooltip.begin"}),this._setState("active:initialized")}stop(){this._destroy(),_(this,we)?.resolve(void 0)}_destroy(){this._olMap.removeLayer(this._drawLayer),this._olMap.removeInteraction(this._drawInteraction),this._tooltip.destroy(),this._interactionListener.map(t=>{ce(t)}),this._mapListener.map(t=>{t.destroy()}),this._mapContainer?.removeEventListener("keydown",this._enterHandler),this._mapContainer?.removeEventListener("keydown",this._escapeHandler),this._state="inactive"}whenComplete(){return(_(this,we)??I(this,we,jn())).promise}_createTooltip(t){const n=document.createElement("div");n.className="editing-tooltip editing-tooltip-hidden",n.textContent=this._intl.formatMessage({id:"tooltip.begin"});const s=new bt({element:n,offset:[15,0],positioning:"center-left"}),i=t.on("pointermove",r=>{r.dragging||s.setPosition(r.coordinate)});return t.addOverlay(s),{overlay:s,element:n,destroy(){ce(i),t.removeOverlay(s)}}}}we=new WeakMap;class Ql{_serviceOptions;_workflows;constructor(e){this._serviceOptions=e,this._workflows=new Map}start(e,t){if(!t||!e||!e.id)throw new Error("Map, mapId or url is undefined.");const n=e.id;let s=this._workflows.get(n);if(s)throw new Error("EditingWorkflow could not be started. EditingWorkflow already in progress for this map.");return s=new Jl({map:e,ogcApiFeatureLayerUrl:t,polygonDrawStyle:this._serviceOptions.properties.polygonDrawStyle,httpService:this._serviceOptions.references.httpService,intl:this._serviceOptions.intl}),this._workflows.set(n,s),this._connectToWorkflowComplete(s,n),s}stop(e){const t=this._workflows.get(e);if(t)t.stop();else return new Error("No workflow found for mapId: "+e)}reset(e){const t=this._workflows.get(e);if(t)t.reset();else return new Error("No workflow found for mapId: "+e)}_connectToWorkflowComplete(e,t){e.whenComplete().finally(()=>{this._workflows.delete(t)})}}new ze([407354,5754673]),new ze([404740,5757893]);var Le,Se,Ct,Et,Pt,Io;class ec extends No{constructor(t,n,s){super();A(this,Pt);$(this,"label");A(this,Le,{kind:"available"});A(this,Se,void 0);A(this,Ct,void 0);A(this,Et,void 0);this.label=n,I(this,Se,t),I(this,Et,s),W(this,Pt,Io).call(this),I(this,Ct,_(this,Se).on("change:visible",()=>{W(this,Pt,Io).call(this)}))}destroy(){ce(_(this,Ct))}get status(){return _(this,Le)}async select(t,n){if(t.type!=="extent")throw new Error(`Unsupported selection kind: ${t.type}`);if(_(this,Le).kind!=="available"||_(this,Se).getSource()===null)return[];const s=[];_(this,Se).getSource().forEachFeatureIntersectingExtent(t.extent,a=>{if(!a.getGeometry())return;const c={...a.getProperties()};delete c.geometries;const d={id:a.getId()?.toString()||Xn(),geometry:a.getGeometry(),properties:c};s.push(d)});const i=s.filter(a=>a!=null);return i.length>n.maxResults?i.slice(0,n.maxResults):i}}Le=new WeakMap,Se=new WeakMap,Ct=new WeakMap,Et=new WeakMap,Pt=new WeakSet,Io=function(){const n=_(this,Se).getVisible()?{kind:"available"}:{kind:"unavailable",reason:_(this,Et)};n.kind!==_(this,Le).kind&&(I(this,Le,n),this.emit("changed:status"))};var Mt;class tc{constructor({intl:e}){A(this,Mt,void 0);I(this,Mt,e)}createSelectionSource(e){return new ec(e.vectorLayer,e.label,_(this,Mt).formatMessage({id:"layerNotVisibleReason"}))}}Mt=new WeakMap;const Ie=de("local-storage"),oc=0,le={CORRUPTED_DATA:"local-storage:corrupted-data",INVALID_PATH:"local-storage:invalid-path",INVALID_VALUE:"local-storage:invalid-value",NOT_SUPPORTED:"local-storage:not-supported",INTERNAL:"local-storage:internal-error"};var Ye,se,_e,Xe,ie,Zt,ks,Jt,Cs,Ae,mt,xe,Ve,Qt,Es;class nc{constructor(e){A(this,Zt);A(this,Jt);A(this,Ae);A(this,xe);A(this,Qt);A(this,Ye,void 0);A(this,se,{});A(this,_e,void 0);A(this,Xe,void 0);A(this,ie,void 0);I(this,Ye,ac(e.properties)),I(this,_e,lc()),_(this,_e)&&(W(this,Jt,Cs).call(this),I(this,Xe,W(this,Qt,Es).call(this)))}destroy(){_(this,ie)&&(clearTimeout(_(this,ie)),I(this,ie,void 0)),_(this,_e)&&W(this,Ae,mt).call(this)}get isSupported(){return!!_(this,Xe)}get(e){return W(this,xe,Ve).call(this).get(e)}set(e,t){return W(this,xe,Ve).call(this).set(e,t)}remove(e){return W(this,xe,Ve).call(this).remove(e)}removeAll(){return W(this,xe,Ve).call(this).removeAll()}getNamespace(e){return W(this,xe,Ve).call(this).getNamespace(e)}}Ye=new WeakMap,se=new WeakMap,_e=new WeakMap,Xe=new WeakMap,ie=new WeakMap,Zt=new WeakSet,ks=function(){_(this,ie)&&clearTimeout(_(this,ie)),I(this,ie,setTimeout(()=>{I(this,ie,void 0),W(this,Ae,mt).call(this)},oc))},Jt=new WeakSet,Cs=function(){try{const e=_(this,_e);if(!e)throw new ae(le.INTERNAL,"Local storage is not available.");const t=e.getItem(_(this,Ye));if(t==null){I(this,se,{}),W(this,Ae,mt).call(this);return}try{const n=JSON.parse(t);if(!nt(n))throw new ae(le.CORRUPTED_DATA,"Persisted value should be an object.");I(this,se,n)}catch(n){Ie.warn("Invalid persisted data, reverting to default.",n),I(this,se,{}),W(this,Ae,mt).call(this)}}catch(e){Ie.error("Failed to load from local storage",e)}},Ae=new WeakSet,mt=function(){try{const e=_(this,_e);if(!e)throw new ae(le.INTERNAL,"Local storage is not available.");const t=JSON.stringify(_(this,se));e.setItem(_(this,Ye),t)}catch(e){Ie.error("Failed to save to local storage",e)}},xe=new WeakSet,Ve=function(){const e=_(this,Xe);if(!e)throw new ae(le.NOT_SUPPORTED,"Local storage is not supported by this browser.");return e},Qt=new WeakSet,Es=function(){const e={getByPath:t=>pn(sc(_(this,se),t)),setByPath:(t,n)=>{if(!rc(n))throw new ae(le.INVALID_VALUE,"The value is not supported by local storage.");if(n=pn(n),t.length===0){if(!nt(n))throw new ae(le.INVALID_VALUE,"The root value must be a plain object.");I(this,se,n)}else ic(_(this,se),t,n);W(this,Zt,ks).call(this)}};return new Ho([],e)};class Ho{path;access;constructor(e,t){this.path=e,this.access=t}get(e){return this.access.getByPath([...this.path,e])}set(e,t){this.access.setByPath([...this.path,e],t)}remove(e){this.access.setByPath([...this.path,e],void 0)}removeAll(){this.access.setByPath(this.path,{})}getNamespace(e){const t=this.get(e);if(t===void 0)this.set(e,{});else if(!nt(t))throw new ae(le.INVALID_PATH,`Cannot use '${e}' as a namespace because it is not associated with an object.`);return new Ho(this.path.concat([e]),this.access)}}const hn="trails-state";function sc(o,e){let t=o;for(const n of e){if(!nt(t))throw new ae(le.INVALID_PATH,`Cannot get nested property '${n}' because the parent is no object.`);t=t[n]}return t}function ic(o,e,t){if(!e.length)throw new ae(le.INTERNAL,"Path must not be empty.");let n=o;for(let i=0,r=e.length-1;i"u"){Ie.warn("Local storage is not supported by this browser.");return}try{const o=globalThis.localStorage;if(!o){Ie.warn("Local storage is not supported by this browser.");return}return o}catch(o){Ie.warn("Local storage is not supported by this browser.",o);return}}function pn(o){return o!=null&&(o=JSON.parse(JSON.stringify(o))),o}const cc={"ol-map":{name:"ol-map",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:dl,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{vectorSourceFactory:{name:"ogc-features.VectorSourceFactory",qualifier:void 0,all:!1}}},AppModel:{name:"AppModel",clazz:zl,provides:[{name:"ol-app.AppModel",qualifier:void 0}],references:{ogcSearchSourceFactory:{name:"ogc-features.SearchSourceFactory",qualifier:void 0,all:!1},vectorSelectionSourceFactory:{name:"selection.VectorSelectionSourceFactory",qualifier:void 0,all:!1},httpService:{name:"http.HttpService",qualifier:void 0,all:!1},mapRegistry:{name:"map.MapRegistry",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1},{name:"ol-app.AppModel",qualifier:void 0,all:!1},{name:"notifier.NotificationService",qualifier:void 0,all:!1},{name:"editing.EditingService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:Ni,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:Wl,provides:[{name:"notifier.NotificationService",qualifier:"notifier.NotificationService"}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:Fi,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/experimental-layout-sidebar":{name:"@open-pioneer/experimental-layout-sidebar",services:{},ui:{references:[]},properties:{}},"@open-pioneer/coordinate-viewer":{name:"@open-pioneer/coordinate-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/ogc-features":{name:"@open-pioneer/ogc-features",services:{VectorSourceFactory:{name:"VectorSourceFactory",clazz:wr,provides:[{name:"ogc-features.VectorSourceFactory",qualifier:void 0}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}},SearchSourceFactory:{name:"SearchSourceFactory",clazz:Sr,provides:[{name:"ogc-features.SearchSourceFactory",qualifier:void 0}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{}},"@open-pioneer/overview-map":{name:"@open-pioneer/overview-map",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-viewer":{name:"@open-pioneer/scale-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-bar":{name:"@open-pioneer/scale-bar",services:{},ui:{references:[]},properties:{}},"@open-pioneer/result-list":{name:"@open-pioneer/result-list",services:{},ui:{references:[]},properties:{}},"@open-pioneer/geolocation":{name:"@open-pioneer/geolocation",services:{},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/legend":{name:"@open-pioneer/legend",services:{},ui:{references:[]},properties:{}},"@open-pioneer/editing":{name:"@open-pioneer/editing",services:{EditingServiceImpl:{name:"EditingServiceImpl",clazz:Ql,provides:[{name:"editing.EditingService",qualifier:void 0}],references:{mapRegistry:{name:"map.MapRegistry",qualifier:void 0,all:!1},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{polygonDrawStyle:{value:{"stroke-color":"yellow","stroke-width":2,"fill-color":"rgba(0, 0, 0, 0.1)","circle-radius":5,"circle-fill-color":"rgba(0, 0, 255, 0.2)","circle-stroke-color":"rgba(0, 0, 255, 0.7)","circle-stroke-width":2},required:!1}}},"@open-pioneer/measurement":{name:"@open-pioneer/measurement",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-navigation":{name:"@open-pioneer/map-navigation",services:{},ui:{references:[]},properties:{}},"@open-pioneer/printing":{name:"@open-pioneer/printing",services:{},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/search":{name:"@open-pioneer/search",services:{},ui:{references:[]},properties:{}},"@open-pioneer/selection":{name:"@open-pioneer/selection",services:{VectorSelectionSourceFactory:{name:"VectorSelectionSourceFactory",clazz:tc,provides:[{name:"selection.VectorSelectionSourceFactory",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/spatial-bookmarks":{name:"@open-pioneer/spatial-bookmarks",services:{},ui:{references:[{name:"local-storage.LocalStorageService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/toc":{name:"@open-pioneer/toc",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/local-storage":{name:"@open-pioneer/local-storage",services:{LocalStorageServiceImpl:{name:"LocalStorageServiceImpl",clazz:nc,provides:[{name:"local-storage.LocalStorageService",qualifier:"local-storage.LocalStorageService"}],references:{}}},ui:{references:[]},properties:{storageId:{value:null,required:!1}}}},dc=`.search-box{position:absolute;width:500px;max-width:100%;z-index:1}.spatial-bookmarks{max-height:300px}:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.editing-tooltip{position:relative;background:rgba(255,255,255,.8);border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.editing-tooltip-hidden{visibility:hidden}.measurement-tooltip{position:relative;background:rgba(255,255,255,.8);border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.measurement-active-tooltip{background:rgba(0,0,0,.9);border-radius:4px;border-color:#000000e6;opacity:.9;color:#fff}.measurement-finished-tooltip{background-color:#4cb3ffe6;color:#000;border:1px solid white}.measurement-active-tooltip:before,.measurement-finished-tooltip:before{border-top:6px solid rgba(0,0,0,.9);border-right:6px solid transparent;border-left:6px solid transparent;content:"";position:absolute;bottom:-6px;margin-left:-7px;left:50%}.measurement-finished-tooltip:before{border-top-color:#4cb3ff}.printing-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10000;-webkit-user-select:none;user-select:none;pointer-events:all;cursor:wait;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:#b4b4b4cc}.printing-overlay-status{flex:1 1 auto;font-size:1.5em;text-align:center}.search-component .chakra-divider{display:none}.search-component .search-highlighted-match{font-weight:700}.search-component .search-value-container{cursor:text;padding-left:30px!important}.search-component .search-invisible{display:none}.selection-drag-box{background-color:#ffffff4d!important;border:3px solid var(--chakra-colors-background_primary)!important}.selection-tooltip{position:relative;background:rgba(255,255,255,.8);border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.selection .react-select{cursor:default}.map-container .selection-active{cursor:crosshair}.map-container .selection-inactive{cursor:no-drop}.selection-source-value.selection-source-value--disabled{opacity:.4}.selection-source-value.selection-source-value--disabled span{margin:0 6px 0 0}.layout-sidebar{height:100%;position:absolute;top:0}.layout-sidebar[data-theme=light]{background-color:var(--chakra-colors-whiteAlpha-700)}.layout-sidebar[data-theme=dark]{background-color:var(--chakra-colors-blackAlpha-700)}.layout-sidebar .layout-sidebar-main{transition:width .3s ease-out 0s;border-right:1px solid var(--chakra-colors-chakra-border-color)}.layout-sidebar .layout-sidebar-content{overflow:auto;transition:width .3s ease-out 0s}.layout-sidebar .layout-sidebar-content .content-section .content-header{font-size:1.5em;background-color:var(--chakra-colors-blackAlpha-500);padding:.5rem 1rem}.layout-sidebar .layout-sidebar-content .content-section .content-body{padding:1rem}.overview-map .ol-overviewmap{position:relative;height:100%;width:100%}.overview-map .ol-overviewmap:not(.ol-collapsed){border:1px solid black}.overview-map .ol-overviewmap .ol-overviewmap-map{border:none;width:100%;height:100%}.overview-map .ol-overviewmap .ol-overviewmap-box{border:2px solid red}.scale-bar .ol-scale-bar{margin-bottom:8px;margin-right:8px}.scale-bar .ol-scale-bar,.scale-bar .ol-scale-line{position:relative;bottom:0;left:0;background:none}.scale-bar .ol-scale-bar .ol-scale-bar-inner,.scale-bar .ol-scale-bar .ol-scale-line-inner,.scale-bar .ol-scale-line .ol-scale-bar-inner,.scale-bar .ol-scale-line .ol-scale-line-inner{color:var(--chakra-white);border-color:var(--chakra-white)}.result-list-no-data-message{text-align:center;margin-top:50px;font-weight:700;font-size:larger}.result-list-table th,.result-list-table td{overflow-wrap:break-word}.result-list-table.result-list-table--is-resizing *{cursor:col-resize}.result-list-table thead{position:sticky;top:0;z-index:1;background:var(--chakra-colors-background_body)}.result-list-table th{position:relative;border-right-width:thin}.result-list-table tbody tr:hover{background:var(--chakra-colors-background_light)}.result-list-table .result-list-resizer{position:absolute;top:0;height:100%;right:0;width:8px;background:var(--chakra-colors-trails-100);transform:scaleX(.25);cursor:col-resize;-webkit-user-select:none;user-select:none;touch-action:none;padding-left:0}.result-list-table th:last-child .result-list-resizer{width:8px;transform:translate(50%) scaleX(.25)}.result-list-table th .result-list-resizer.result-list-resizer--is-resizing{background:var(--chakra-colors-trails-500);transform:scale(1)}.result-list-table th .result-list-resizer:hover{transform:scale(1)} +`,uc=["en","de"];function hc(o){switch(o){case"en":return Ht(()=>import("./c2466a6c428e.js"),[],import.meta.url).then(e=>e.default);case"de":return Ht(()=>import("./3299043505b3.js"),[],import.meta.url).then(e=>e.default)}throw new Error(`Unsupported locale: '${o}'`)}const pc=Js(dc),fc=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:hc,locales:uc,packages:cc,styles:pc},Symbol.toStringTag,{value:"Module"})),gc="@open-pioneer/coordinate-viewer",mc=ue.bind(void 0,gc),vc=4,bc=o=>{const{mapId:e,precision:t,displayProjectionCode:n}=o,{containerProps:s}=oe("coordinate-viewer",o),{map:i}=Y(e),r=i?.olMap,a=fs(r)?.getCode()??"";let{coordinates:c}=wc(r);c=c&&n?_c(c,a,n):c;const d=yc(c,t),u=n||a,h=d?d+" "+u:"";return l.jsx(N,{...s,children:l.jsx(fe,{className:"coordinate-viewer-text",children:h})})};function yc(o,e){const t=mc();return o?Sc(o,e,t):""}function wc(o){const[e,t]=p.useState();return p.useEffect(()=>{if(!o)return;const n=o.on("pointermove",s=>{t(s.coordinate)});return()=>ce(n)},[o]),{coordinates:e}}function Sc(o,e,t){if(o[0]==null||o[1]==null)return"";const n=e??vc,[s,i]=o,r=t.formatNumber(s,{maximumFractionDigits:n,minimumFractionDigits:n}),a=t.formatNumber(i,{maximumFractionDigits:n,minimumFractionDigits:n});return r+" "+a}function _c(o,e,t){return Vi(o,e,t)}function fn(o){const e=p.useRef(null);return p.useLayoutEffect(()=>{e.current=o}),p.useCallback((...n)=>{const s=e.current;return s(...n)},[])}const xc="@open-pioneer/notifier",kc=rt.bind(void 0,xc);var Ps=is({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"}),Cc=is({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"});const Ec=!1;function Pc(o){const{position:e="top-right"}=o,t=Tr(),n=kc("notifier.NotificationService"),[s,i]=p.useState(!Ec),r=fn(c=>{const d=c.level==="error"?l.jsx(Ps,{h:"100%",w:"100%"}):void 0;t({position:e,title:c.title,description:c.message||null,status:c.level,isClosable:!0,duration:c.displayDuration??null,icon:d})}),a=fn(()=>{t.closeAll()});return p.useEffect(()=>{const c=n.registerHandler({showNotification:r,closeAll:a});return()=>c.destroy()},[s,n,r,a]),l.jsx(l.Fragment,{})}const bo=.75,Gt=.1;let Mc=class extends Zn{constructor(e){e=e||{},super({element:document.createElement("div"),render:e.render,target:e.target}),this.boundHandleRotationChanged_=this.handleRotationChanged_.bind(this),this.collapsed_=e.collapsed!==void 0?e.collapsed:!0,this.collapsible_=e.collapsible!==void 0?e.collapsible:!0,this.collapsible_||(this.collapsed_=!1),this.rotateWithView_=e.rotateWithView!==void 0?e.rotateWithView:!1,this.viewExtent_=void 0;const t=e.className!==void 0?e.className:"ol-overviewmap",n=e.tipLabel!==void 0?e.tipLabel:"Overview map",s=e.collapseLabel!==void 0?e.collapseLabel:"‹";typeof s=="string"?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=s):this.collapseLabel_=s;const i=e.label!==void 0?e.label:"›";typeof i=="string"?(this.label_=document.createElement("span"),this.label_.textContent=i):this.label_=i;const r=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,a=document.createElement("button");a.setAttribute("type","button"),a.title=n,a.appendChild(r),a.addEventListener(qn.CLICK,this.handleClick_.bind(this),!1),this.ovmapDiv_=document.createElement("div"),this.ovmapDiv_.className="ol-overviewmap-map",this.view_=e.view;const c=new Gi({view:e.view,controls:new en,interactions:new en});this.ovmap_=c,e.layers&&e.layers.forEach(function(O){c.addLayer(O)});const d=document.createElement("div");d.className="ol-overviewmap-box",d.style.boxSizing="border-box",this.boxOverlay_=new bt({position:[0,0],positioning:"center-center",element:d}),this.ovmap_.addOverlay(this.boxOverlay_);const u=t+" "+Jn+" "+Bi+(this.collapsed_&&this.collapsible_?" "+tn:"")+(this.collapsible_?"":" ol-uncollapsible"),h=this.element;h.className=u,h.appendChild(this.ovmapDiv_),h.appendChild(a);const f=this,g=this.boxOverlay_,v=this.boxOverlay_.getElement(),S=function(O){return{clientX:O.clientX,clientY:O.clientY}},L=function(O){const T=S(O),X=c.getEventCoordinateInternal(T);g.setPosition(X)},E=function(O){const T=c.getEventCoordinateInternal(O);f.getMap().getView().setCenterInternal(T),window.removeEventListener("mousemove",L),window.removeEventListener("mouseup",E)};v.addEventListener("mousedown",function(){window.addEventListener("mousemove",L),window.addEventListener("mouseup",E)})}setMap(e){const t=this.getMap();if(e!==t){if(t){const n=t.getView();n&&this.unbindView_(n),this.ovmap_.setTarget(null)}if(super.setMap(e),e){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push(zn(e,zi.PROPERTYCHANGE,this.handleMapPropertyChange_,this));const n=e.getView();n&&(this.bindView_(n),n.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}}handleMapPropertyChange_(e){if(e.key===ho.VIEW){const t=e.oldValue;t&&this.unbindView_(t);const n=this.getMap().getView();this.bindView_(n)}else!this.ovmap_.isRendered()&&(e.key===ho.TARGET||e.key===ho.SIZE)&&this.ovmap_.updateSize()}bindView_(e){if(!this.view_){const t=new Hn({projection:e.getProjection()});this.ovmap_.setView(t)}e.addChangeListener(on.ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_()}unbindView_(e){e.removeChangeListener(on.ROTATION,this.boundHandleRotationChanged_)}handleRotationChanged_(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())}validateExtent_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const n=e.getSize(),i=e.getView().calculateExtentInternal(n);if(this.viewExtent_&&Ui(i,this.viewExtent_))return;this.viewExtent_=i;const r=t.getSize(),c=t.getView().calculateExtentInternal(r),d=t.getPixelFromCoordinateInternal(Wi(i)),u=t.getPixelFromCoordinateInternal(Hi(i)),h=Math.abs(d[0]-u[0]),f=Math.abs(d[1]-u[1]),g=r[0],v=r[1];hg*bo||f>v*bo?this.resetExtent_():Wn(c,i)||this.recenter_()}resetExtent_(){const e=this.getMap(),t=this.ovmap_,n=e.getSize(),i=e.getView().calculateExtentInternal(n),r=t.getView(),a=Math.log(bo/Gt)/Math.LN2,c=1/(Math.pow(2,a/2)*Gt);$i(i,c),r.fitInternal(qi(i))}recenter_(){const e=this.getMap(),t=this.ovmap_,n=e.getView();t.getView().setCenterInternal(n.getCenterInternal())}updateBox_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const n=e.getSize(),s=e.getView(),i=t.getView(),r=this.rotateWithView_?0:-s.getRotation(),a=this.boxOverlay_,c=this.boxOverlay_.getElement(),d=s.getCenterInternal(),u=s.getResolution(),h=i.getResolution(),f=n[0]*u/h,g=n[1]*u/h;if(a.setPosition(d),c){c.style.width=f+"px",c.style.height=g+"px";const v="rotate("+r+"rad)";c.style.transform=v}}updateBoxAfterOvmapIsRendered_(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=Ki(this.ovmap_,Un.POSTRENDER,function(e){delete this.ovmapPostrenderKey_,this.updateBox_()},this))}handleClick_(e){e.preventDefault(),this.handleToggle_()}handleToggle_(){this.element.classList.toggle(tn),this.collapsed_?nn(this.collapseLabel_,this.label_):nn(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;const e=this.ovmap_;if(!this.collapsed_){if(e.isRendered()){this.viewExtent_=void 0,e.render();return}e.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}}getCollapsible(){return this.collapsible_}setCollapsible(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),!e&&this.collapsed_&&this.handleToggle_())}setCollapsed(e){!this.collapsible_||this.collapsed_===e||this.handleToggle_()}getCollapsed(){return this.collapsed_}getRotateWithView(){return this.rotateWithView_}setRotateWithView(e){this.rotateWithView_!==e&&(this.rotateWithView_=e,this.getMap().getView().getRotation()!==0&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))}getOverviewMap(){return this.ovmap_}render(e){this.validateExtent_(),this.updateBox_()}};const Lc=Mc,yo="units",Ac=[1,2,5],ut=25.4/.28;class Tc extends Zn{constructor(e){e=e||{};const t=document.createElement("div");t.style.pointerEvents="none",super({element:t,render:e.render,target:e.target}),this.on,this.once,this.un;const n=e.className!==void 0?e.className:e.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=n+"-inner",this.element.className=n+" "+Jn,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=e.minWidth!==void 0?e.minWidth:64,this.maxWidth_=e.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(yo,this.handleUnitsChanged_),this.setUnits(e.units||"metric"),this.scaleBar_=e.bar||!1,this.scaleBarSteps_=e.steps||4,this.scaleBarText_=e.text||!1,this.dpi_=e.dpi||void 0}getUnits(){return this.get(yo)}handleUnitsChanged_(){this.updateElement_()}setUnits(e){this.set(yo,e)}setDpi(e){this.dpi_=e}updateElement_(){const e=this.viewState_;if(!e){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const t=e.center,n=e.projection,s=this.getUnits(),i=s=="degrees"?"degrees":"m";let r=_o(n,e.resolution,t,i);const a=this.minWidth_*(this.dpi_||ut)/ut,c=this.maxWidth_!==void 0?this.maxWidth_*(this.dpi_||ut)/ut:void 0;let d=a*r,u="";if(s=="degrees"){const T=Yi.degrees;d*=T,d=c){f=S,g=L,v=E;break}else if(g>=a)break;S=f,L=g,E=v,++h}const O=this.scaleBar_?this.createScaleBar(g,f,u):f.toFixed(v<0?-v:0)+" "+u;this.renderedHTML_!=O&&(this.innerElement_.innerHTML=O,this.renderedHTML_=O),this.renderedWidth_!=g&&(this.innerElement_.style.width=g+"px",this.renderedWidth_=g),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(e,t,n){const s=this.getScaleForResolution(),i=s<1?Math.round(1/s).toLocaleString()+" : 1":"1 : "+Math.round(s).toLocaleString(),r=this.scaleBarSteps_,a=e/r,c=[this.createMarker("absolute")];for(let u=0;u
`+this.createMarker("relative")+(u%2===0||r===2?this.createStepText(u,e,!1,t,n):"")+"")}return c.push(this.createStepText(r,e,!0,t,n)),(this.scaleBarText_?`
`+i+"
":"")+c.join("")}createMarker(e){return`
`}createStepText(e,t,n,s,i){const a=(e===0?0:Math.round(s/this.scaleBarSteps_*e*100)/100)+(e===0?"":" "+i),c=e===0?-3:t/this.scaleBarSteps_*-1,d=e===0?0:t/this.scaleBarSteps_*2;return`
`+a+"
"}getScaleForResolution(){const e=_o(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m"),t=this.dpi_||ut,n=1e3/25.4;return e*n*t}render(e){const t=e.frameState;t?this.viewState_=t.viewState:this.viewState_=null,this.updateElement_()}}const Ms=Tc,Ic=o=>{const{mapId:e,displayMode:t="line"}=o,{containerProps:n}=oe("scale-bar",o),{map:s}=Y(e),i=p.useRef(null);return p.useEffect(()=>{if(i.current&&s){const r=s.olMap,a=new Ms({units:"metric",target:i.current,bar:t==="bar"});return r.addControl(a),()=>{r.removeControl(a)}}},[t,s]),l.jsx(N,{...n,ref:i})},Rc="@open-pioneer/scale-viewer",Oc=ue.bind(void 0,Rc),Dc=o=>{const{mapId:e}=o,{containerProps:t}=oe("scale-viewer",o),{map:n}=Y(e),s=Oc(),i=sl(n?.olMap),r=i?s.formatNumber(i):void 0;return l.jsx(N,{...t,children:r&&l.jsxs(fe,{children:["1:",r]})})},Ls="ol-map",Ce=rt.bind(void 0,Ls),Ee=ue.bind(void 0,Ls);let jc=0;function Nc(o,e){const t=`atom${++jc}`,n={toString:()=>t};return typeof o=="function"?n.read=o:(n.init=o,n.read=function(s){return s(this)},n.write=function(s,i,r){return i(this,typeof r=="function"?r(s(this)):r)}),e&&(n.write=e),n}const gn=o=>"init"in o,mn=o=>!!o.write,qt=new WeakMap,Fc=(o,e)=>{qt.set(o,e),o.catch(()=>{}).finally(()=>qt.delete(o))},vn=(o,e)=>{const t=qt.get(o);t&&(qt.delete(o),t(e))},bn=(o,e)=>{o.status="fulfilled",o.value=e},yn=(o,e)=>{o.status="rejected",o.reason=e},Vc=o=>typeof o?.then=="function",ht=(o,e)=>!!o&&"v"in o&&"v"in e&&Object.is(o.v,e.v),wn=(o,e)=>!!o&&"e"in o&&"e"in e&&Object.is(o.e,e.e),Fe=o=>!!o&&"v"in o&&o.v instanceof Promise,Gc=(o,e)=>"v"in o&&"v"in e&&o.v.orig&&o.v.orig===e.v.orig,Bt=o=>{if("e"in o)throw o.e;return o.v},$o=()=>{const o=new WeakMap,e=new WeakMap,t=new Map;let n,s;const i=b=>o.get(b),r=(b,y)=>{const w=o.get(b);if(o.set(b,y),t.has(b)||t.set(b,w),Fe(w)){const m="v"in y?y.v instanceof Promise?y.v:Promise.resolve(y.v):Promise.reject(y.e);w.v!==m&&vn(w.v,m)}},a=(b,y,w)=>{const m=new Map;let x=!1;w.forEach((M,k)=>{!M&&k===b&&(M=y),M&&(m.set(k,M),y.d.get(k)!==M&&(x=!0))}),(x||y.d.size!==m.size)&&(y.d=m)},c=(b,y,w)=>{const m=i(b),x={d:m?.d||new Map,v:y};if(w&&a(b,x,w),ht(m,x)&&m.d===x.d)return m;if(Fe(m)&&Fe(x)&&Gc(m,x)){if(m.d===x.d)return m;x.v=m.v}return r(b,x),x},d=(b,y,w,m)=>{if(Vc(y)){let x;const M=()=>{const P=i(b);if(!Fe(P)||P.v!==k)return;const V=c(b,k,w);e.has(b)&&P.d!==V.d&&Z(b,V,P.d)},k=new Promise((P,V)=>{let j=!1;y.then(z=>{j||(j=!0,bn(k,z),P(z),M())},z=>{j||(j=!0,yn(k,z),V(z),M())}),x=z=>{j||(j=!0,z.then(q=>bn(k,q),q=>yn(k,q)),P(z))}});return k.orig=y,k.status="pending",Fc(k,P=>{P&&x(P),m?.()}),c(b,k,w)}return c(b,y,w)},u=(b,y,w)=>{const m=i(b),x={d:m?.d||new Map,e:y};return w&&a(b,x,w),wn(m,x)&&m.d===x.d?m:(r(b,x),x)},h=(b,y)=>{const w=i(b);if(!y&&w&&(e.has(b)||Array.from(w.d).every(([j,z])=>{if(j===b)return!0;const q=h(j);return q===z||ht(q,z)})))return w;const m=new Map;let x=!0;const M=j=>{if(j===b){const q=i(j);if(q)return m.set(j,q),Bt(q);if(gn(j))return m.set(j,void 0),j.init;throw new Error("no atom init")}const z=h(j);return m.set(j,z),Bt(z)};let k,P;const V={get signal(){return k||(k=new AbortController),k.signal},get setSelf(){return!P&&mn(b)&&(P=(...j)=>{if(!x)return O(b,...j)}),P}};try{const j=b.read(M,V);return d(b,j,m,()=>k?.abort())}catch(j){return u(b,j,m)}finally{x=!1}},f=b=>Bt(h(b)),g=b=>{let y=e.get(b);return y||(y=T(b)),y},v=(b,y)=>!y.l.size&&(!y.t.size||y.t.size===1&&y.t.has(b)),S=b=>{const y=e.get(b);y&&v(b,y)&&X(b)},L=b=>{const y=new Map,w=new WeakMap,m=k=>{var P;const V=new Set((P=e.get(k))==null?void 0:P.t);return t.forEach((j,z)=>{var q;(q=i(z))!=null&&q.d.has(k)&&V.add(z)}),V},x=k=>{m(k).forEach(P=>{P!==k&&(y.set(P,(y.get(P)||new Set).add(k)),w.set(P,(w.get(P)||0)+1),x(P))})};x(b);const M=k=>{m(k).forEach(P=>{var V;if(P!==k){let j=w.get(P);if(j&&w.set(P,--j),!j){let z=!!((V=y.get(P))!=null&&V.size);if(z){const q=i(P),zs=h(P,!0);z=!ht(q,zs)}z||y.forEach(q=>q.delete(P))}M(P)}})};M(b)},E=(b,...y)=>{let w=!0;const m=k=>Bt(h(k)),x=(k,...P)=>{let V;if(k===b){if(!gn(k))throw new Error("atom not writable");const j=i(k),z=d(k,P[0]);ht(j,z)||L(k)}else V=E(k,...P);if(!w){const j=R()}return V},M=b.write(m,x,...y);return w=!1,M},O=(b,...y)=>{const w=E(b,...y),m=R();return w},T=(b,y,w)=>{var m;const x=w||[];(m=i(b))==null||m.d.forEach((k,P)=>{const V=e.get(P);V?V.t.add(b):P!==b&&T(P,b,x)}),h(b);const M={t:new Set(y&&[y]),l:new Set};if(e.set(b,M),mn(b)&&b.onMount){const{onMount:k}=b;x.push(()=>{const P=k((...V)=>O(b,...V));P&&(M.u=P)})}return w||x.forEach(k=>k()),M},X=b=>{var y;const w=(y=e.get(b))==null?void 0:y.u;w&&w(),e.delete(b);const m=i(b);m&&(Fe(m)&&vn(m.v),m.d.forEach((x,M)=>{if(M!==b){const k=e.get(M);k&&(k.t.delete(b),v(M,k)&&X(M))}}))},Z=(b,y,w)=>{const m=new Set(y.d.keys());w?.forEach((x,M)=>{if(m.has(M)){m.delete(M);return}const k=e.get(M);k&&(k.t.delete(b),v(M,k)&&X(M))}),m.forEach(x=>{const M=e.get(x);M?M.t.add(b):e.has(b)&&T(x,b)})},R=()=>{let b;for(;t.size;){const y=Array.from(t);t.clear(),y.forEach(([w,m])=>{const x=i(w);if(x){const M=e.get(w);M&&x.d!==m?.d&&Z(w,x,m?.d),M&&!(!Fe(m)&&(ht(m,x)||wn(m,x)))&&M.l.forEach(k=>k())}})}};return{get:f,set:O,sub:(b,y)=>{const w=g(b),m=R(),x=w.l;return x.add(y),()=>{x.delete(y),S(b)}}}};let wo;const Bc=()=>(wo||(wo=$o()),wo),As=p.createContext(void 0),zc=o=>{const e=p.useContext(As);return o?.store||e||Bc()},Uc=({children:o,store:e})=>{const t=p.useRef();return!e&&!t.current&&(t.current=$o()),p.createElement(As.Provider,{value:e||t.current},o)},Wc=o=>typeof o?.then=="function",Hc=Dn.use||(o=>{if(o.status==="pending")throw o;if(o.status==="fulfilled")return o.value;throw o.status==="rejected"?o.reason:(o.status="pending",o.then(e=>{o.status="fulfilled",o.value=e},e=>{o.status="rejected",o.reason=e}),o)});function $c(o,e){const t=zc(e),[[n,s,i],r]=p.useReducer(d=>{const u=t.get(o);return Object.is(d[0],u)&&d[1]===t&&d[2]===o?d:[u,t,o]},void 0,()=>[t.get(o),t,o]);let a=n;(s!==t||i!==o)&&(r(),a=t.get(o));const c=e?.delay;return p.useEffect(()=>{const d=t.sub(o,()=>{if(typeof c=="number"){setTimeout(r,c);return}r()});return r(),d},[t,o,c]),p.useDebugValue(a),Wc(a)?Hc(a):a}const Ts="@open-pioneer/spatial-bookmarks",qc=rt.bind(void 0,Ts),Kc=ue.bind(void 0,Ts),be=de("spatial-bookmark:SpatialBookmarkViewModel");class Yc{map;packageNamespace;writableBookmarks=Nc([]);stopBookmarksListener;store;get bookmarks(){return this.writableBookmarks}constructor(e,t){this.map=e,this.packageNamespace=t.getNamespace("spatial-bookmarks"),this.store=$o(),this.loadState(),this.stopBookmarksListener=this.store.sub(this.bookmarks,()=>{this.saveState()})}destroy(){this.stopBookmarksListener()}createBookmark(e){const t=this.map.olMap,n=t.getView().calculateExtent(),s=t.getView().getProjection().getCode(),i={minX:n[0],minY:n[1],maxX:n[2],maxY:n[3]},r={id:Xn(),title:e,extent:i,projection:s};be.debug("Created a new bookmark",r);const a=this.writableBookmarks;this.store.set(a,[...this.store.get(a),r])}activateBookmark(e){be.debug("Activating bookmark",e);const t=this.getBookmarkExtent(e);be.debug("Attempting to apply extent",t),this.applyExtent(t)}deleteBookmark(e){be.debug("Deleting bookmark",e);const t=this.writableBookmarks;this.store.set(t,[...this.store.get(t).filter(n=>n.id!==e)])}deleteAllBookmarks(){be.debug("Deleting all bookmarks"),this.store.set(this.writableBookmarks,[])}loadState(){be.debug("Restoring bookmarks from local storage");const e=this.packageNamespace.get("bookmarks")??[];try{Xc(e),this.store.set(this.writableBookmarks,e)}catch(t){be.error("Bookmarks data in local storage is invalid, resetting to default value.",t),this.store.set(this.writableBookmarks,[]),this.saveState()}}saveState(){be.debug("Saving bookmarks to local storage"),this.packageNamespace.set("bookmarks",this.store.get(this.bookmarks))}getBookmarkExtent(e){const n=this.map.olMap.getView(),s=e.extent,i=[s.minX,s.minY,s.maxX,s.maxY],r=n.getProjection(),a=e.projection;return Xi(i,a,r)}applyExtent(e){const n=this.map.olMap.getView(),s=Zi(e),i=n.getResolutionForExtent(e);n.setCenter(s),n.setResolution(i)}}function Xc(o){if(!Array.isArray(o))throw new Error("Expected bookmarks from local storage to be an array.");for(const e of o)Zc(e)}function Zc(o){if(!o||typeof o!="object")throw new Error("Expected bookmark from local storage to be an object.");const e=o;if(typeof e.id!="string")throw new Error("Bookmark does not have a valid id.");if(typeof e.title!="string")throw new Error("Bookmark does not have a valid title.");if(Jc(e.extent),typeof e.projection!="string")throw new Error("Bookmark does not have a valid projection value.")}function Jc(o){if(!o||typeof o!="object")throw new Error("Expected bookmark extent from local storage to be an object.");const e=o;if(typeof e.minX!="number"||typeof e.minY!="number"||typeof e.maxX!="number"||typeof e.maxY!="number")throw new Error("Expected bookmark extent from local storage to have valid coordinates.")}const Qc=o=>{const{map:e}=Y(o.mapId),t=qc("local-storage.LocalStorageService"),n=rd(e,t);return n&&l.jsx(Uc,{store:n.store,children:l.jsx(ed,{...o,viewModel:n})})};function ed(o){const{viewModel:e}=o,t=Kc(),n=p.useRef([]),[s,i]=p.useState(!1),r=$c(e.bookmarks),[a,c]=p.useState(""),d=a.trim().length>0,{containerProps:u}=oe("spatial-bookmarks",o),[h,f]=p.useState("list"),g=()=>{e.deleteAllBookmarks(),f("list")},v=()=>{d&&(e.createBookmark(a),f("list"),c(""),i(!0))};p.useEffect(()=>{if(s){const T=n.current;T&&T[r.length-1]?.scrollIntoView?.(),i(!1)}},[r,s]);const S=()=>l.jsxs(ko,{children:[l.jsxs(co,{rounded:"md",status:"warning",children:[l.jsx(uo,{}),t.formatMessage({id:"bookmark.alert.delete"})]}),l.jsx(sd,{intl:t,onClear:g,onCancel:()=>f("list")})]}),L=()=>l.jsxs(ko,{children:[l.jsxs(co,{rounded:"md",status:"info",children:[l.jsx(uo,{}),t.formatMessage({id:"bookmark.alert.create"})]}),l.jsx(io,{"aria-label":t.formatMessage({id:"bookmark.input.label"}),placeholder:t.formatMessage({id:"bookmark.input.placeholder"}),value:a,onChange:T=>{c(T.target.value)},onKeyDown:T=>{T.key==="Enter"&&v()},isRequired:!0,isInvalid:!d,autoFocus:!0}),l.jsx(id,{intl:t,isInvalid:!d,onCancel:()=>{c(""),f("list")},onSave:v})]}),E=()=>l.jsxs(l.Fragment,{children:[r.length?td(r,e,t,n):l.jsxs(co,{rounded:"md",status:"info",children:[l.jsx(uo,{}),t.formatMessage({id:"bookmark.alert.noSaved"})]}),l.jsx(nd,{intl:t,bookmarks:r,showCreate:()=>f("create"),showDelete:()=>f("delete")})]}),O=l.jsxs(l.Fragment,{children:[h==="list"&&E(),h==="create"&&L(),h==="delete"&&S()]});return l.jsx(pe,{flexDirection:"column",...u,children:O})}function td(o,e,t,n){const s=t.formatMessage({id:"bookmark.button.deleteOne"}),i=o.map((r,a)=>l.jsx(od,{index:a,listItemNodes:n,bookmark:r,onActivate:()=>e.activateBookmark(r),onDelete:()=>e.deleteBookmark(r.id),deleteBtnLabel:s},r.id));return l.jsx(ss,{as:"ul",className:"spatial-bookmark-list",role:"listbox","aria-label":t.formatMessage({id:"bookmark.list.label"}),flexShrink:1,flexGrow:1,p:1,spacing:1,overflowY:"auto",listStyleType:"none",children:i})}const Sn={ArrowDown:1,ArrowUp:-1};function od(o){const{index:e,listItemNodes:t,bookmark:n,onDelete:s,onActivate:i,deleteBtnLabel:r}=o,a=n.title,c=d=>{const u=d.key;if(u==="Enter"){d.target===d.currentTarget&&i();return}if(Sn[u]!=null){const h=t.current?.length;if(!h)return;let f=(e+Sn[u])%h;f<0&&(f=h-1),t.current[f]?.focus()}};return l.jsx(N,{as:"li",p:1,ref:d=>{if(!d){t.current.splice(e,1);return}t.current[e]=d},className:Rt("spatial-bookmarks-item"),tabIndex:0,rounded:"md",role:"option",cursor:"pointer",outline:0,_hover:{background:"trails.50"},_focusVisible:{boxShadow:"outline"},onKeyDown:c,onClick:i,children:l.jsxs(pe,{width:"100%",flexDirection:"row",align:"center",gap:1,children:[l.jsx(ls,{children:l.jsx(es,{})}),l.jsx(fe,{ps:2,noOfLines:1,children:a}),l.jsx(Cr,{}),l.jsx(Nn,{hasArrow:!0,label:r,placement:"right",children:l.jsx(oo,{className:"spatial-bookmarks-item-delete","aria-label":r,borderRadius:"full",iconSpacing:0,padding:0,colorScheme:"red",variant:"ghost",leftIcon:l.jsx(ts,{}),onClick:d=>{s(),d.stopPropagation()}})},e)]})})}function nd(o){const{intl:e,bookmarks:t,showCreate:n,showDelete:s}=o;return l.jsxs(qo,{children:[l.jsx(st,{isDisabled:t.length===0,colorScheme:"red",width:void 0,iconSpacing:0,leftIcon:l.jsx(ts,{}),onClick:s,"aria-label":e.formatMessage({id:"bookmark.button.deleteAll"}),variant:"outline"}),l.jsx(st,{onClick:n,width:"100%",children:e.formatMessage({id:"bookmark.button.create"})})]})}function sd(o){const{intl:e,onCancel:t,onClear:n}=o;return l.jsxs(qo,{children:[l.jsx(st,{variant:"outline",onClick:t,children:e.formatMessage({id:"bookmark.button.cancelDelete"})}),l.jsx(st,{onClick:n,children:e.formatMessage({id:"bookmark.button.confirmDelete"})})]})}function id(o){const{intl:e,onCancel:t,onSave:n,isInvalid:s}=o;return l.jsxs(qo,{children:[l.jsx(st,{variant:"outline",onClick:()=>t(),children:e.formatMessage({id:"bookmark.button.cancel"})}),l.jsx(st,{isDisabled:s,onClick:()=>n(),children:e.formatMessage({id:"bookmark.button.save"})})]})}function qo(o){return l.jsx(pe,{width:"100%",flexDirection:"row",mt:2,gap:1,flexGrow:0,flexShrink:0,children:o.children})}function st(o){return l.jsx(oo,{width:"100%",...o})}function rd(o,e){const[t,n]=p.useState();return p.useEffect(()=>{let s;return o?s=new Yc(o,e):s=void 0,n(s),()=>s?.destroy()},[o,e]),t}function ad(){const o=p.useId(),e=Ee();return l.jsx(N,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",role:"dialog",width:350,children:l.jsx(N,{role:"dialog","aria-labelledby":o,children:l.jsx(je,{title:l.jsx(Ne,{id:o,size:"md",mb:2,children:e.formatMessage({id:"spatialBookmarkTitle"})}),children:l.jsx(Qc,{mapId:G})})})})}const Is="@open-pioneer/printing",ld=rt.bind(void 0,Is),cd=ue.bind(void 0,Is),dd="map",_n="printing-hide";class ud{olMap;title="";fileFormat="pdf";running=!1;i18n;drawInformation=[];scaleLine=void 0;overlay=void 0;constructor(e,t){this.olMap=e,this.i18n=t}destroy(){this.reset()}setTitle(e){this.title=e}setFileFormat(e){this.fileFormat=e}async handleMapExport(){if(!(!this.olMap||!this.fileFormat)){if(this.running)throw new Error("Printing already running.");try{await this.beginExport();const e=await this.exportToCanvas(this.olMap.getViewport());if(e)this.fileFormat=="png"?await this.exportMapInPNG(e):await this.exportMapInPDF(e);else throw new Error("Canvas export failed")}finally{this.reset()}}}async exportToCanvas(e){const t={useCORS:!0,ignoreElements:function(i){if(i.classList&&typeof i.classList=="object"){const r=i.classList;return r.contains("map-anchors")||r.contains(_n)}return!1}},n=(await Ht(()=>import("./f16e60ff8734.js"),[],import.meta.url)).default;return await n(e,t)}async beginExport(){this.running=!0;const e=this.olMap.getInteractions().getArray().filter(t=>t.getActive()&&t instanceof Wo);this.drawInformation=[],e?.forEach(t=>{const n=t,s=n.getOverlay().getStyle();n.getOverlay().setStyle(null),this.drawInformation?.push({draw:n,style:s})}),this.addOverlay(),await this.addScaleLine()}reset(){this.removeScaleLine(),this.removeOverlay(),this.running=!1,this.drawInformation?.length&&this.drawInformation.forEach(e=>{e.draw.getOverlay().setStyle(e.style)})}async addScaleLine(){this.scaleLine=new Ms({className:"printing-scale-bar ol-scale-bar",bar:!0,text:!0,minWidth:125});const e=jn(),t=this.scaleLine.render;this.scaleLine.render=(...n)=>{t.apply(this.scaleLine,n),e.resolve()},this.olMap.addControl(this.scaleLine),await e.promise,await new Promise(n=>{requestAnimationFrame(n)})}removeScaleLine(){this.scaleLine&&(this.olMap.removeControl(this.scaleLine),this.scaleLine=void 0)}addOverlay(){const e=this.olMap.getTargetElement(),t=this.overlay=document.createElement("div");t.classList.add("printing-overlay",_n),e.appendChild(t);const n=document.createElement("div");n.classList.add("printing-overlay-status"),n.textContent=this.i18n.overlayText,t.appendChild(n)}removeOverlay(){this.overlay?.remove(),this.overlay=void 0}getTitleAndFileName(){const e=this.title||"",t=this.title||dd;return{title:e,fileName:t}}async exportMapInPNG(e){const t=document.createElement("canvas");t.width=e.width,t.height=e.height+50,t.style.backgroundColor="#fff";const n=t.getContext("2d");if(!n)throw new Error("2d canvas rendering context not available");const{title:s,fileName:i}=this.getTitleAndFileName();n.fillStyle="#fff",n.fillRect(0,0,t.width,t.height),n.font="20px bold sans-serif",n.textAlign="center",n.fillStyle="#000";const r=t.width/2;n.fillText(s,r,20),n.drawImage(e,0,50);const a=document.createElement("a");a.setAttribute("download",i+".png"),a.href=t.toDataURL("image/png",.8),a.click()}async exportMapInPDF(e){const{jsPDF:t}=await Ht(()=>import("./897ddd196142.js"),["./897ddd196142.js","./a419295615be.js","./75a84f2be53e.js","./4a2b71d7880f.js","./39284370b430.js","./d99ee97b3bdc.js","./c3dd43fe6cb8.js","./12553b373d3d.js","./8067ba7f14cf.js"],import.meta.url),n=new t({orientation:"landscape",unit:"mm",format:"a4"}),s=n.internal.pageSize.getWidth(),i=n.internal.pageSize.getHeight(),r=15,a=20,c=i-a;n.setFontSize(20);const{title:d,fileName:u}=this.getTitleAndFileName();n.text(d,s/2,r,{align:"center"});const h=e.width/e.height;let f=c,g=f*h;g>=s&&(g=s,f=g/h);const v=(s-g)/2,S=a+(c-f)/2;n.addImage(e,"",v,S,g,f),n.save(u+".pdf")}}const hd=de("printing"),pd=o=>{const e=cd(),{mapId:t}=o,{containerProps:n}=oe("printing",o),[s,i]=p.useState("pdf"),[r,a]=p.useState(""),[c,d]=p.useState(!1),u=ld("notifier.NotificationService"),{map:h}=Y(t),f=fd(h,e);p.useEffect(()=>{f?.setFileFormat(s)},[f,s]),p.useEffect(()=>{f?.setTitle(r)},[f,r]);function g(S){(S==="png"||S==="pdf")&&i(S)}function v(){c||!f||(d(!0),f.handleMapExport().catch(S=>{const L=e.formatMessage({id:"printingFailed"});u.notify({level:"error",message:L}),hd.error("Failed to print the map",S)}).finally(()=>d(!1)))}return l.jsxs(N,{...n,children:[l.jsxs($t,{mb:4,alignItems:"center",children:[l.jsxs(Co,{mb:2,children:[l.jsx(vt,{minWidth:"82",mb:1,children:e.formatMessage({id:"title"})}),l.jsx(io,{placeholder:e.formatMessage({id:"input.placeholder"}),value:r,onChange:S=>{a(S.target.value)},isRequired:!0,autoFocus:!0})]}),l.jsxs(Co,{mb:2,children:[l.jsx(vt,{minWidth:"82",mb:1,children:e.formatMessage({id:"fileFormat"})}),l.jsxs(Go,{value:s,onChange:S=>g(S.target.value),className:"printing-select",children:[l.jsx("option",{value:"png",children:"PNG"}),l.jsx("option",{value:"pdf",children:"PDF"})]})]})]}),l.jsx(oo,{isLoading:c,loadingText:e.formatMessage({id:"printingMap"}),disabled:c,padding:2,className:"printing-export-button",onClick:v,width:"100%",children:e.formatMessage({id:"export"})})]})};function fd(o,e){const[t,n]=p.useState(void 0);return p.useEffect(()=>{if(!o)return;const s=new ud(o.olMap,{overlayText:e.formatMessage({id:"printingMap"})});return n(s),()=>{s.destroy(),n(void 0)}},[o,e]),t}function gd(){const o=p.useId(),e=Ee();return l.jsx(N,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",role:"dialog",width:350,children:l.jsx(N,{role:"dialog","aria-labelledby":o,children:l.jsx(je,{title:l.jsx(Ne,{id:o,size:"md",mb:2,children:e.formatMessage({id:"printingTitle"})}),children:l.jsx(pd,{mapId:G})})})})}const md="@open-pioneer/legend",Rs=ue.bind(void 0,md),vd=o=>{const{mapId:e,showBaseLayers:t=!1}=o,{containerProps:n}=oe("legend",o),{map:s}=Y(e);return l.jsx(N,{...n,children:s?l.jsx(bd,{map:s,showBaseLayers:t}):null})};function bd(o){const{map:e,showBaseLayers:t}=o,s=Sd(e).map(i=>l.jsx(Os,{layer:i,showBaseLayers:t},i.id));return l.jsx(ss,{as:"ul",className:"legend-layer-list",listStyleType:"none",spacing:2,children:s})}function Os(o){const{layer:e,showBaseLayers:t}=o,{isVisible:n}=xd(e),s=_d(e);if(!n||!t&&!("parentLayer"in e)&&e.isBaseLayer)return;const i=[];return s?.length&&s.forEach(r=>{i.push(l.jsx(Os,{layer:r,showBaseLayers:t},r.id))}),l.jsxs(l.Fragment,{children:[l.jsx(yd,{layer:e,showBaseLayers:t}),i]})}function yd(o){const e=Rs(),{layer:t,showBaseLayers:n}=o,s=kd(t),i=wd(t);let r;s?.Component?r=l.jsx(s.Component,{layer:t}):s?.imageUrl?r=l.jsx(xn,{layer:t,imageUrl:s.imageUrl}):i&&(r=l.jsx(xn,{layer:t,imageUrl:i}));const a=!("parentLayer"in t)&&t.isBaseLayer;return r?l.jsxs(N,{as:"li",className:Rt("legend-item",`layer-${Cd(t.id)}`),children:[n&&a?l.jsx(fe,{as:"b",children:e.formatMessage({id:"basemapLabel"})}):null,r]}):void 0}function xn(o){const e=Rs(),{layer:t,imageUrl:n}=o;return l.jsxs(N,{children:[l.jsx(fe,{children:t.title}),l.jsx(as,{maxW:"none",maxH:"none",src:n,alt:e.formatMessage({id:"altLabel"},{layerName:t.title}),className:"legend-item__image",fallbackStrategy:"onError",fallback:l.jsx(N,{children:l.jsxs(fe,{children:[l.jsx(Ps,{me:2}),e.formatMessage({id:"fallbackLabel"})]})})})]})}function wd(o){const e=p.useCallback(()=>o.legend,[o]),t=p.useCallback(n=>{const s=o.on("changed:legend",n);return()=>s.destroy()},[o]);return p.useSyncExternalStore(t,e)}function Sd(o){const e=p.useCallback(n=>{const s=o.layers.on("changed",n);return()=>s.destroy()},[o]),t=p.useCallback(()=>{let n=o.layers.getAllLayers({sortByDisplayOrder:!0})??[];return n=n.reverse(),n},[o]);return Ds(e,t)}function _d(o){const e=p.useCallback(n=>{const s=o.sublayers?.on("changed",n);return()=>s?.destroy()},[o]),t=p.useCallback(()=>{if(!o.sublayers)return;let s=o.sublayers?.getSublayers({sortByDisplayOrder:!0});return s=s.reverse(),s},[o]);return Ds(e,t)}function Ds(o,e){const t=p.useRef(),n=p.useCallback(i=>{const r=o(()=>{t.current=void 0,i()});return()=>{t.current=void 0,r()}},[o]),s=p.useCallback(()=>{if(t.current)return t.current.value;const i=e();return t.current={value:i},i},[e]);return p.useSyncExternalStore(n,s)}function xd(o){const e=p.useCallback(()=>o.visible,[o]),t=p.useCallback(s=>{const i=o.on("changed:visible",s);return()=>i.destroy()},[o]);return{isVisible:p.useSyncExternalStore(t,e)}}function kd(o){const[e,t]=p.useState(void 0);return p.useEffect(()=>{t(o.attributes.legend);const n=o.on("changed:attributes",()=>{t(o.attributes.legend)});return()=>n.destroy()},[o]),e}function Cd(o){return o.toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}function Ed(){const o=p.useId(),e=Ee();return l.jsx(N,{role:"dialog","aria-labelledby":o,children:l.jsx(je,{title:l.jsx(Ne,{id:o,size:"md",mb:2,children:e.formatMessage({id:"legendTitle"})}),children:l.jsx(N,{overflowY:"auto",maxHeight:300,children:l.jsx(vd,{mapId:G,showBaseLayers:!0})})})})}const js="@open-pioneer/geolocation",Pd=rt.bind(void 0,js),Md=ue.bind(void 0,js);function Ld(o){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{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 3A8.994 8.994 0 0013 3.06V1h-2v2.06A8.994 8.994 0 003.06 11H1v2h2.06A8.994 8.994 0 0011 20.94V23h2v-2.06A8.994 8.994 0 0020.94 13H23v-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"}}]})(o)}const kn=de("geolocation:GeolocationController"),Cn=17;class Ad extends No{olMap;positionHighlightLayer;geolocation;maxZoom=Cn;accuracyFeature;positionFeature;changeHandlers=[];isCurrentlyActive=!1;setMapToPosition=!0;trackingOptions={};isInitialZoom=!0;constructor(e,t){super(),this.olMap=e,this.isInitialZoom=!0,this.accuracyFeature=new Pe,this.accuracyFeature.setStyle(Pn()),this.positionFeature=new Pe,this.positionFeature.setStyle(En()),this.positionHighlightLayer=new ge({source:new De({features:[this.accuracyFeature,this.positionFeature]})}),this.positionHighlightLayer.setZIndex(Fo);const n=t||Td();this.geolocation=new za({tracking:!1,trackingOptions:n,projection:e.getView()?.getProjection()}),this.trackingOptions=n,this.geolocation.on("error",s=>this.handleGeolocationError(s))}destroy(){this.stopGeolocation(),this.geolocation?.setTracking(!1),this.geolocation.dispose(),this.accuracyFeature=void 0,this.positionFeature=void 0,this.positionHighlightLayer.dispose()}startGeolocation(){if(this.isCurrentlyActive)return Promise.resolve();const e=this.olMap;return new Promise(n=>{this.isCurrentlyActive=!0,this.geolocation?.setProjection(e.getView()?.getProjection()),this.geolocation?.setTracking(!0);const s=this.geolocation.on("change:accuracyGeometry",()=>{const c=this.geolocation.getAccuracyGeometry()||void 0;if(this.accuracyFeature?.setGeometry(c),this.accuracyFeature?.getGeometry()!==void 0&&n(),this.isInitialZoom){const d=this?.accuracyFeature?.getGeometry()?.getExtent();if(d){const u=rl(d);if(!u)return;e.getView().fit(u,{maxZoom:this.maxZoom}),this.isInitialZoom=!1}}}),i=this.geolocation.on("change:position",()=>{const c=this.geolocation.getPosition();c&&(c[0]||c[1])!==void 0&&(this.positionFeature?.setGeometry(new ze(c)),this.setMapToPosition&&e.getView().setCenter(c),this.positionFeature?.getGeometry()!==void 0&&n())}),r=e.getView().on("change:resolution",()=>{this.setMapToPosition=this.isInitialZoom}),a=e.on("pointermove",c=>{c.dragging&&(this.setMapToPosition=!1)});this.changeHandlers.push(s,i,r,a),e.addLayer(this.positionHighlightLayer)}).catch(n=>{kn.error("Failed to determine location",n)})}stopGeolocation(){this.geolocation?.setTracking(!1),this.isCurrentlyActive=!1,this.trackingOptions={},this.setMapToPosition=!0,this.isInitialZoom=!0,this.changeHandlers.forEach(e=>{ce(e)}),this.changeHandlers=[],this.accuracyFeature?.setGeometry(void 0),this.positionFeature?.setGeometry(void 0),this.olMap.removeLayer(this.positionHighlightLayer)}setPositionFeatureStyle(e){this.positionFeature?.setStyle(e??En())}setAccuracyFeatureStyle(e){this.accuracyFeature?.setStyle(e??Pn())}setMaxZoom(e){this.maxZoom=e??Cn}getMaxZoom(){return this.maxZoom}getPositionFeature(){return this.positionFeature}getAccuracyFeature(){return this.accuracyFeature}getTrackingOptions(){return this.trackingOptions}getGeolocation(){return this.geolocation}handleGeolocationError(e){kn.error("Error from geolocation API:",e.message);const t=(()=>{switch(e.code){case 1:return"permission-denied";case 2:return"position-unavailable";case 3:return"timeout";default:return"unknown"}})();this.emit("error",t)}}const En=()=>new Re({image:new jo({radius:6,fill:new et({color:"#3399CC"}),stroke:new Te({color:"#fff",width:2})})}),Pn=()=>new Re({stroke:new Te({color:"#3399CC",width:3}),fill:new et({color:"rgba(0, 0, 255, 0.05)"})}),Td=()=>({enableHighAccuracy:!0,timeout:6e4,maximumAge:6e5}),Id=p.forwardRef(function(e,t){const{mapId:n,maxZoom:s,positionFeatureStyle:i,accuracyFeatureStyle:r,trackingOptions:a}=e,{containerProps:c}=oe("geolocation",e),d=!!navigator.geolocation,[u,h]=p.useState(!1),[f,g]=p.useState(!1),{map:v}=Y(n),S=Md(),L=Pd("notifier.NotificationService"),E=Rd(v,s,a,i,r),O=(()=>d?u?S.formatMessage({id:"locateMeEnd"}):S.formatMessage({id:"locateMeStart"}):S.formatMessage({id:"locateNotSupported"}))();p.useEffect(()=>{if(E===void 0)return;const X=E.on("error",function(Z){const R=S.formatMessage({id:"error"}),H=(()=>{switch(Z){case"permission-denied":return S.formatMessage({id:"permissionDenied"});case"position-unavailable":return S.formatMessage({id:"positionUnavailable"});case"timeout":return S.formatMessage({id:"timeout"});case"unknown":return S.formatMessage({id:"unknownError"})}})();g(!1),h(!1),L.notify({level:"error",title:R,message:H})});return()=>{X.destroy()}},[E,S,L]),p.useEffect(()=>{if(!E){g(!1);return}return u&&(g(!0),E.startGeolocation().then(()=>{g(!1)})),()=>{E?.stopGeolocation(),g(!1)}},[E,u]);const T=()=>{v&&h(!u)};return l.jsx(te,{ref:t,label:O,icon:l.jsx(Ld,{}),onClick:()=>T(),isActive:u,isLoading:f,isDisabled:!d,...c})});function Rd(o,e,t,n,s){const[i,r]=p.useState();return p.useEffect(()=>{if(!o)return;const a=new Ad(o.olMap,t);return r(a),()=>{a.destroy(),r(void 0)}},[o,t]),p.useEffect(()=>{i?.setPositionFeatureStyle(n)},[i,n]),p.useEffect(()=>{i?.setAccuracyFeatureStyle(s)},[i,s]),p.useEffect(()=>{i?.setMaxZoom(e)},[i,e]),i}function Od(o){const{toolState:e,onToolStateChange:t}=o,n=Ee(),s=Ce("ol-app.AppModel"),i=ot(s.state).resultListState,r=i.open,{map:a}=Y(G),c=Ce("editing.EditingService"),d=Ce("notifier.NotificationService"),u=Oe((h,f)=>{t(h,f??!e[h])});return Dd(a,c,d,n,e,u),l.jsxs(pe,{role:"toolbar","aria-label":n.formatMessage({id:"ariaLabel.toolbar"}),direction:"column",gap:1,padding:1,children:[l.jsx(te,{label:e.editingActive?n.formatMessage({id:"stopEditingTitle"}):n.formatMessage({id:"startEditingTitle"}),icon:e.editingActive?l.jsx(ir,{}):l.jsx(rr,{}),isActive:e.editingActive,onClick:()=>u("editingActive")}),l.jsx(te,{label:n.formatMessage({id:"resetEditingTitle"}),icon:l.jsx(ar,{}),onClick:()=>c.reset(G)}),i.input&&l.jsx(te,{label:n.formatMessage({id:"resultListTitle"}),icon:l.jsx(lr,{}),isActive:i.open,onClick:()=>s.setResultListVisibility(!r)}),l.jsx(te,{label:n.formatMessage({id:"printingTitle"}),icon:l.jsx(cr,{}),isActive:e.printingActive,onClick:()=>u("printingActive")}),l.jsx(te,{label:n.formatMessage({id:"spatialBookmarkTitle"}),icon:l.jsx(dr,{}),isActive:e.bookmarksActive,onClick:()=>u("bookmarksActive")}),l.jsx(Id,{mapId:G}),l.jsx(te,{label:n.formatMessage({id:"tocTitle"}),icon:l.jsx(ur,{}),isActive:e.tocActive,onClick:()=>u("tocActive")}),l.jsx(te,{label:n.formatMessage({id:"legendTitle"}),icon:l.jsx(hr,{}),isActive:e.legendActive,onClick:()=>u("legendActive")}),l.jsx(te,{label:n.formatMessage({id:"measurementTitle"}),icon:l.jsx(pr,{}),isActive:e.measurementActive,onClick:()=>u("measurementActive")}),l.jsx(te,{label:n.formatMessage({id:"selectionTitle"}),icon:l.jsx(fr,{}),isActive:e.selectionActive,onClick:()=>u("selectionActive")}),l.jsx(te,{label:n.formatMessage({id:"overviewMapTitle"}),icon:l.jsx(es,{}),isActive:e.overviewMapActive,onClick:()=>u("overviewMapActive")}),l.jsx(_r,{mapId:G}),l.jsx(xr,{mapId:G}),l.jsx(kr,{mapId:G})]})}function Dd(o,e,t,n,s,i){p.useEffect(()=>{if(!o)return;function r(){if(!o)throw Error("map is undefined");try{const c=o.layers.getLayerById("krankenhaus"),d=new URL(c.attributes.collectionURL+"/items");e.start(o,d).whenComplete().then(h=>{if(!h)return;t.notify({level:"info",message:n.formatMessage({id:"editing.featureCreated"},{featureId:h}),displayDuration:4e3}),(c?.olLayer).getSource()?.refresh()}).catch(h=>{console.error(h)}).finally(()=>{i("editingActive",!1)})}catch(c){console.log(c)}}function a(){e.stop(G)}s.editingActive?r():a()},[o,e,t,n,s.editingActive,i])}const jd="@open-pioneer/measurement",Nd=ue.bind(void 0,jd);class Fd{olMap;messages;activeFeatureStyle;layer;source;draw=void 0;sketch=void 0;helpTooltip;measureTooltip;overlayTooltips=[];resources=[];constructor(e,t){this.olMap=e,this.messages=t;const n=this.source=new De;this.layer=new ge({source:n}),this.layer.setZIndex(Fo),e.addLayer(this.layer);const s=e.on("pointermove",this.handlePointerMove.bind(this));this.resources.push({destroy(){ce(s)}});const i=()=>{this.helpTooltip.element.classList.add("hidden")};e.getViewport().addEventListener("mouseout",i),this.resources.push({destroy(){e.getViewport().removeEventListener("mouseout",i)}}),this.helpTooltip=this.createHelpTooltip()}destroy(){this.stopMeasurement();for(const e of this.resources)e.destroy();this.resources=[],this.helpTooltip.destroy(),this.measureTooltip?.destroy();for(const e of this.overlayTooltips)e.destroy();this.overlayTooltips=[],this.olMap.removeLayer(this.layer),this.layer.dispose(),this.source.dispose()}getVectorLayer(){return this.layer}setFinishedFeatureStyle(e){this.layer.setStyle(e)}setActiveFeatureStyle(e){const t=Ji(e);this.activeFeatureStyle=(n,...s)=>{const i=n?.getGeometry()?.getType();if(i==="Polygon"||i==="LineString"||i==="Point")return t(n,...s)},this.draw?.getOverlay().setStyle(this.activeFeatureStyle)}clearMeasurements(){this.source.clear();for(const e of this.overlayTooltips)e.destroy();this.overlayTooltips=[]}startMeasurement(e){if(this.draw)throw new Error("Internal error: another measurement interaction is still active.");const t=e==="area"?"Polygon":"LineString",n=this.draw=new Wo({source:this.source,type:t,style:this.activeFeatureStyle});this.olMap.addInteraction(n);let s,i;n.on("drawstart",r=>{s=this.measureTooltip=this.createMeasureTooltip();const a=this.sketch=r.feature;if(!a)return;let c;i=a.getGeometry()?.on("change",d=>{const u=d.target,h=this.olMap.getView().getProjection();let f="";u instanceof no?(f=Gd(u,h,this.messages),c=u.getInteriorPoint().getCoordinates()||null):u instanceof Ue&&(f=Bd(u,h,this.messages),c=u.getLastCoordinate()||null),s&&(s.element.innerHTML=f,c&&s?.overlay.setPosition(c))})}),n.on("drawend",()=>{if(s){const r=s.element.classList;r.remove("measurement-active-tooltip"),r.remove("printing-hide"),r.add("measurement-finished-tooltip"),s.overlay.setOffset([0,-7]),this.overlayTooltips.push(s),this.measureTooltip=s=void 0}this.sketch=void 0,i&&ce(i)}),n.on("drawabort",()=>{s&&(s.destroy(),this.measureTooltip=s=void 0),this.sketch=void 0,i&&ce(i)})}stopMeasurement(){this.draw&&(this.olMap.removeInteraction(this.draw),this.draw.abortDrawing(),this.draw.dispose(),this.draw=void 0),this.sketch=void 0,this.measureTooltip?.destroy(),this.measureTooltip=void 0}createMeasureTooltip(){const e=document.createElement("div");e.className="measurement-tooltip measurement-active-tooltip printing-hide";const t=new bt({element:e,offset:[0,-15],positioning:"bottom-center",stopEvent:!1,insertFirst:!1}),n=this.olMap;return n.addOverlay(t),{overlay:t,element:e,destroy(){n.removeOverlay(t)}}}createHelpTooltip(){const e=document.createElement("div");e.className="measurement-tooltip printing-hide hidden";const t=new bt({element:e,offset:[15,0],positioning:"center-left"}),n=this.olMap;return n.addOverlay(t),{overlay:t,element:e,destroy(){n.removeOverlay(t)}}}handlePointerMove(e){if(e.dragging)return;const t=this.helpTooltip,n=Vd(this.messages,this.sketch);t.element.textContent=n,t.overlay.setPosition(e.coordinate),t.element.classList.remove("hidden")}}function Vd(o,e){if(e){const t=e.getGeometry();if(t instanceof no||t instanceof Ue)return o.getContinueMessage()}return o.getHelpMessage()}function Gd(o,e,t){const n=Qi(o,{projection:e});let s;return n>=1e6?s=`${t.formatNumber(n/1e6)} km2`:s=`${t.formatNumber(n)} m2`,s}function Bd(o,e,t){const n=er(o,{projection:e});let s;return n>=1e3?s=`${t.formatNumber(n/1e3)} km`:s=`${t.formatNumber(n)} m`,s}const zd=o=>{const e=Nd(),{mapId:t,activeFeatureStyle:n,finishedFeatureStyle:s}=o,{containerProps:i}=oe("measurement",o),[r,a]=p.useState("distance"),c=g=>e.formatMessage({id:g}),d=Y(t),u=Ud(d.map,e);p.useEffect(()=>{u?.setActiveFeatureStyle(n??Wd())},[u,n]),p.useEffect(()=>{u?.setFinishedFeatureStyle(s??Hd())},[u,s]),p.useEffect(()=>{if(u)return u.startMeasurement(r),()=>{u.stopMeasurement()}},[u,r]);function h(g){if(g==="distance"||g==="area")a(g);else throw new Error(`Unexpected measurement type: '${g}'.`)}function f(){u?.clearMeasurements()}return l.jsxs(N,{...i,children:[l.jsx(fe,{mb:3,children:e.formatMessage({id:"measurementInfoText"})}),l.jsx($t,{mb:4,alignItems:"center",children:l.jsxs(Co,{mb:2,children:[l.jsx(vt,{mb:1,children:c("measurementLabel")}),l.jsxs(Go,{value:r,onChange:g=>h(g.target.value),className:"measurement-select",children:[l.jsx("option",{value:"distance",children:c("distance")}),l.jsx("option",{value:"area",children:c("area")})]})]})}),l.jsx(oo,{padding:2,className:"measurement-delete-button",onClick:f,width:"100%",children:c("deleteMeasurementLabel")})]})};function Ud(o,e){const[t,n]=p.useState(void 0);return p.useEffect(()=>{if(!o)return;const s=new Fd(o.olMap,{getContinueMessage(){return e.formatMessage({id:"tooltips.continue"})},getHelpMessage(){return e.formatMessage({id:"tooltips.help"})},formatNumber(i){return e.formatNumber(i,{maximumFractionDigits:2})}});return n(s),()=>{s.destroy(),n(void 0)}},[o,e]),t}function Wd(){return[new Re({stroke:new Te({color:"#fff",lineDash:[10,10],width:5})}),new Re({fill:new et({color:"rgba(0,0,0,0.15)"}),stroke:new Te({color:"rgba(0, 0, 0, 0.7)",lineDash:[10,10],width:3}),image:new jo({radius:5,stroke:new Te({color:"rgba(0, 0, 0, 0.7)",width:2}),fill:new et({color:"rgba(255, 255, 255, 0.2)"})})})]}function Hd(){return[new Re({stroke:new Te({color:"#fff",width:5})}),new Re({stroke:new Te({color:"#0b96fc",width:3}),fill:new et({color:"rgba(11,150,252,0.15)"})})]}function $d(){const o=p.useId(),e=Ee();return l.jsx(N,{role:"dialog","aria-labelledby":o,children:l.jsx(je,{title:l.jsx(Ne,{id:o,size:"md",mb:2,children:e.formatMessage({id:"measurementTitle"})}),children:l.jsx(zd,{mapId:G})})})}const qd="200px",Kd="300px",Yd=o=>{const{mapId:e,olLayer:t,height:n=qd,width:s=Kd}=o,{containerProps:i}=oe("overview-map",o),r=p.useRef(null),{map:a}=Y(e);return p.useEffect(()=>{if(r.current&&a&&t){const c=a.olMap,d=new Lc({className:"ol-overviewmap",layers:[t],collapsible:!1,collapsed:!1,target:r.current});return c.addControl(d),()=>{c.removeControl(d)}}},[a,t]),l.jsx(N,{height:n,width:s,ref:r,...i})};function Xd(){const o=p.useMemo(()=>new Do({source:new $n}),[]);return l.jsx(N,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:325,children:l.jsx(N,{role:"dialog",children:l.jsx(Yd,{mapId:G,olLayer:o})})})}function Zd(){const o=Ce("ol-app.AppModel"),e=ot(o.state).resultListState,[t,n]=p.useState([]),[s,i]=p.useState([]),r=p.useCallback(a=>{n(a.features),i(a.getFeatureIds())},[]);return p.useEffect(()=>{console.log("Anzahl Features: "+t.length),console.log("SelectedIds: "+s.toString())},[t,s]),e.input&&l.jsx(N,{className:"result-list-container",position:"absolute",visibility:e.open?"visible":"hidden",bottom:"0",backgroundColor:"white",width:"100%",height:"400px",zIndex:1,borderTop:"2px solid",borderBottom:"2px solid",borderColor:"trails.100",children:l.jsx(Lr,{input:e.input,mapId:G,onSelectionChange:r},e.key)})}const Jd="@open-pioneer/search",ao=ue.bind(void 0,Jd);function Qd(o){const e=o.selectProps.inputValue.length>0,t={...o,className:Rt(o.className,{"search-invisible":!e})};return l.jsx(me.Menu,{...t,children:o.children})}function eu(o){const t=ao().formatMessage({id:"noOptionsText"});return l.jsx(me.NoOptionsMessage,{...o,children:l.jsx(ee.span,{className:"search-no-match",children:t})})}function tu(o){const t=ao().formatMessage({id:"loadingText"});return l.jsx(me.LoadingMessage,{...o,children:l.jsx(ee.span,{className:"search-loading-text",children:t})})}function ou({children:o,...e}){const t={...e,className:Rt(e.className,"search-value-container")};return l.jsxs(me.ValueContainer,{...t,children:[!!o&&l.jsx(Cc,{style:{position:"absolute",left:8}}),o]})}function nu(o){const e={...o,isHidden:!1};return l.jsx(me.Input,{...e})}function su(o){return null}function iu(o){return l.jsxs(me.IndicatorsContainer,{...o,children:[o.children,!o.selectProps.isLoading&&o.selectProps.inputValue&&l.jsx(ru,{selectProps:o.selectProps,clearValue:o.clearValue})]})}function ru(o){const t=ao().formatMessage({id:"ariaLabel.clearButton"}),n=s=>{s.preventDefault(),s.stopPropagation(),o.clearValue()};return l.jsx(Qs,{role:"button",size:"md",mr:1,"aria-label":t,onClick:n,onTouchEnd:n,onMouseDown:s=>s.preventDefault()})}function au(o){return null}function lu(o){const e=o.selectProps.inputValue,t=o.data.label,n={...o,className:Rt(o.className,"search-option")};return l.jsx(me.Option,{...n,children:l.jsx(ee.div,{className:"search-option-label",children:e.trim().length>0?cu(t,e):t})})}function cu(o,e){const t=o.toLowerCase().indexOf(e.toLowerCase());return t>=0?l.jsxs(l.Fragment,{children:[o.substring(0,t),l.jsx(ee.span,{className:"search-highlighted-match",children:o.substring(t,t+e.length)},"highlighted"),o.substring(t+e.length)]}):o}const Mn=de("search:SearchController"),Ln=200,An=5;var Lt,Ze,Je,Qe,re,eo,Ns;class du{constructor(e,t){A(this,eo);A(this,Lt,void 0);A(this,Ze,[]);A(this,Je,An);A(this,Qe,Ln);A(this,re,void 0);I(this,Lt,e),I(this,Ze,t)}destroy(){_(this,re)?.abort(),I(this,re,void 0)}async search(e){if(_(this,re)?.abort(),I(this,re,void 0),!e)return[];const t=I(this,re,new AbortController);try{return await uu(t.signal,_(this,Qe)),t.signal.aborted&&(Mn.debug(`search canceled with ${e}`),ei()),(await Promise.all(_(this,Ze).map(s=>W(this,eo,Ns).call(this,s,e,t.signal)))).filter(s=>s!=null)}finally{_(this,re)===t&&I(this,re,void 0)}}get searchTypingDelay(){return _(this,Qe)}set searchTypingDelay(e){I(this,Qe,e??Ln)}get maxResultsPerSource(){return _(this,Je)}set maxResultsPerSource(e){I(this,Je,e??An)}get sources(){return _(this,Ze)}}Lt=new WeakMap,Ze=new WeakMap,Je=new WeakMap,Qe=new WeakMap,re=new WeakMap,eo=new WeakSet,Ns=async function(e,t,n){const s=e.label,i=_(this,Lt).olMap.getView().getProjection();try{const r=_(this,Je);let a=await e.search(t,{maxResults:r,signal:n,mapProjection:i});return a.length>r&&(a=a.slice(0,r)),{label:s,source:e,results:a}}catch(r){Wt(r)||Mn.error(`search for source ${s} failed`,r);return}};async function uu(o,e){o.aborted||await new Promise(t=>{const n=()=>{o.removeEventListener("abort",n),clearTimeout(s),t()};o.addEventListener("abort",n);const s=setTimeout(n,e)})}const Kt=de("search:Search"),hu=o=>{const{mapId:e,sources:t,searchTypingDelay:n,maxResultsPerGroup:s,onSelect:i,onClear:r}=o,{containerProps:a}=oe("search",o),{map:c}=Y(e),d=ao(),u=mu(t,n,s,c),{input:h,search:f,selectedOption:g,onInputChanged:v,onResultConfirmed:S}=vu(u),L=gu(),E=pu(d),O=fu(),T=Oe((R,H)=>{H.action==="input-change"&&v(R)}),X=Oe((R,H)=>{switch(H.action){case"select-option":R&&(S(R),i?.({source:R.source,result:R.result}));break;case"clear":v(""),Z.current?.blur(),Z.current?.focus(),r?.();break;default:Kt.debug(`Unhandled action type '${H.action}'.`);break}}),Z=p.useRef(null);return l.jsx(N,{...a,children:l.jsx(Eo,{className:"search-component",classNamePrefix:"react-select",ref:Z,inputValue:h,onInputChange:T,"aria-label":d.formatMessage({id:"ariaLabel.search"}),ariaLiveMessages:E,colorScheme:"trails",selectedOptionStyle:"color",selectedOptionColorScheme:"trails",chakraStyles:L,isClearable:!0,placeholder:d.formatMessage({id:"searchPlaceholder"}),closeMenuOnSelect:!0,isLoading:f.kind==="loading",options:f.kind==="ready"?f.results:void 0,filterOption:()=>!0,tabSelectsValue:!1,components:O,onChange:X,value:g,menuPosition:"fixed"})})};function pu(o){return p.useMemo(()=>({onFocus:({focused:i})=>`${i.label} ${o.formatMessage({id:"ariaLabel.searchFocus"})}.`,onChange:({action:i,label:r})=>{let a="";switch(i){case"select-option":a=`${r} ${o.formatMessage({id:"ariaLabel.searchSelect"})}.`;break;case"clear":a=`${r} ${o.formatMessage({id:"ariaLabel.searchClear"})}.`;break}return a},guidance:()=>`${o.formatMessage({id:"ariaLabel.instructions"})}`,onFilter:()=>""}),[o])}function fu(){return p.useMemo(()=>({Menu:Qd,Input:nu,SingleValue:su,Option:lu,NoOptionsMessage:eu,LoadingMessage:tu,ValueContainer:ou,IndicatorsContainer:iu,ClearIndicator:au}),[])}function gu(){const[o,e]=Fn("colors",["trails.100","trails.50"],["#d5e5ec","#eaf2f5"]);return p.useMemo(()=>({groupHeading:n=>({...n,backgroundColor:o,padding:"8px 12px",fontSize:"inherit",fontWeight:"inherit"}),option:n=>({...n,backgroundColor:"inherit",_focus:{backgroundColor:e}}),dropdownIndicator:n=>({...n,display:"none"})}),[o,e])}function mu(o,e,t,n){const[s,i]=p.useState(void 0);return p.useEffect(()=>{if(!n)return;const r=new du(n,o);return i(r),()=>{r.destroy(),i(void 0)}},[n,o]),p.useEffect(()=>{s&&(s.searchTypingDelay=e)},[s,e]),p.useEffect(()=>{s&&(s.maxResultsPerSource=t)},[s,t]),s}function vu(o){const[e,t]=p.useReducer((a,c)=>{switch(c.kind){case"input":return{...a,query:c.query,selectedOption:null};case"select-option":return{...a,selectedOption:c.option,query:c.option.label};case"load-results":return{...a,search:{kind:"loading"}};case"accept-results":return{...a,search:{kind:"ready",results:c.results}}}},void 0,()=>({query:"",selectedOption:null,search:{kind:"ready",results:[]}})),n=p.useRef(),s=Oe(a=>{if(!o){n.current=void 0,t({kind:"accept-results",results:[]});return}Kt.isDebug()&&Kt.debug(`Starting new search for query ${JSON.stringify(a)}.`),t({kind:"load-results"});const c=n.current=bu(o,a).then(d=>{n.current===c&&t({kind:"accept-results",results:d})})}),i=p.useCallback(a=>{t({kind:"select-option",option:a})},[]),r=p.useCallback(a=>{t({kind:"input",query:a}),s(a)},[s]);return{input:e.query,search:e.search,selectedOption:e.selectedOption,onResultConfirmed:i,onInputChanged:r}}async function bu(o,e){let t;try{t=await o.search(e)}catch(n){Wt(n)||Kt.error("Search failed",n),t=[]}return yu(t)}function yu(o){return o.map((t,n)=>({label:t.label,options:t.results.map(s=>({value:`${n}-${s.id}`,label:s.label,source:t.source,result:s}))}))}function Fs(o,e){const t=o.olMap.getViewport();o.highlightAndZoom(e,{viewPadding:t&&t.offsetWidth<1e3?{top:150,right:75,bottom:50,left:75}:{top:150,right:400,bottom:50,left:400}})}function wu(){const{map:o}=Y(G),e=Ce("ol-app.AppModel"),t=ot(e.state).searchSources;function n(i){if(console.debug("The user selected the following item: ",i.result),!o)return;const r=i.result.geometry;r&&Fs(o,[r])}function s(){console.debug("The user cleared the search"),o?.removeHighlight()}return l.jsx(N,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",mt:5,className:"search-box",children:l.jsx(hu,{mapId:G,sources:t,maxResultsPerGroup:10,onSelect:n,onClear:s})})}const Vs="@open-pioneer/selection",Su=rt.bind(void 0,Vs),Ko=ue.bind(void 0,Vs),pt="selection-active",zt="selection-inactive";class _u{tooltip;interactionResources=[];olMap;isActive=!0;tooltipMessage;tooltipDisabledMessage;constructor(e,t,n,s,i){let r;switch(t){case Yo.extent:default:r=this.initViewport(e),this.interactionResources.push(this.createDragBox(e,i,r,this.interactionResources)),this.interactionResources.push(this.createDrag(e,r,this.interactionResources));break}this.tooltip=this.createHelpTooltip(e,n),this.olMap=e,this.tooltipMessage=n,this.tooltipDisabledMessage=s}initViewport(e){const t=e.getViewport();return t.classList.add(pt),t.oncontextmenu=n=>(n.preventDefault(),!1),t}destroy(){this.tooltip.destroy(),this.interactionResources.forEach(e=>{e.destroy()})}setActive(e){if(this.isActive===e)return;const t=this.olMap.getViewport();e?(this.interactionResources.forEach(n=>this.olMap.addInteraction(n.interaction)),this.tooltip.element.textContent=this.tooltipMessage,t.classList.remove(zt),t.classList.add(pt),this.isActive=!0):(this.interactionResources.forEach(n=>this.olMap.removeInteraction(n.interaction)),this.tooltip.element.textContent=this.tooltipDisabledMessage,t.classList.remove(pt),t.classList.add(zt),this.isActive=!1)}createDragBox(e,t,n,s){const i=new sn({className:"selection-drag-box",condition:tr});return e.addInteraction(i),i.on("boxend",function(){t(i.getGeometry())}),{interaction:i,destroy(){e.removeInteraction(i),s.splice(s.indexOf(this)),i.dispose(),n.classList.remove(pt),n.classList.remove(zt),n.oncontextmenu=null}}}createDrag(e,t,n){const s=function(a){return a.originalEvent.button==2},i=new rn({condition:s});return e.addInteraction(i),{interaction:i,destroy(){e.removeInteraction(i),n.splice(n.indexOf(this)),i.dispose(),t.classList.remove(pt),t.classList.remove(zt),t.oncontextmenu=null}}}createHelpTooltip(e,t){const n=document.createElement("div");n.className="selection-tooltip printing-hide",n.textContent=t;const s=new bt({element:n,offset:[15,0],positioning:"center-left"}),i=e.on("pointermove",r=>{s.setPosition(r.coordinate)});return e.addOverlay(s),{overlay:s,element:n,destroy(){e.removeOverlay(s),s.dispose(),ce(i)}}}getDragboxInteraction(){return this.interactionResources.find(e=>e.interaction instanceof sn)}getDragPanInteraction(){return this.interactionResources.find(e=>e.interaction instanceof rn)}}const So=de("selection:SelectionController"),xu=1e4;var At,Tt,It,to,Gs;class ku{constructor(e){A(this,to);A(this,At,void 0);A(this,Tt,void 0);A(this,It,void 0);const{mapModel:t,onError:n,maxResults:s=xu}=e;I(this,At,t),I(this,Tt,s),I(this,It,n)}destroy(){}async select(e,t){if(t)return await W(this,to,Gs).call(this,e,t)}}At=new WeakMap,Tt=new WeakMap,It=new WeakMap,to=new WeakSet,Gs=async function(e,t){const n=_(this,At).olMap.getView().getProjection();try{So.debug(`Starting selection on source '${e.label}'`);const s=_(this,Tt);let i=await e.select({type:"extent",extent:t},{maxResults:s,mapProjection:n,signal:new AbortController().signal});return i.length>s&&(i=i.slice(0,s)),So.debug(`Found ${i.length} results on source '${e.label}'`),{source:e,results:i}}catch(s){So.error(`selection from source ${e.label} failed`,s),_(this,It).call(this);return}};var Yo=(o=>(o.extent="EXTENT",o.polygon="POLYGON",o.free="FREEPOLYGON",o.circle="CIRCLE",o))(Yo||{});const Tn={classNamePrefix:"react-select",menuPosition:"fixed",isSearchable:!1,isClearable:!1},Cu=o=>{const e=Ko(),{mapId:t,sources:n,onSelectionComplete:s,onSelectionSourceChanged:i}=o,{containerProps:r}=oe("selection",o),[a,c]=p.useState(()=>n.find(R=>(R.status??"available")==="available")),d=Y(t),{onExtentSelected:u}=Mu(d.map,n,a,s),h=Tu(),g=p.useCallback(R=>{const H=[];if(R||(R=["EXTENT"]),R.forEach(b=>{Object.values(Yo).includes(b)&&H.push({label:e.formatMessage({id:b}),value:b})}),H.length===0)throw new Error("methods does not contain valid values");return H},[e])(void 0),[v,S]=p.useState(g[0]),L=Oe(R=>{S(R)}),[E,O]=p.useState(!0);Au(d.map,v,e,u,E);const T=p.useMemo(()=>n.map(R=>({label:R.label,value:R})),[n]),X=p.useMemo(()=>T.find(R=>R.value===a),[T,a]),Z=Oe(R=>{c(R?.value),i&&i({source:R?.value})});return p.useEffect(()=>{if(!a){O(!1);return}const R=e.formatMessage({id:"sourceNotAvailable"}),H=()=>a&&Ro(a,R).kind==="available";O(H());const b=a.on("changed:status",()=>{O(H())});return()=>b.destroy()},[a,O,e]),l.jsxs(ko,{...r,spacing:2,children:[g.length>1&&l.jsxs($t,{children:[l.jsx(vt,{children:e.formatMessage({id:"selectMethod"})}),l.jsx(Eo,{className:"selection-method react-select",...Tn,options:g,onChange:L,value:v,chakraStyles:h})]}),l.jsxs($t,{children:[l.jsx(vt,{children:e.formatMessage({id:"selectSource"})}),l.jsx(Eo,{className:"selection-source react-select",...Tn,options:T,placeholder:e.formatMessage({id:"selectionPlaceholder"}),value:X,onChange:Z,components:{Option:Eu,SingleValue:Pu},isOptionDisabled:R=>R.value===void 0||R.value.status==="unavailable",getOptionLabel:R=>R.label+(R.value===void 0||R.value.status==="unavailable"?" "+e.formatMessage({id:"sourceNotAvailable"}):""),chakraStyles:h})]})]})};function Eu(o){const{value:e}=o.data,{isAvailable:t,content:n}=Bs(e,!1);return l.jsx(me.Option,{...o,isDisabled:!t,className:"selection-source-option",children:n})}function Pu(o){const{value:e}=o.data,{isAvailable:t,content:n}=Bs(e,!0),s=t?"selection-source-value":"selection-source-value selection-source-value--disabled";return l.jsx(me.SingleValue,{...o,isDisabled:!t,className:s,children:n})}function Bs(o,e){const t=o?.label,n=Lu(o);return{isAvailable:n.kind==="available",content:l.jsxs(pe,{direction:"row",alignItems:"center",grow:1,children:[!e&&l.jsx(pe,{grow:1,children:t}),n.kind==="unavailable"&&l.jsx(N,{ml:2,children:l.jsx(Nn,{label:n.reason,placement:"right",openDelay:500,children:l.jsx(ee.span,{children:l.jsx(ti,{as:Mr,color:"red",className:"warning-icon","aria-label":n.reason})})})}),e&&t]})}}function Mu(o,e,t,n){const s=Su("notifier.NotificationService"),i=Ko(),[r,a]=p.useState(void 0);p.useEffect(()=>{if(!o)return;const d=new ku({mapModel:o,onError(){s.notify({level:"error",message:i.formatMessage({id:"selectionFailed"})})}});return a(d),()=>{d.destroy()}},[o,s,e,i]);const c=Oe(async d=>{if(!r||!t)return;const u=await r.select(t,d.getExtent());u&&n?.(u)});return{controller:r,onExtentSelected:c}}function Ro(o,e){const t=o.status??"available",n=typeof t=="string"?{kind:t}:t;return n.kind==="available"?n:{kind:"unavailable",reason:n.reason??e}}function Lu(o){const e=Ko(),[t,n]=p.useState(()=>({kind:"available"}));return p.useEffect(()=>{if(!o){n({kind:"available"});return}const s=e.formatMessage({id:"sourceNotAvailable"});n(Ro(o,s));const i=o.on?.("changed:status",()=>{n(Ro(o,s))});return()=>i?.destroy()},[o,e]),t}function Au(o,e,t,n,s){p.useEffect(()=>{if(!o)return;const i=new _u(o.olMap,e.value,t.formatMessage({id:"tooltip"}),t.formatMessage({id:"disabledTooltip"}),n);return i.setActive(s),()=>{i?.destroy()}},[o,e,t,n,s])}function Tu(){const[o,e]=Fn("colors",["background_body","border"],["#ffffff","#ffffff"]);return p.useMemo(()=>({control:n=>({...n,cursor:"pointer"}),indicatorSeparator:n=>({...n,borderColor:e}),dropdownIndicator:n=>({...n,backgroundColor:o})}),[o,e])}function Iu(){const o=Ee(),e=Ce("notifier.NotificationService"),t=p.useId(),{map:n}=Y(G),s=Ce("ol-app.AppModel"),i=ot(s.state).selectionSources,r=ot(s.state).sourceMetadata,a={numberOptions:{maximumFractionDigits:3},dateOptions:{dateStyle:"medium",timeStyle:"medium",timeZone:"UTC"}};function c(u){const{source:h,results:f}=u;if(!n){console.debug("Map not ready");return}n?.removeHighlight();const g=f.map(S=>S.geometry);g.length>0&&Fs(n,g);const v=r.get(h);if(!v){console.warn("Can not show results because no metadata could be found");return}s.setResultListInput({columns:v,data:f,formatOptions:a}),e.notify({level:"info",message:o.formatMessage({id:"foundResults"},{resultsCount:f.length}),displayDuration:4e3})}function d(u){n?.removeHighlight()}return l.jsx(N,{role:"dialog","aria-labelledby":t,children:l.jsx(je,{title:l.jsx(Ne,{id:t,size:"md",mb:2,children:o.formatMessage({id:"selectionTitle"})}),children:l.jsx(Cu,{mapId:G,sources:i,onSelectionComplete:c,onSelectionSourceChanged:d})})})}function Ru(o){const e=p.useId(),t=Ee();return l.jsx(N,{role:"dialog","aria-labelledby":e,children:l.jsx(je,{title:l.jsx(Ne,{id:e,size:"md",mb:2,children:l.jsx(fe,{children:t.formatMessage({id:"tocTitle"})})}),children:l.jsx(N,{overflowY:"auto",maxHeight:o.maxHeight,children:l.jsx(yr,{mapId:G,showTools:!0,basemapSwitcherProps:{allowSelectingEmptyBasemap:!0}})})})})}const Ou={bookmarksActive:!1,legendActive:!0,overviewMapActive:!0,tocActive:!0,printingActive:!1};function Du(){const o=Ee(),{map:e}=Y(G),[t,n]=p.useState(),[s,i]=p.useState(Ou),r={...s,editingActive:t==="editing",measurementActive:t==="measurement",selectionActive:t==="selection"},a=(f,g)=>{if(f==="selectionActive"||f==="measurementActive"||f==="editingActive"){let v;switch(f){case"editingActive":v="editing";break;case"measurementActive":v="measurement";break;case"selectionActive":v="selection";break}v!==t&&g?(n(v),e?.removeHighlight()):v===t&&!g&&(n(void 0),e?.removeHighlight())}else i({...s,[f]:g})},c=Ce("ol-app.AppModel"),d=ot(c.state).resultListState,u=d.input&&d.open,h=[r.tocActive&&l.jsx(Ru,{maxHeight:r.legendActive||t?"300px":"75vh"},"toc"),r.legendActive&&l.jsx(Ed,{},"legend"),t==="selection"?l.jsx(Iu,{},"selection"):t==="measurement"?l.jsx($d,{},"measurement"):void 0];return l.jsxs(pe,{height:"100%",direction:"column",overflow:"hidden",children:[l.jsx(Pc,{position:"top-right"}),l.jsxs(je,{title:l.jsx(N,{role:"region","aria-label":o.formatMessage({id:"ariaLabel.header"}),textAlign:"center",py:1,children:l.jsx(Ne,{size:"md",children:"OpenLayers Base Packages - Default Sample"})}),children:[l.jsx(pe,{flex:"1",direction:"column",position:"relative",children:l.jsxs(or,{mapId:G,role:"main","aria-label":o.formatMessage({id:"ariaLabel.map"}),viewPadding:u?{bottom:400}:void 0,children:[l.jsx(Er,{centerContent:!0,children:l.jsx(wu,{})}),l.jsx(lt,{position:"top-left",horizontalGap:20,verticalGap:20,children:l.jsx(ju,{children:h})}),l.jsx(lt,{position:"top-right",horizontalGap:20,verticalGap:20,children:r.overviewMapActive&&l.jsx(Xd,{})}),l.jsx(lt,{horizontalGap:20,position:"bottom-left",children:r.bookmarksActive&&l.jsx(ad,{})}),l.jsx(lt,{horizontalGap:20,position:"bottom-left",children:r.printingActive&&l.jsx(gd,{})}),l.jsx(lt,{position:"bottom-right",horizontalGap:10,verticalGap:45,children:l.jsx(Od,{toolState:r,onToolStateChange:a})}),l.jsx(Zd,{})]})}),l.jsxs(pe,{role:"region","aria-label":o.formatMessage({id:"ariaLabel.footer"}),gap:3,alignItems:"center",justifyContent:"center",children:[l.jsx(bc,{mapId:G,precision:2,displayProjectionCode:"EPSG:4326"}),l.jsx(Ic,{mapId:G}),l.jsx(Dc,{mapId:G})]})]})]})}function ju(o){const e=o.children,t=[];for(const n of e)n&&(t.length&&t.push(l.jsx(Ar,{mt:4,mb:4},t.length)),t.push(n));if(t.length!==0)return l.jsx(N,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",width:350,maxWidth:350,children:t})}const Nu=oi({component:Du,theme:ni,appMetadata:fc,config:{properties:{"@open-pioneer/local-storage":{storageId:"ol-app-state"},"@open-pioneer/editing":{polygonDrawStyle:{"stroke-color":"red","stroke-width":2,"fill-color":"rgba(0, 0, 0, 0.1)","circle-radius":5,"circle-fill-color":"rgba(255, 0, 0, 0.2)","circle-stroke-color":"rgba(255, 0, 0, 0.7)","circle-stroke-width":2}}}},async resolveConfig(o){const e=o.getAttribute("forced-locale");if(e)return{locale:e}}});customElements.define("ol-map-app",Nu);const Fu=document.getElementsByTagName("body")[0];Vu();function Vu(){const o=window.location.search,t=new URLSearchParams(o).get("lang"),n=document.createElement("ol-map-app");n.classList.add("full-height"),n.classList.add("app"),n.setAttribute("id","test"),t&&n.setAttribute("forced-locale",t),Fu.appendChild(n)} diff --git a/openlayers-base-packages/assets/dec23d381087.js b/openlayers-base-packages/assets/702bddfb066e.js similarity index 92% rename from openlayers-base-packages/assets/dec23d381087.js rename to openlayers-base-packages/assets/702bddfb066e.js index d1bc586d1..61e483687 100644 --- a/openlayers-base-packages/assets/dec23d381087.js +++ b/openlayers-base-packages/assets/702bddfb066e.js @@ -1,2 +1,2 @@ -import{p as v,j as e,r as f,B as d,v as w}from"./4a2b71d7880f.js";import{t as y}from"./848f03e9a62e.js";import{z as h,T as x,O as k,ac as z,ab as j,ad as S,aB as m,aD as I,y as b,aE as M,aN as L,aO as g,af as u}from"./39284370b430.js";import{_ as T}from"./a419295615be.js";import{B as _}from"./75a84f2be53e.js";import{W as B,a as C}from"./05b8c5e0e87c.js";import{T as p,S as A,V as P,U as E,a as c}from"./12553b373d3d.js";import{F}from"./c3dd43fe6cb8.js";import{F as R}from"./db074d7a1538.js";import"./d99ee97b3bdc.js";import"./8067ba7f14cf.js";class q extends B{constructor(a){const r=[-380316598427299e-8,880590808284866e-8],n=[4891.96981025128,2445.98490512564,1222.99245256282,611.49622628141,305.748113140705,152.874056570353,76.4370282851763,38.2185141425881,19.1092570712941,9.55462853564703,4.77731426782352,2.38865713391176,1.19432856695588,.59716428347794],i=new Array(n.length);for(let t=0;tDatenquellen`})}}const s="main";class O{mapId=s;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new h({title:"OSM",isBaseLayer:!0,olLayer:new x({source:new k})})]}}}const G={"basemap-switcher-app":{name:"basemap-switcher-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:O,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:z,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:j,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}}},D=`:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move} +import{p as v,j as e,r as f,B as d,v as w}from"./4a2b71d7880f.js";import{t as y}from"./848f03e9a62e.js";import{z as h,T as x,O as k,ac as z,ab as j,ad as S,aB as m,aD as I,y as b,aE as M,aN as L,aO as g,af as u}from"./39284370b430.js";import{_ as T}from"./a419295615be.js";import{B as _}from"./75a84f2be53e.js";import{W as B,a as C}from"./05b8c5e0e87c.js";import{T as p,S as A,V as P,U as E,a as c}from"./12553b373d3d.js";import{F}from"./c3dd43fe6cb8.js";import{F as R}from"./db074d7a1538.js";import"./d99ee97b3bdc.js";import"./8067ba7f14cf.js";class q extends B{constructor(a){const r=[-380316598427299e-8,880590808284866e-8],n=[4891.96981025128,2445.98490512564,1222.99245256282,611.49622628141,305.748113140705,152.874056570353,76.4370282851763,38.2185141425881,19.1092570712941,9.55462853564703,4.77731426782352,2.38865713391176,1.19432856695588,.59716428347794],i=new Array(n.length);for(let t=0;tDatenquellen`})}}const s="main";class O{mapId=s;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new h({title:"OSM",isBaseLayer:!0,olLayer:new x({source:new k})})]}}}const G={"basemap-switcher-app":{name:"basemap-switcher-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:O,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:z,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:j,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}}},D=`:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move} `,H=["en"];function U(o){switch(o){case"en":return T(()=>import("./298220a10047.js"),[],import.meta.url).then(a=>a.default)}throw new Error(`Unsupported locale: '${o}'`)}const W=v(D),N=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:U,locales:H,packages:G,styles:W},Symbol.toStringTag,{value:"Module"})),V="basemap-switcher-app",$=S.bind(void 0,V);function K(){const o=$();return e.jsx(m,{height:"100%",direction:"column",overflow:"hidden",children:e.jsx(I,{title:e.jsx(b,{textAlign:"center",py:1,children:e.jsx(M,{size:"md",children:"OpenLayers Base Packages - Basemap Switcher"})}),children:e.jsx(m,{flex:"1",direction:"column",position:"relative",children:e.jsxs(L,{mapId:s,children:[e.jsx(g,{position:"top-left",horizontalGap:10,verticalGap:10,children:e.jsxs(b,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:[e.jsxs(F,{children:[e.jsx(R,{ps:1,children:e.jsx(p,{as:"b",children:o.formatMessage({id:"basemapLabel"})})}),e.jsx(_,{allowSelectingEmptyBasemap:!0,mapId:s})]}),e.jsxs(A,{pt:5,children:[e.jsx(p,{align:"center",children:"Test Controls:"}),e.jsx(Y,{mapId:s}),e.jsx(J,{mapId:s}),e.jsx(Q,{mapId:s})]})]})}),e.jsx(g,{position:"top-right",horizontalGap:10,verticalGap:10,children:e.jsxs(P,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:"400px",children:[e.jsx(p,{as:"b",children:"Description"}),e.jsx(p,{children:"This application can be used to test the basemap switcher. The basemap switcher synchronizes with the state of the shared map model. If the map model is changed (for example, by changing the current basemap), the basemap switcher must update itself accordingly."}),e.jsxs(E,{children:[e.jsx(c,{children:"Adding a new basemap updates the dropdown menu (new option)"}),e.jsx(c,{children:"Changing the current basemap to another basemap updates the selected option"}),e.jsxs(c,{children:["Setting the current basemap to ","'undefined'"," also updates the selection"]})]})]})})]})})})})}function Y(o){const{mapId:a}=o,{map:r}=u(a),n=f.useRef(1),i=()=>{if(!r)return;const l=n.current++,t=new h({title:`New Layer ${l}`,isBaseLayer:!0,olLayer:new x({source:new q({layer:"web_grau"})})});r.layers.addLayer(t),console.log("generated base layer with id",t.id)};return e.jsx(d,{onClick:i,children:"Add base layer"})}function J(o){const{mapId:a}=o,{map:r}=u(a),n=()=>{if(!r)return;const i=r.layers.getAllLayers();if(i.length===0){console.error("There is no base layer");return}const l=Math.floor(Math.random()*i.length),t=i[l];if(!t){console.error("Failed to find a layer");return}console.log("activating base layer",t.id),r.layers.activateBaseLayer(t.id)};return e.jsx(d,{onClick:n,children:"Activate random base layer"})}function Q(o){const{mapId:a}=o,{map:r}=u(a),n=()=>{r&&(console.log("setting active base layer to undefined"),r.layers.activateBaseLayer(void 0))};return e.jsx(d,{onClick:n,children:"Clear base layer"})}const X=w({component:K,theme:y,appMetadata:N});customElements.define("basemap-switcher-app",X); diff --git a/openlayers-base-packages/assets/8e70571c5f1f.js b/openlayers-base-packages/assets/8e70571c5f1f.js deleted file mode 100644 index 53bb324a0..000000000 --- a/openlayers-base-packages/assets/8e70571c5f1f.js +++ /dev/null @@ -1 +0,0 @@ -const e=JSON.parse('{"ol-map":{"basemapLabel":"Hintergrundkarte auswählen: ","tocTitle":"Karteninhalt","legendTitle":"Legende","measurementTitle":"Messen","selectionTitle":"Selektieren","overviewMapTitle":"Übersichtskarte","startEditingTitle":"Editierung - Neues Feature erstellen","stopEditingTitle":"Editierung - Stoppen","resetEditingTitle":"Editierung - Zurücksetzen","editing.featureCreated":"Objekt erstellt mit ID: {featureId}","resultListTitle":"Ergebnisliste","ariaLabel.header":"Kopfleiste","ariaLabel.footer":"Fussleiste mit Maßstabsangabe, Raumbezugssystem und Koordinatenanzeige","ariaLabel.map":"Karte. Mit den Pfeiltasten kannst du die Karte bewegen. Mit der Plus Taste hineinzoomen und mit der Minus Taste herauszoomen.","ariaLabel.toolbar":"Kartenwerkzeuge","geolocationTitle":"Geolokalisierung","spatialBookmarkTitle":"Räumliche Lesezeichen","printingTitle":"Drucken","searchSources.miningPermissions":"Bergbauberechtigungen","searchSources.lika":"Daten des Liegenschaftskatasters in NRW","foundResults":"Es {resultsCount, plural, =0 {wurden keine Ergebnisse} one {wurde 1 Ergebnis} other {wurden {resultsCount} Ergebnisse} } gefunden."},"@open-pioneer/experimental-layout-sidebar":{"toggle.expand":"Ausklappen","toggle.collapse":"Einklappen"},"@open-pioneer/geolocation":{"locateNotSupported":"Die Geolokalisierung wird nicht unterstützt.","locateMeStart":"Geolokalisierung starten","locateMeEnd":"Geolokalisierung stoppen","error":"Fehler","permissionDenied":"Die Geolokalisierung wurde abgebrochen.","positionUnavailable":"Die Position kann nicht ermittelt werden.","timeout":"Die Geolokalisierung dauert zu lange und wurde daher abgebrochen.","unknownError":"Bei der Geolokalisierung ist es zu einem unerwarteten Fehler gekommen."},"@open-pioneer/legend":{"altLabel":"Legendengrafik für Layer {layerName}","fallbackLabel":"Legende nicht verfügbar","basemapLabel":"Hintergrundkarte"},"@open-pioneer/map-navigation":{"initial-extent.title":"Zoom auf initiale Ausdehnung","zoom-in.title":"Vergrößern","zoom-out.title":"Verkleinern"},"@open-pioneer/measurement":{"measurementLabel":"Modus","distance":"Strecke","area":"Fläche","deleteMeasurementLabel":"Messungen löschen","measurementInfoText":"Klicken Sie in die Karte, um eine Messung zu beginnen.","tooltips.help":"Klicken, um mit der Messung zu beginnen.","tooltips.continue":"Doppelt klicken, um die Messung zu beenden."},"@open-pioneer/printing":{"title":"Titel","fileFormat":"Datei Format","export":"Exportieren","input.placeholder":"Titel eingeben","printingMap":"Karte wird gedruckt ...","printingFailed":"Die Karte konnte nicht gedruckt werden."},"@open-pioneer/result-list":{"selectAllTooltip":"Alle auswählen","deSelectAllTooltip":"Alle abwählen","noDataMessage":"Keine Daten verfügbar","displayBoolean.true":"ja","displayBoolean.false":"nein","ariaLabel.selectSingle":"Drücken Sie die Leertaste zum ab- oder anwählen."},"@open-pioneer/search":{"noOptionsText":"Keine Suchtreffer gefunden","loadingText":"Frage Daten ab...","searchPlaceholder":"Suche...","ariaLabel.search":"Suchleiste","ariaLabel.instructions":"Benutze die Pfeiltasten Hoch und Runter um durch die Suchergebnisse zu scrollen, drücke Enter um das Suchergebnis zu selektieren, drücke Escape um zurückzukehren","ariaLabel.searchFocus":"fokussiert","ariaLabel.searchSelect":"selektiert","ariaLabel.searchClear":"gelöscht","ariaLabel.clearButton":"Suche leeren"},"@open-pioneer/selection":{"selectMethod":"Methode auswählen","EXTENT":"Rechteck","POLYGON":"Polygon","FREEPOLYGON":"Freies Zeichnen","CIRCLE":"Kreis","selectSource":"Quelle auswählen","tooltip":"Klicken Sie in die Karte, halten Sie die Maustaste gedrückt und ziehen Sie ein Rechteck auf","disabledTooltip":"Die aktuelle Selektionsquelle ist nicht verfügbar.","sourceNotAvailable":"Quelle nicht verfügbar","selectionFailed":"Die räumliche Auswahl ist fehlgeschlagen","selectionPlaceholder":"Keine Quelle ausgewählt","layerNotVisibleReason":"Zugehöriger Layer ist nicht sichtbar."},"@open-pioneer/spatial-bookmarks":{"bookmark.button.create":"Neues Lesezeichen hinzufügen","bookmark.button.deleteAll":"Alle Lesezeichen löschen","bookmark.button.deleteOne":"Lesezeichen löschen","bookmark.button.save":"Speichern","bookmark.button.cancel":"Abbrechen","bookmark.button.cancelDelete":"Nein","bookmark.button.confirmDelete":"Ja","bookmark.input.label":"Name","bookmark.input.placeholder":"Name des Lesezeichens","bookmark.alert.create":"Nach der Eingabe eines Namens können Sie das neue Lesezeichen speichern. Dabei wird der aktuelle Kartenausschnitt als Grundlage für die Position verwendet.","bookmark.alert.delete":"Möchten Sie wirklich alle räumlichen Lesezeichen löschen?","bookmark.alert.noSaved":"Sie haben keine gespeicherten Lesezeichen","bookmark.list.label":"Räumliche Lesezeichen"},"@open-pioneer/toc":{"basemapsLabel":"Hintergrundkarten","descriptionLabel":"Layer Beschreibung","operationalLayerLabel":"Layer","missingLayers":"Es sind keine Layer vorhanden.","error":"Beim Erstellen des Karteninhalts ist ein Fehler aufgetreten.","layerNotAvailable":"Layer nicht verfügbar","toolsLabel":"Kartenwerkzeuge","tools.hideAllLayers":"Alle Karteninhalte ausblenden"},"@open-pioneer/editing":{"title":"Editierung von Objekten","tooltip.begin":"Klicken, um mit Erstellung der Geometrie zu beginnen","tooltip.continue":"Doppelt klicken, um Geometrie abzuschließen und Feature zu speichern"},"@open-pioneer/basemap-switcher":{"emptyBasemapLabel":"Ohne Hintergrundkarte","layerNotAvailable":"Layer nicht verfügbar"}}');export{e as default}; diff --git a/openlayers-base-packages/assets/83810550f546.js b/openlayers-base-packages/assets/b39a895cb647.js similarity index 91% rename from openlayers-base-packages/assets/83810550f546.js rename to openlayers-base-packages/assets/b39a895cb647.js index 94d381bdc..24b4df5c7 100644 --- a/openlayers-base-packages/assets/83810550f546.js +++ b/openlayers-base-packages/assets/b39a895cb647.js @@ -1,2 +1,2 @@ -import{p as y,r as m,j as o,v as z}from"./4a2b71d7880f.js";import{z as a,T as f,O as _,D as w,E as x,ac as T,ab as D,ad as L,aB as s,aD as b,y as c,aE as g,aN as M,aO as p,aG as P}from"./39284370b430.js";import{W as S,q as I}from"./d120340df080.js";import{W as C,a as j}from"./05b8c5e0e87c.js";import{G as k,T as R}from"./01a67a5ecbe0.js";import{_ as h}from"./a419295615be.js";import{V as E,T as v}from"./12553b373d3d.js";import"./d99ee97b3bdc.js";import"./d0d59a9edbe6.js";import"./75a84f2be53e.js";import"./c3dd43fe6cb8.js";import"./8067ba7f14cf.js";import"./19e5f0fcaf8a.js";import"./e95b8e4fa01f.js";import"./a1b8b346c1fe.js";const d="main";class A{mapId=d;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},projection:"EPSG:25832",layers:[new a({id:"topplus_open",title:"TopPlus Open",isBaseLayer:!0,visible:!0,healthCheck:"https://sgx.geodatenzentrum.de/wmts_topplus_openERROR/1.0.0/WMTSCapabilities.xml",olLayer:u("web")}),new a({id:"topplus_open_grau",title:"TopPlus Open (Grau)",isBaseLayer:!0,visible:!1,healthCheck:async()=>{function t(r){return new Promise(n=>setTimeout(n,r))}return await t(2e3),"error"},olLayer:u("web_grau")}),new a({id:"topplus_open_light",title:"TopPlus Open (Light)",isBaseLayer:!0,visible:!1,healthCheck:"https://sgx.geodatenzentrum.de/wmts_topplus_open/1.0.0/WMTSCapabilities.xml",olLayer:u("web_light")}),new a({title:"OSM",visible:!1,isBaseLayer:!0,olLayer:new f({source:new _})}),new a({title:"Haltestellen Stadt Rostock",visible:!0,description:"Haltestellen des öffentlichen Personenverkehrs in der Hanse- und Universitätsstadt Rostock.",olLayer:O()}),new a({title:"Kindertagesstätten",visible:!0,healthCheck:"https://sgx.geodatenzentrum.de/wmts_topplus_open/1.0.0/WMTSCapabilities.xml",olLayer:G()}),W(),q()]}}}function u(e){const t=[-380316598427299e-8,880590808284866e-8],r=[4891.96981025128,2445.98490512564,1222.99245256282,611.49622628141,305.748113140705,152.874056570353,76.4370282851763,38.2185141425881,19.1092570712941,9.55462853564703,4.77731426782352,2.38865713391176,1.19432856695588,.59716428347794],n=new Array(r.length);for(let l=0;lDatenquellen`});return new f({source:i})}function O(){const e=new w({url:"https://geo.sv.rostock.de/download/opendata/haltestellen/haltestellen.json",format:new k,attributions:"Haltestellen Stadt Rostock, Creative Commons CC Zero License (cc-zero)"});return new x({source:e})}function G(){const e=new w({url:"https://ogc-api.nrw.de/inspire-us-kindergarten/v1/collections/governmentalservice/items?f=json&limit=10000",format:new k,attributions:'© Bundesamt für Kartographie und Geodäsie 2017, Datenquellen'});return new x({source:e})}function W(){return new S({title:"Schulstandorte",description:"Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.",visible:!0,healthCheck:async()=>{function e(t){return new Promise(r=>setTimeout(r,t))}return await e(3e3),"error"},url:"https://www.wms.nrw.de/wms/wms_nw_inspire-schulen",sublayers:[{name:"US.education",title:"INSPIRE - WMS Schulstandorte NRW"}],sourceOptions:{ratio:1}})}function q(){return new S({title:"Straßennetz Landesbetrieb Straßenbau NRW",url:"https://www.wms.nrw.de/wms/strassen_nrw_wms",sublayers:[{name:"1",title:"Verwaltungen"},{name:"4",title:"Abschnitte und Äste"},{name:"6",title:"Unfälle"}]})}const B={"toc-map":{name:"toc-map",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:A,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:T,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/toc":{name:"@open-pioneer/toc",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:D,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}}},H=`:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move} +import{p as y,r as m,j as o,v as z}from"./4a2b71d7880f.js";import{z as a,T as f,O as _,D as w,E as x,ac as T,ab as D,ad as L,aB as s,aD as b,y as c,aE as g,aN as M,aO as p,aG as P}from"./39284370b430.js";import{W as S,q as I}from"./d120340df080.js";import{W as C,a as j}from"./05b8c5e0e87c.js";import{G as k,T as R}from"./01a67a5ecbe0.js";import{_ as h}from"./a419295615be.js";import{V as E,T as v}from"./12553b373d3d.js";import"./d99ee97b3bdc.js";import"./d0d59a9edbe6.js";import"./75a84f2be53e.js";import"./c3dd43fe6cb8.js";import"./8067ba7f14cf.js";import"./19e5f0fcaf8a.js";import"./e95b8e4fa01f.js";import"./a1b8b346c1fe.js";const d="main";class A{mapId=d;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},projection:"EPSG:25832",layers:[new a({id:"topplus_open",title:"TopPlus Open",isBaseLayer:!0,visible:!0,healthCheck:"https://sgx.geodatenzentrum.de/wmts_topplus_openERROR/1.0.0/WMTSCapabilities.xml",olLayer:u("web")}),new a({id:"topplus_open_grau",title:"TopPlus Open (Grau)",isBaseLayer:!0,visible:!1,healthCheck:async()=>{function t(r){return new Promise(n=>setTimeout(n,r))}return await t(2e3),"error"},olLayer:u("web_grau")}),new a({id:"topplus_open_light",title:"TopPlus Open (Light)",isBaseLayer:!0,visible:!1,healthCheck:"https://sgx.geodatenzentrum.de/wmts_topplus_open/1.0.0/WMTSCapabilities.xml",olLayer:u("web_light")}),new a({title:"OSM",visible:!1,isBaseLayer:!0,olLayer:new f({source:new _})}),new a({title:"Haltestellen Stadt Rostock",visible:!0,description:"Haltestellen des öffentlichen Personenverkehrs in der Hanse- und Universitätsstadt Rostock.",olLayer:O()}),new a({title:"Kindertagesstätten",visible:!0,healthCheck:"https://sgx.geodatenzentrum.de/wmts_topplus_open/1.0.0/WMTSCapabilities.xml",olLayer:G()}),W(),q()]}}}function u(e){const t=[-380316598427299e-8,880590808284866e-8],r=[4891.96981025128,2445.98490512564,1222.99245256282,611.49622628141,305.748113140705,152.874056570353,76.4370282851763,38.2185141425881,19.1092570712941,9.55462853564703,4.77731426782352,2.38865713391176,1.19432856695588,.59716428347794],n=new Array(r.length);for(let l=0;lDatenquellen`});return new f({source:i})}function O(){const e=new w({url:"https://geo.sv.rostock.de/download/opendata/haltestellen/haltestellen.json",format:new k,attributions:"Haltestellen Stadt Rostock, Creative Commons CC Zero License (cc-zero)"});return new x({source:e})}function G(){const e=new w({url:"https://ogc-api.nrw.de/inspire-us-kindergarten/v1/collections/governmentalservice/items?f=json&limit=10000",format:new k,attributions:'© Bundesamt für Kartographie und Geodäsie 2017, Datenquellen'});return new x({source:e})}function W(){return new S({title:"Schulstandorte",description:"Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.",visible:!0,healthCheck:async()=>{function e(t){return new Promise(r=>setTimeout(r,t))}return await e(3e3),"error"},url:"https://www.wms.nrw.de/wms/wms_nw_inspire-schulen",sublayers:[{name:"US.education",title:"INSPIRE - WMS Schulstandorte NRW"}],sourceOptions:{ratio:1}})}function q(){return new S({title:"Straßennetz Landesbetrieb Straßenbau NRW",url:"https://www.wms.nrw.de/wms/strassen_nrw_wms",sublayers:[{name:"1",title:"Verwaltungen"},{name:"4",title:"Abschnitte und Äste"},{name:"6",title:"Unfälle"}]})}const B={"toc-map":{name:"toc-map",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:A,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:T,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:D,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/toc":{name:"@open-pioneer/toc",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}}},H=`:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move} `,N=["en","de"];function U(e){switch(e){case"en":return h(()=>import("./4e731ddbc9af.js"),[],import.meta.url).then(t=>t.default);case"de":return h(()=>import("./0f8dafe3cfa6.js"),[],import.meta.url).then(t=>t.default)}throw new Error(`Unsupported locale: '${e}'`)}const V=y(H),F=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:U,locales:N,packages:B,styles:V},Symbol.toStringTag,{value:"Module"})),K="toc-map",$=L.bind(void 0,K);function J(){const e=$(),t=m.useId(),[r,n]=m.useState(!0);function i(){n(!r)}return o.jsx(s,{height:"100%",direction:"column",overflow:"hidden",children:o.jsx(b,{title:o.jsx(c,{role:"region","aria-label":e.formatMessage({id:"ariaLabel.header"}),textAlign:"center",py:1,children:o.jsx(g,{size:"md",children:"OpenLayers Base Packages - TOC and Health Check Sample"})}),children:o.jsx(s,{flex:"1",direction:"column",children:o.jsxs(M,{mapId:d,role:"main","aria-label":e.formatMessage({id:"ariaLabel.map"}),children:[o.jsx(p,{position:"top-left",horizontalGap:10,verticalGap:10,children:r&&o.jsx(c,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:350,children:r&&o.jsx(c,{role:"dialog","aria-labelledby":t,children:o.jsx(b,{title:o.jsx(g,{id:t,size:"md",mb:2,children:e.formatMessage({id:"tocTitle"})}),children:o.jsx(R,{mapId:d,showTools:!0,basemapSwitcherProps:{allowSelectingEmptyBasemap:!0}})})})})}),o.jsx(p,{position:"top-right",horizontalGap:10,verticalGap:10,children:o.jsxs(E,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:"400px",children:[o.jsx(v,{as:"b",children:"Description"}),o.jsxs(v,{children:["This application can be used to test the TOC, including health checks for configured layers. Two base layers (",'"',"TopPlus Open",'"'," and ",'"',"TopPlus Open (Grau)",'"',") and one operational layer (",'"',"Schulstandorte",'"',") will be unavailable and should be marked as such by the UI."]})]})}),o.jsx(p,{position:"bottom-right",horizontalGap:10,verticalGap:45,children:o.jsx(s,{role:"toolbar","aria-label":e.formatMessage({id:"ariaLabel.toolbar"}),direction:"column",gap:1,padding:1,children:o.jsx(P,{label:e.formatMessage({id:"tocTitle"}),icon:o.jsx(I,{}),isActive:r,onClick:i})})})]})})})})}const Y=z({component:J,appMetadata:F,async resolveConfig(e){const t=e.getAttribute("forced-locale");if(t)return{locale:t}}});customElements.define("toc-map-app",Y);const Z=document.getElementsByTagName("body")[0];Q();function Q(){const e=window.location.search,r=new URLSearchParams(e).get("lang"),n=document.createElement("toc-map-app");n.classList.add("full-height"),n.classList.add("app"),n.setAttribute("id","test"),r&&n.setAttribute("forced-locale",r),Z.appendChild(n)} diff --git a/openlayers-base-packages/assets/f16488b1be7f.js b/openlayers-base-packages/assets/c2466a6c428e.js similarity index 82% rename from openlayers-base-packages/assets/f16488b1be7f.js rename to openlayers-base-packages/assets/c2466a6c428e.js index c26903222..fac2148ad 100644 --- a/openlayers-base-packages/assets/f16488b1be7f.js +++ b/openlayers-base-packages/assets/c2466a6c428e.js @@ -1 +1 @@ -const e=JSON.parse('{"ol-map":{"basemapLabel":"Select basemap:","tocTitle":"Table of contents","legendTitle":"Legend","measurementTitle":"Measurement","selectionTitle":"Selection","overviewMapTitle":"Overview map","startEditingTitle":"Editing - Create new feature","stopEditingTitle":"Editing - Stop","resetEditingTitle":"Editing - Reset","editing.featureCreated":"Created feature with ID: {featureId}","resultListTitle":"Result-List","ariaLabel.header":"Header bar","ariaLabel.footer":"Base bar with scale information, spatial reference system and coordinate display","ariaLabel.map":"Map. Use the arrow keys to move the map. Zoom in with the plus button and zoom out with the minus button.","ariaLabel.toolbar":"Maptools","geolocationTitle":"Geolocation","spatialBookmarkTitle":"Spatial bookmarks","printingTitle":"Printing","layerNotVisibleReason":"Matching layer is not visible.","searchSources.miningPermissions":"Mining permissions","searchSources.lika":"Cadastre data in NRW","foundResults":"Found {resultsCount, plural, =0 {no results} one {1 result} other {{resultsCount} results} }."},"@open-pioneer/editing":{"title":"Editing","tooltip.begin":"Click to start creating the geometry","tooltip.continue":"Double click to finish the geometry and save the feature"},"@open-pioneer/experimental-layout-sidebar":{"toggle.expand":"Expand","toggle.collapse":"Collapse"},"@open-pioneer/geolocation":{"locateNotSupported":"Geolocation is not supported.","locateMeStart":"Start geolocation","locateMeEnd":"Stop geolocation","error":"Error","permissionDenied":"Geolocation was canceled.","positionUnavailable":"Geolocation position cannot be determined.","timeout":"Geolocation was canceled due to timeout.","unknownError":"An unexpected error occurred during geolocation."},"@open-pioneer/legend":{"altLabel":"legend image for layer {layerName}","fallbackLabel":"legend not available","basemapLabel":"Basemap"},"@open-pioneer/measurement":{"measurementLabel":"Mode","distance":"Distance","area":"Area","deleteMeasurementLabel":"Delete measurements","measurementInfoText":"Click in the map to start a measurement.","tooltips.help":"Click to start measuring.","tooltips.continue":"Double click to end the measurement."},"@open-pioneer/map-navigation":{"initial-extent.title":"Zoom to initial extent","zoom-in.title":"Zoom in","zoom-out.title":"Zoom out"},"@open-pioneer/result-list":{"selectAllTooltip":"Select all","deSelectAllTooltip":"Deselect all","noDataMessage":"No data available","displayBoolean.true":"yes","displayBoolean.false":"no","ariaLabel.selectSingle":"Press space to select or deselect."},"@open-pioneer/printing":{"title":"Title","fileFormat":"File format","export":"Export","input.placeholder":"Enter title","printingMap":"Map is printing ...","printingFailed":"Failed to print the map."},"@open-pioneer/search":{"noOptionsText":"No results found","loadingText":"Loading...","searchPlaceholder":"Search...","ariaLabel.search":"Search bar","ariaLabel.instructions":"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu, press Tab to select the option and exit the menu.","ariaLabel.searchFocus":"focused","ariaLabel.searchSelect":"selected","ariaLabel.searchClear":"cleared","ariaLabel.clearButton":"Empty the search"},"@open-pioneer/selection":{"selectMethod":"Select method","EXTENT":"Rechteck","POLYGON":"Polygon","FREEPOLYGON":"Freies Zeichnen","CIRCLE":"Kreis","selectSource":"Select source","tooltip":"Click on the map, hold down the mouse button and draw a rectangle","disabledTooltip":"The current selection source is not available","sourceNotAvailable":"Source not available","selectionFailed":"Spatial selection failed","selectionPlaceholder":"No source selected","layerNotVisibleReason":"Matching layer is not visible."},"@open-pioneer/spatial-bookmarks":{"bookmark.button.create":"Add new bookmark","bookmark.button.deleteAll":"Delete all bookmarks","bookmark.button.deleteOne":"Delete bookmark","bookmark.button.save":"Save","bookmark.button.cancel":"Cancel","bookmark.button.cancelDelete":"No","bookmark.button.confirmDelete":"Yes","bookmark.input.label":"Name","bookmark.input.placeholder":"Enter bookmark name","bookmark.alert.create":"After entering a name you can save the new bookmark. The current map extent is used as the basis for the position.","bookmark.alert.delete":"Do you really want to delete all spatial bookmarks?","bookmark.alert.noSaved":"No bookmarks saved","bookmark.list.label":"Spatial bookmarks"},"@open-pioneer/toc":{"basemapsLabel":"Basemaps","descriptionLabel":"Layer description","operationalLayerLabel":"Operational layers","missingLayers":"There are no layers to display.","error":"Error while creating map content.","layerNotAvailable":"Layer not available","toolsLabel":"Map tools","tools.hideAllLayers":"Hide all layers"},"@open-pioneer/basemap-switcher":{"emptyBasemapLabel":"Without basemap","layerNotAvailable":"Layer not available"}}');export{e as default}; +const e=JSON.parse('{"ol-map":{"basemapLabel":"Select basemap:","tocTitle":"Table of contents","legendTitle":"Legend","measurementTitle":"Measurement","selectionTitle":"Selection","overviewMapTitle":"Overview map","startEditingTitle":"Editing - Create new feature","stopEditingTitle":"Editing - Stop","resetEditingTitle":"Editing - Reset","editing.featureCreated":"Created feature with ID: {featureId}","resultListTitle":"Result-List","ariaLabel.header":"Header bar","ariaLabel.footer":"Base bar with scale information, spatial reference system and coordinate display","ariaLabel.map":"Map. Use the arrow keys to move the map. Zoom in with the plus button and zoom out with the minus button.","ariaLabel.toolbar":"Maptools","geolocationTitle":"Geolocation","spatialBookmarkTitle":"Spatial bookmarks","printingTitle":"Printing","layerNotVisibleReason":"Matching layer is not visible.","searchSources.miningPermissions":"Mining permissions","searchSources.lika":"Cadastre data in NRW","foundResults":"Found {resultsCount, plural, =0 {no results} one {1 result} other {{resultsCount} results} }."},"@open-pioneer/editing":{"title":"Editing","tooltip.begin":"Click to start creating the geometry","tooltip.continue":"Double click to finish the geometry and save the feature"},"@open-pioneer/experimental-layout-sidebar":{"toggle.expand":"Expand","toggle.collapse":"Collapse"},"@open-pioneer/geolocation":{"locateNotSupported":"Geolocation is not supported.","locateMeStart":"Start geolocation","locateMeEnd":"Stop geolocation","error":"Error","permissionDenied":"Geolocation was canceled.","positionUnavailable":"Geolocation position cannot be determined.","timeout":"Geolocation was canceled due to timeout.","unknownError":"An unexpected error occurred during geolocation."},"@open-pioneer/legend":{"altLabel":"legend image for layer {layerName}","fallbackLabel":"legend not available","basemapLabel":"Basemap"},"@open-pioneer/map-navigation":{"initial-extent.title":"Zoom to initial extent","zoom-in.title":"Zoom in","zoom-out.title":"Zoom out"},"@open-pioneer/measurement":{"measurementLabel":"Mode","distance":"Distance","area":"Area","deleteMeasurementLabel":"Delete measurements","measurementInfoText":"Click in the map to start a measurement.","tooltips.help":"Click to start measuring.","tooltips.continue":"Double click to end the measurement."},"@open-pioneer/printing":{"title":"Title","fileFormat":"File format","export":"Export","input.placeholder":"Enter title","printingMap":"Map is printing ...","printingFailed":"Failed to print the map."},"@open-pioneer/result-list":{"selectAllTooltip":"Select all","deSelectAllTooltip":"Deselect all","noDataMessage":"No data available","displayBoolean.true":"yes","displayBoolean.false":"no","ariaLabel.selectSingle":"Press space to select or deselect."},"@open-pioneer/search":{"noOptionsText":"No results found","loadingText":"Loading...","searchPlaceholder":"Search...","ariaLabel.search":"Search bar","ariaLabel.instructions":"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu, press Tab to select the option and exit the menu.","ariaLabel.searchFocus":"focused","ariaLabel.searchSelect":"selected","ariaLabel.searchClear":"cleared","ariaLabel.clearButton":"Empty the search"},"@open-pioneer/selection":{"selectMethod":"Select method","EXTENT":"Rechteck","POLYGON":"Polygon","FREEPOLYGON":"Freies Zeichnen","CIRCLE":"Kreis","selectSource":"Select source","tooltip":"Click on the map, hold down the mouse button and draw a rectangle","disabledTooltip":"The current selection source is not available","sourceNotAvailable":"Source not available","selectionFailed":"Spatial selection failed","selectionPlaceholder":"No source selected","layerNotVisibleReason":"Matching layer is not visible."},"@open-pioneer/spatial-bookmarks":{"bookmark.button.create":"Add new bookmark","bookmark.button.deleteAll":"Delete all bookmarks","bookmark.button.deleteOne":"Delete bookmark","bookmark.button.save":"Save","bookmark.button.cancel":"Cancel","bookmark.button.cancelDelete":"No","bookmark.button.confirmDelete":"Yes","bookmark.input.label":"Name","bookmark.input.placeholder":"Enter bookmark name","bookmark.alert.create":"After entering a name you can save the new bookmark. The current map extent is used as the basis for the position.","bookmark.alert.delete":"Do you really want to delete all spatial bookmarks?","bookmark.alert.noSaved":"No bookmarks saved","bookmark.list.label":"Spatial bookmarks"},"@open-pioneer/toc":{"basemapsLabel":"Basemaps","descriptionLabel":"Layer description","operationalLayerLabel":"Operational layers","missingLayers":"There are no layers to display.","error":"Error while creating map content.","layerNotAvailable":"Layer not available","toolsLabel":"Map tools","tools.hideAllLayers":"Hide all layers"},"@open-pioneer/basemap-switcher":{"emptyBasemapLabel":"Without basemap","layerNotAvailable":"Layer not available"}}');export{e as default}; diff --git a/openlayers-base-packages/assets/b2434404c3bf.js b/openlayers-base-packages/assets/d1331e772e66.js similarity index 93% rename from openlayers-base-packages/assets/b2434404c3bf.js rename to openlayers-base-packages/assets/d1331e772e66.js index ecfb6f2d2..cec64f349 100644 --- a/openlayers-base-packages/assets/b2434404c3bf.js +++ b/openlayers-base-packages/assets/d1331e772e66.js @@ -1,2 +1,2 @@ -import{p as z,r as n,j as e,B as a,O as j,F as S,d as C,v as I}from"./4a2b71d7880f.js";import{t as M}from"./848f03e9a62e.js";import{z as T,T as _,O as R,ac as P,ab as E,aB as g,aD as U,y as m,aE as A,aN as D,aO as G}from"./39284370b430.js";import{_ as x}from"./a419295615be.js";import{R as F}from"./1fc563cd288a.js";import{C as H}from"./74b70b9bace5.js";import{S as B,T as b,V,U as q,a as s}from"./12553b373d3d.js";import{M as W}from"./8067ba7f14cf.js";import{M as $,a as X,b as p}from"./a1b8b346c1fe.js";import{C as Y}from"./19e5f0fcaf8a.js";import"./20bfdcc464b7.js";import"./c3dd43fe6cb8.js";const f="main";class Z{mapId=f;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new T({title:"OSM",isBaseLayer:!0,olLayer:new _({source:new R})})]}}}const J={"result-list-app":{name:"result-list-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:Z,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:P,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:E,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/result-list":{name:"@open-pioneer/result-list",services:{},ui:{references:[]},properties:{}}},K=`:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.result-list-no-data-message{text-align:center;margin-top:50px;font-weight:700;font-size:larger}.result-list-table th,.result-list-table td{overflow-wrap:break-word}.result-list-table.result-list-table--is-resizing *{cursor:col-resize}.result-list-table thead{position:sticky;top:0;z-index:1;background:var(--chakra-colors-background_body)}.result-list-table th{position:relative;border-right-width:thin}.result-list-table tbody tr:hover{background:var(--chakra-colors-background_light)}.result-list-table .result-list-resizer{position:absolute;top:0;height:100%;right:0;width:8px;background:var(--chakra-colors-trails-100);transform:scaleX(.25);cursor:col-resize;-webkit-user-select:none;user-select:none;touch-action:none;padding-left:0}.result-list-table th:last-child .result-list-resizer{width:8px;transform:translate(50%) scaleX(.25)}.result-list-table th .result-list-resizer.result-list-resizer--is-resizing{background:var(--chakra-colors-trails-500);transform:scale(1)}.result-list-table th .result-list-resizer:hover{transform:scale(1)} +import{p as z,r as n,j as e,B as a,O as j,F as S,d as C,v as I}from"./4a2b71d7880f.js";import{t as M}from"./848f03e9a62e.js";import{z as T,T as _,O as R,ac as P,ab as E,aB as g,aD as U,y as m,aE as A,aN as D,aO as G}from"./39284370b430.js";import{_ as x}from"./a419295615be.js";import{R as F}from"./1fc563cd288a.js";import{C as H}from"./74b70b9bace5.js";import{S as B,T as b,V,U as q,a as s}from"./12553b373d3d.js";import{M as W}from"./8067ba7f14cf.js";import{M as $,a as X,b as p}from"./a1b8b346c1fe.js";import{C as Y}from"./19e5f0fcaf8a.js";import"./20bfdcc464b7.js";import"./c3dd43fe6cb8.js";const f="main";class Z{mapId=f;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new T({title:"OSM",isBaseLayer:!0,olLayer:new _({source:new R})})]}}}const J={"result-list-app":{name:"result-list-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:Z,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:P,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:E,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/result-list":{name:"@open-pioneer/result-list",services:{},ui:{references:[]},properties:{}}},K=`:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.result-list-no-data-message{text-align:center;margin-top:50px;font-weight:700;font-size:larger}.result-list-table th,.result-list-table td{overflow-wrap:break-word}.result-list-table.result-list-table--is-resizing *{cursor:col-resize}.result-list-table thead{position:sticky;top:0;z-index:1;background:var(--chakra-colors-background_body)}.result-list-table th{position:relative;border-right-width:thin}.result-list-table tbody tr:hover{background:var(--chakra-colors-background_light)}.result-list-table .result-list-resizer{position:absolute;top:0;height:100%;right:0;width:8px;background:var(--chakra-colors-trails-100);transform:scaleX(.25);cursor:col-resize;-webkit-user-select:none;user-select:none;touch-action:none;padding-left:0}.result-list-table th:last-child .result-list-resizer{width:8px;transform:translate(50%) scaleX(.25)}.result-list-table th .result-list-resizer.result-list-resizer--is-resizing{background:var(--chakra-colors-trails-500);transform:scale(1)}.result-list-table th .result-list-resizer:hover{transform:scale(1)} `,Q=["en","de"];function ee(o){switch(o){case"en":return x(()=>import("./190bda9c8090.js"),[],import.meta.url).then(i=>i.default);case"de":return x(()=>import("./0d78b0e02630.js"),[],import.meta.url).then(i=>i.default)}throw new Error(`Unsupported locale: '${o}'`)}const oe=z(K),re=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:ee,locales:Q,packages:J,styles:oe},Symbol.toStringTag,{value:"Module"})),v=400;function te(){const[o,i]=n.useState(0),[r,h]=n.useState(),[w,d]=n.useState(!1),[c,y]=n.useState(!1),L=!!r&&w,l=u=>{h(u),d(!0),i(o+1)},O=n.useMemo(()=>{if(!r||!c)return r;const u=r.columns.filter((me,k)=>k%2==1);return{...r,columns:u}},[c,r]);return e.jsx(g,{height:"100%",direction:"column",overflow:"hidden",children:e.jsx(U,{title:e.jsx(m,{textAlign:"center",py:1,children:e.jsx(A,{size:"md",children:"OpenLayers Base Packages - Result List"})}),children:e.jsxs(g,{flex:"1",direction:"column",position:"relative",children:[e.jsxs(D,{mapId:f,viewPadding:{bottom:L?v:0},children:[e.jsx(G,{position:"top-left",horizontalGap:10,verticalGap:10,children:e.jsx(m,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:e.jsxs(B,{children:[e.jsx(b,{align:"center",children:"Test Controls:"}),e.jsxs(W,{placement:"right-end",children:[e.jsx($,{as:a,rightIcon:e.jsx(H,{}),children:"Fill result list"}),e.jsx(j,{children:e.jsxs(X,{children:[e.jsx(p,{onClick:()=>l(le),children:"Persons"}),e.jsx(p,{onClick:()=>l(ae),children:"Custom render"}),e.jsx(p,{onClick:()=>l(ne),children:"Generated"}),e.jsx(p,{onClick:()=>l(pe),children:"Long Strings"}),e.jsx(p,{onClick:()=>l(ce),children:"Many Columns"})]})})]}),e.jsxs(a,{onClick:()=>y(!c),children:[c?"Show":"Hide"," even columns"]}),e.jsx(a,{isDisabled:r===void 0,onClick:()=>d(!0),children:"Show result list"}),e.jsx(a,{onClick:()=>d(!1),children:"Hide result list"}),e.jsx(a,{isDisabled:r===void 0,onClick:()=>h(void 0),children:"Close result list"})]})})}),e.jsx(G,{position:"top-right",horizontalGap:10,verticalGap:10,children:e.jsxs(V,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:"400px",maxHeight:"300px",overflow:"auto",children:[e.jsx(b,{as:"b",children:"Description"}),e.jsx(b,{children:"This application can be used to test the result list component. Internally, this application keeps track of the current result list input and displays it when the component shall be shown."}),e.jsxs(q,{children:[e.jsx(s,{children:"If the result list has been filled, it can be hidden and shown again while preserving the state (selection, sort, scroll, ...)."}),e.jsx(s,{children:"The result list is embedded with a fixed height (with internal scrolling) above the map (using view padding). Showing or hiding the component will animate the view."}),e.jsx(s,{children:"Toggling columns will preserve the state of the result list."}),e.jsx(s,{children:"Filling the result list again resets the state (even when using equal data)."}),e.jsx(s,{children:"Fully closing the result list drops all state."})]})]})})]}),O&&e.jsx(m,{position:"absolute",visibility:L?"visible":"hidden",bottom:"0",backgroundColor:"white",width:"100%",height:`${v}px`,borderTop:"2px solid",borderColor:"trails.500",zIndex:1,children:e.jsx(F,{input:O},String(o))})]})})})}let ie=1;function t(o,i,r){return{id:String(ie++),properties:{name:o,age:i,city:r}}}const le={data:[t("Test User A",21,"Cologne"),t("Test User B",33,"Berlin"),t("Test User C",44,"New York"),t("Test User D",55,"London"),t("Test User E",8,"Rome"),t("Test User F",14,"Vienna"),t("Test User G",17,"Paris"),t("Test User H",27,"Brussels"),t("Test User I",19,"Warsaw")],columns:[{displayName:"id",getPropertyValue(o){return o.id}},{propertyName:"name"},{propertyName:"age"},{propertyName:"city"}]},ne={data:Array.from(Array(100).keys()).map(o=>({id:o,properties:{boolean:o%2==0,empty:o%2==0?null:void 0,number:o,float:o/7,string:`Item ${o}`,date:new Date}})),columns:[{propertyName:"boolean"},{propertyName:"number"},{propertyName:"float"},{propertyName:"string"},{propertyName:"date"},{propertyName:"empty"}],formatOptions:{numberOptions:{maximumFractionDigits:2},dateOptions:{timeStyle:"full",dateStyle:"full",timeZone:"UTC"}}},ae={data:[{id:1,properties:{bool:!0}},{id:2,properties:{bool:!1}},{id:3,properties:{bool:void 0}}],columns:[{displayName:"id (with tooltip)",getPropertyValue(o){return o.id},renderCell({feature:o}){return e.jsx(se,{id:o.id})}},{displayName:"boolean as checkbox (read only)",propertyName:"bool",renderCell({value:o}){return e.jsx(Y,{isIndeterminate:o===void 0,isChecked:!!o})}}]};function se(o){return e.jsx(S,{label:`tooltip for feature ${o.id}`,placement:"top",children:e.jsx(C.span,{children:o.id})})}const pe={data:[{id:1,properties:{short:"Short 1",long:"LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG LONG "}},{id:2,properties:{short:"Short 2",long:"LONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONG"}}],columns:[{propertyName:"short"},{propertyName:"long",width:300}]},ce={columns:[{propertyName:"a"},{propertyName:"b"},{propertyName:"c"},{propertyName:"d"},{propertyName:"e"},{propertyName:"f"},{propertyName:"g"},{propertyName:"h"},{propertyName:"i"}],data:[{id:0,properties:{a:1,b:1,c:1,d:1,e:1,f:1,g:1,h:1,i:1}}]},de=new URLSearchParams(window.location.search),N=de.get("lang"),ue=I({component:te,theme:M,appMetadata:re,config:{locale:N==="de"||N==="en"?N:void 0}});customElements.define("result-list-app",ue); diff --git a/openlayers-base-packages/assets/1fd2cfa0f8a5.js b/openlayers-base-packages/assets/d3807fb7088a.js similarity index 92% rename from openlayers-base-packages/assets/1fd2cfa0f8a5.js rename to openlayers-base-packages/assets/d3807fb7088a.js index 18e0771a0..67e417fe5 100644 --- a/openlayers-base-packages/assets/1fd2cfa0f8a5.js +++ b/openlayers-base-packages/assets/d3807fb7088a.js @@ -1,2 +1,2 @@ -import{p as x,j as o,B as r,v}from"./4a2b71d7880f.js";import{z as f,T as k,O as w,ac as y,ab as z,af as j,a0 as n,a3 as a,aB as c,aD as M,y as d,aE as S,aN as C,aO as g}from"./39284370b430.js";import{L as u}from"./d0d59a9edbe6.js";import{S as I,T as s,V as P,U as L,a as i}from"./12553b373d3d.js";const p="main";class R{mapId=p;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new f({title:"OSM",isBaseLayer:!0,olLayer:new k({source:new w})})]}}}const A={"highlight-and-zoom-app":{name:"highlight-and-zoom-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:R,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:y,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:z,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}}},H=`:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move} +import{p as x,j as o,B as r,v}from"./4a2b71d7880f.js";import{z as f,T as k,O as w,ac as y,ab as z,af as j,a0 as n,a3 as a,aB as c,aD as M,y as d,aE as S,aN as C,aO as g}from"./39284370b430.js";import{L as u}from"./d0d59a9edbe6.js";import{S as I,T as s,V as P,U as L,a as i}from"./12553b373d3d.js";const p="main";class R{mapId=p;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new f({title:"OSM",isBaseLayer:!0,olLayer:new k({source:new w})})]}}}const A={"highlight-and-zoom-app":{name:"highlight-and-zoom-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:R,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:y,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:z,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}}},H=`:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move} `,T=[];function G(e){throw new Error(`Unsupported locale: '${e}'`)}const q=x(H),B=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:G,locales:T,packages:A,styles:q},Symbol.toStringTag,{value:"Module"}));function O(){const{map:e}=j(p),l=[new n([852011.307424,6788511322702e-6]),new n([829800.379064,6809086916672e-6])],m=[new u([[851890.680238,6788133616293e-6],[851298.293269,6790235634571e-6],[853419.420804,6790407617885e-6]]),new u([[848107.047338,6790579601198e-6],[849081.619449,6793197569417e-6]])],b=[new a([[[851728.251553,6788384425292e-6],[851518.049725,6788651954891e-6],[852182.096409,6788881265976e-6],[851728.251553,6788384425292e-6]]]),new a([[[845183.331006,6794496998898e-6],[850132.628588,6794764528497e-6],[850629.469272,6791707047365e-6],[844399.851466,6791229315939e-6],[845183.331006,6794496998898e-6]]])],h=[new n([852011.307424,6788511322702e-6]),new a([[[845183.331006,6794496998898e-6],[850132.628588,6794764528497e-6],[850629.469272,6791707047365e-6],[844399.851466,6791229315939e-6],[845183.331006,6794496998898e-6]]])];return o.jsx(c,{height:"100%",direction:"column",overflow:"hidden",children:o.jsx(M,{title:o.jsx(d,{textAlign:"center",py:1,children:o.jsx(S,{size:"md",children:"OpenLayers Base Packages - Highlight and Zoom"})}),children:o.jsx(c,{flex:"1",direction:"column",position:"relative",children:o.jsxs(C,{mapId:p,children:[o.jsx(g,{position:"top-left",horizontalGap:10,verticalGap:10,children:o.jsx(d,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:o.jsxs(I,{pt:5,children:[o.jsx(s,{align:"center",children:"Test Controls:"}),o.jsx(r,{onClick:()=>t(e,l),children:"Points"}),o.jsx(r,{onClick:()=>t(e,m),children:"LineString"}),o.jsx(r,{onClick:()=>t(e,b),children:"Polygons"}),o.jsx(r,{onClick:()=>t(e,h),children:"Mixed"}),o.jsx(r,{onClick:()=>F(e),children:"Reset"})]})})}),o.jsx(g,{position:"top-right",horizontalGap:10,verticalGap:10,children:o.jsxs(P,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:"400px",children:[o.jsx(s,{as:"b",children:"Description"}),o.jsx(s,{children:"This application can be used to test adding highlight or marker, zoom to their extent, and removing highlight and marker. The highlight and zoom for point, line string and polygon geometries can be tested."}),o.jsxs(L,{children:[o.jsxs(i,{children:["Clicking on ","'Points'"," adds markers for point geometries."]}),o.jsxs(i,{children:["Clicking on ","'LineString'"," adds highlight for linestring geometries."]}),o.jsxs(i,{children:["Clicking on ","'Polygon'"," adds highlight for polygon geometries."]}),o.jsxs(i,{children:["Clicking on ","'Mixed'"," adds highlight for geometries of different types."]}),o.jsxs(i,{children:["Clicking on ","'Reset'"," removes the highlights or markers from the map."]})]})]})})]})})})})}function t(e,l){e&&e.highlightAndZoom(l,{})}function F(e){e&&e.removeHighlight()}const E=v({component:O,appMetadata:B});customElements.define("highlight-and-zoom-app",E); diff --git a/openlayers-base-packages/assets/6b8fa458910f.js b/openlayers-base-packages/assets/d777195b40a0.js similarity index 92% rename from openlayers-base-packages/assets/6b8fa458910f.js rename to openlayers-base-packages/assets/d777195b40a0.js index a64606e0d..2572813f7 100644 --- a/openlayers-base-packages/assets/6b8fa458910f.js +++ b/openlayers-base-packages/assets/d777195b40a0.js @@ -1 +1 @@ -import{p as c,j as e,B as a,v as l}from"./4a2b71d7880f.js";import{C as p}from"./74b70b9bace5.js";import{C as m,H as u}from"./e1d278c03cea.js";import{V as h,T as r,U as d,a as t}from"./12553b373d3d.js";import{M as x}from"./8067ba7f14cf.js";import{M as f,a as j,b as s}from"./a1b8b346c1fe.js";import"./20bfdcc464b7.js";const k={"menu-fix-app":{name:"menu-fix-app",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}}},g="",M=[];function b(n){throw new Error(`Unsupported locale: '${n}'`)}const C=c(g),v=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:b,locales:M,packages:k,styles:C},Symbol.toStringTag,{value:"Module"}));function S(){return e.jsx(e.Fragment,{children:e.jsxs(m,{p:5,children:[e.jsxs(u,{children:[o({title:"Closes on select",closeOnSelect:!0}),o({title:"Does not close on select",closeOnSelect:!1})]}),e.jsxs(h,{mt:5,align:"start",spacing:2,children:[e.jsx(r,{as:"b",children:"Description"}),e.jsxs(r,{children:["This application is used to test Chakra-UI menus inside a Shadow DOM. Patches against Chakra","'","s ",e.jsx("code",{children:"Menu"})," component and"," ",e.jsx("code",{children:"useOutsideClick()"})," hooks ensure that the component behaves as expected:"]}),e.jsxs(d,{children:[e.jsx(t,{children:"Both menu buttons should behave normally when clicking them multiple times (first click on button opens menu; second click hides it again)."}),e.jsx(t,{children:"Both menus close when the user clicks outside."}),e.jsx(t,{children:"The first menu should close by itself if some menu item is clicked."}),e.jsxs(t,{children:["The second menu should ",e.jsx("em",{children:"not"})," close itself if an item is clicked."]})]})]})]})})}function o(n){const i=()=>{};return e.jsxs(x,{closeOnSelect:n.closeOnSelect??!0,onClose:i,children:[e.jsx(f,{as:a,rightIcon:e.jsx(p,{}),children:n.title}),e.jsxs(j,{children:[e.jsx(s,{children:"Download"}),e.jsx(s,{children:"Create a Copy"}),e.jsx(s,{children:"Mark as Draft"}),e.jsx(s,{children:"Delete"}),e.jsx(s,{children:"Attend a Workshop"})]})]})}const O=l({component:S,appMetadata:v});customElements.define("menu-fix-app",O); +import{p as c,j as e,B as a,v as l}from"./4a2b71d7880f.js";import{C as p}from"./74b70b9bace5.js";import{C as m,H as u}from"./e1d278c03cea.js";import{V as h,T as r,U as d,a as t}from"./12553b373d3d.js";import{M as x}from"./8067ba7f14cf.js";import{M as f,a as j,b as s}from"./a1b8b346c1fe.js";import"./20bfdcc464b7.js";const k={"menu-fix-app":{name:"menu-fix-app",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},g="",M=[];function b(n){throw new Error(`Unsupported locale: '${n}'`)}const C=c(g),v=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:b,locales:M,packages:k,styles:C},Symbol.toStringTag,{value:"Module"}));function S(){return e.jsx(e.Fragment,{children:e.jsxs(m,{p:5,children:[e.jsxs(u,{children:[o({title:"Closes on select",closeOnSelect:!0}),o({title:"Does not close on select",closeOnSelect:!1})]}),e.jsxs(h,{mt:5,align:"start",spacing:2,children:[e.jsx(r,{as:"b",children:"Description"}),e.jsxs(r,{children:["This application is used to test Chakra-UI menus inside a Shadow DOM. Patches against Chakra","'","s ",e.jsx("code",{children:"Menu"})," component and"," ",e.jsx("code",{children:"useOutsideClick()"})," hooks ensure that the component behaves as expected:"]}),e.jsxs(d,{children:[e.jsx(t,{children:"Both menu buttons should behave normally when clicking them multiple times (first click on button opens menu; second click hides it again)."}),e.jsx(t,{children:"Both menus close when the user clicks outside."}),e.jsx(t,{children:"The first menu should close by itself if some menu item is clicked."}),e.jsxs(t,{children:["The second menu should ",e.jsx("em",{children:"not"})," close itself if an item is clicked."]})]})]})]})})}function o(n){const i=()=>{};return e.jsxs(x,{closeOnSelect:n.closeOnSelect??!0,onClose:i,children:[e.jsx(f,{as:a,rightIcon:e.jsx(p,{}),children:n.title}),e.jsxs(j,{children:[e.jsx(s,{children:"Download"}),e.jsx(s,{children:"Create a Copy"}),e.jsx(s,{children:"Mark as Draft"}),e.jsx(s,{children:"Delete"}),e.jsx(s,{children:"Attend a Workshop"})]})]})}const O=l({component:S,appMetadata:v});customElements.define("menu-fix-app",O); diff --git a/openlayers-base-packages/assets/702b940244c6.js b/openlayers-base-packages/assets/d7a128c1be2b.js similarity index 98% rename from openlayers-base-packages/assets/702b940244c6.js rename to openlayers-base-packages/assets/d7a128c1be2b.js index 7124466c8..a1b78620c 100644 --- a/openlayers-base-packages/assets/702b940244c6.js +++ b/openlayers-base-packages/assets/d7a128c1be2b.js @@ -16,5 +16,5 @@ ${s}`)!==100){const l=e.replace("{font-family}",s.replace(/ /g,"-").toLowerCase( `)return G.push(` `,""),G;if(re==2){G.push(_r(J,st),ie);return}J=Pr(J,ie,Qt,st).split(` `);for(let le=0,ue=J.length;le0&&G.push(` -`,""),G.push(J[le],ie);return G},[]):ee=vr(Z,X).trim(),we=z(x,"paint","text-opacity",v,T,m,S)}if(ee&&we&&!Yt){kt||(++L,b=C[L],(!b||!b.getText()||b.getFill()||b.getStroke())&&(b=new Ce,C[L]=b),b.setImage(void 0),b.setGeometry(void 0)),b.getText()||b.setText(N||new Uo({padding:[2,2,2,2]})),N=b.getText();const U=nt["text-transform"];U=="uppercase"?ee=Array.isArray(ee)?ee.map((Y,Pe)=>Pe%2?Y:Y.toUpperCase()):ee.toUpperCase():U=="lowercase"&&(ee=Array.isArray(ee)?ee.map((Y,Pe)=>Pe%2?Y:Y.toLowerCase()):ee.toLowerCase());const Z=Array.isArray(ee)?ee:re==2?_r(ee,st):Pr(ee,ot,Qt,st);N.setText(Z),N.setFont(ot),N.setRotation(yr(z(x,"layout","text-rotate",v,T,m,S)));const G=z(x,"layout","text-anchor",v,T,m,S),H=kt||re==1?"point":z(x,"layout","symbol-placement",v,T,m,S);let j;if(H==="line-center"?(N.setPlacement("line"),j="center"):N.setPlacement(H),H==="line"&&typeof N.setRepeat=="function"){const Y=z(x,"layout","symbol-spacing",v,T,m,S);N.setRepeat(Y*2)}N.setOverflow(H==="point");let O=z(x,"paint","text-halo-width",v,T,m,S);const ie=z(x,"layout","text-offset",v,T,m,S),J=z(x,"paint","text-translate",v,T,m,S);let le=0,ue=0;if(H=="point"){j="center",G.indexOf("left")!==-1?(j="left",ue=O):G.indexOf("right")!==-1&&(j="right",ue=-O);const Y=z(x,"layout","text-rotation-alignment",v,T,m,S);N.setRotateWithView(Y=="map")}else N.setMaxAngle(yr(z(x,"layout","text-max-angle",v,T,m,S))*ee.length/Z.length),N.setRotateWithView(!1);N.setTextAlign(j);let ae="middle";G.indexOf("bottom")==0?(ae="bottom",le=-O-.5*(at-1)*Se):G.indexOf("top")==0&&(ae="top",le=O+.5*(at-1)*Se),N.setTextBaseline(ae);const ce=z(x,"layout","text-justify",v,T,m,S);N.setJustify(ce==="auto"?void 0:ce),N.setOffsetX(ie[0]*Se+ue+J[0]),N.setOffsetY(ie[1]*Se+le+J[1]),E.setColor(Ee(z(x,"paint","text-color",v,T,m,S),we)),N.setFill(E);const W=Ee(z(x,"paint","text-halo-color",v,T,m,S),we);if(W){I.setColor(W),O*=2;const Y=.5*Se;I.setWidth(O<=Y?O:Y),N.setStroke(I)}else N.setStroke(void 0);const oe=z(x,"layout","text-padding",v,T,m,S),he=N.getPadding();oe!==he[0]&&(he[0]=oe,he[1]=oe,he[2]=oe,he[3]=oe),b.setZIndex(Oe)}}}if(L>-1)return C.length=L+1,C};return t.setStyle(D),t.set("mapbox-source",F),t.set("mapbox-layers",f),t.set("mapbox-featurestate",t.get("mapbox-featurestate")||{}),D}function Wl(t,e=512){return t.getExtent()?Dr({extent:t.getExtent(),tileSize:e,maxZoom:22}).getResolutions():vt}function Xl(t,e){return e.accessToken||(e=Object.assign({},e),new URL(t).searchParams.forEach((n,i)=>{e.accessToken=n,e.accessTokenParam=i})),e}function Jl(t,e,r="",n={},i=void 0){let o,a,s,l,u=!0;return typeof r!="string"&&!Array.isArray(r)?(s=r,l=s.source||s.layers,n=s):l=r,typeof n=="string"?(o=n,s={}):(o=n.styleUrl,s=n),s.updateSource===!1&&(u=!1),i||(i=s.resolutions),!o&&typeof e=="string"&&!e.trim().startsWith("{")&&(o=e),o&&(o=o.startsWith("data:")?location.href:Ni(o,s.accessToken),s=Xl(o,s)),new Promise(function(c,p){Ui(e,s).then(function(d){if(d.version!=8)return p(new Error("glStyle version 8 required."));if(!(t instanceof kr||t instanceof dt))return p(new Error("Can only apply to VectorLayer or VectorTileLayer"));const f=t instanceof dt?"vector":"geojson";if(l?Array.isArray(l)?a=d.layers.find(function(E){return E.id===l[0]}).source:a=l:(a=Object.keys(d.sources).find(function(E){return d.sources[E].type===f}),l=a),!a)return p(new Error(`No ${f} source found in the glStyle.`));function h(){if(!u)return Promise.resolve();if(t instanceof dt)return ru(d.sources[a],o,s).then(function(w){const k=t.getSource();if(k?w!==k&&(k.setTileUrlFunction(w.getTileUrlFunction()),typeof k.setUrls=="function"&&typeof w.getUrls=="function"&&k.setUrls(w.getUrls()),k.format_||(k.format_=w.format_),k.getAttributions()||k.setAttributions(w.getAttributions()),k.getTileLoadFunction()===ui&&k.setTileLoadFunction(w.getTileLoadFunction()),No(k.getProjection(),w.getProjection())&&(k.tileGrid=w.getTileGrid())):t.setSource(w),!isFinite(t.getMaxResolution())&&!isFinite(t.getMinZoom())){const M=t.getSource().getTileGrid();t.setMaxResolution(M.getResolution(M.getMinZoom()))}});const E=d.sources[a];let C=t.getSource();(!C||C.get("mapbox-source")!==E)&&(C=iu(E,o,s));const D=t.getSource();return D?C!==D&&(D.getAttributions()||D.setAttributions(C.getAttributions()),D.format_||(D.format_=C.getFormat()),D.url_=C.getUrl()):t.setSource(C),Promise.resolve()}let g,m,A,F;function I(){if(!F&&(!d.sprite||m)){if(s.projection&&!i){const C=Le(s.projection).getUnits();C!=="m"&&(i=vt.map(D=>D/jo[C]))}F=Hl(t,d,l,i,m,A,Ol,s.getImage),t.getStyle()?h().then(c).catch(p):p(new Error(`Nothing to show for source [${a}]`))}else F?(t.setStyle(F),h().then(c).catch(p)):p(new Error("Something went wrong trying to apply style."))}if(d.sprite){const E=new URL(Cl(d.sprite,s.accessToken,o||location.href));g=window.devicePixelRatio>=1.5?.5:1;const C=g==.5?"@2x":"";let D=E.origin+E.pathname+C+".json"+E.search;new Promise(function(w,k){Qe("Sprite",D,s).then(w).catch(function(M){D=E.origin+E.pathname+".json"+E.search,Qe("Sprite",D,s).then(w).catch(k)})}).then(function(w){if(w===void 0&&p(new Error("No sprites found.")),m=w,A=E.origin+E.pathname+C+".png"+E.search,s.transformRequest){const k=s.transformRequest(A,"SpriteImage")||A;(k instanceof Request||k instanceof Promise)&&(A=k)}I()}).catch(function(w){p(new Error(`Sprites cannot be loaded: ${D}: ${w.message}`))})}else I()}).catch(p)})}const ei={};function Kl(t,e,r){e.layers.some(function(n){if(n.type==="background"){if(t instanceof ai)return t.setBackground(function(i){return Hi(n,i,r,{})}),!0;if(t instanceof $o||t instanceof Lo)return t.getLayers().push(tu(n,r,{})),!0}})}function Yl(t,e,r={}){return Ui(e,r).then(function(n){Kl(t,n,r)})}function Ql(t,e){const r=t.bounds;if(r){const n=Tn([r[0],r[1]],e),i=Tn([r[2],r[3]],e);return[n[0],n[1],i[0],i[1]]}return Le(e).getExtent()}function eu(t,e,r){const n=new ga({tileJSON:e,tileSize:t.tileSize||e.tileSize||512}),i=n.getTileJSON(),o=n.getTileGrid(),a=Le(r.projection||"EPSG:3857"),s=Ql(i,a),l=a.getExtent(),u=i.minzoom||0,c=i.maxzoom||22,p={attributions:n.getAttributions(),projection:a,tileGrid:new jr({origin:l?oi(l):o.getOrigin(0),extent:s||o.getExtent(),minZoom:u,resolutions:Wl(a,e.tileSize).slice(0,c+1),tileSize:o.getTileSize(0)})};return Array.isArray(i.tiles)?p.urls=i.tiles:p.url=i.tiles,p}function Hi(t,e,r,n){const i={id:t.id,type:t.type},o=t.layout||{},a=t.paint||{};i.paint=a;const s=Bi(e,r.resolutions||vt);let l,u;return a["background-color"]!==void 0&&(l=z(i,"paint","background-color",s,ei,n)),a["background-opacity"]!==void 0&&(u=z(i,"paint","background-opacity",s,ei,n)),o.visibility=="none"?void 0:Ee(l,u)}function tu(t,e,r){const n=document.createElement("div");return n.className="ol-mapbox-style-background",n.style.position="absolute",n.style.width="100%",n.style.height="100%",new ai({source:new Oo({}),render(i){const o=Hi(t,i.viewState.resolution,e,r);return n.style.backgroundColor=o,n}})}function ru(t,e,r){return new Promise(function(n,i){Pl(t,e,r).then(function({tileJson:o,tileLoadFunction:a}){const s=eu(t,o,r);s.tileLoadFunction=a,s.format=new Or,n(new $r(s))}).catch(i)})}function nu(t){return`{bbox-${(t?t.getCode():"EPSG:3857").toLowerCase().replace(/[^a-z0-9]/g,"-")}}`}function iu(t,e,r){const n=r.projection?new Sn({dataProjection:r.projection}):new Sn,i=t.data,o={};if(typeof i=="string"){const s=At(i,r.accessToken,r.accessTokenParam||"access_token",e||location.href);if(/\{bbox-[0-9a-z-]+\}/.test(s)){const u=(p,d,f)=>{const h=nu(f);return s.replace(h,`${p.join(",")}`)},c=new rr({attributions:t.attribution,format:n,loader:(p,d,f,h,g)=>{const m=typeof u=="function"?u(p,d,f):u;Qe("GeoJSON",m,r).then(A=>{const F=c.getFormat().readFeatures(A,{featureProjection:f});c.addFeatures(F),h(F)}).catch(A=>{c.removeLoadedExtent(p),g()})},strategy:Vo});return c.set("mapbox-source",t),c}const l=new rr({attributions:t.attribution,format:n,url:s,loader:(u,c,p,d,f)=>{Qe("GeoJSON",s,r).then(h=>{const g=l.getFormat().readFeatures(h,{featureProjection:p});l.addFeatures(g),d(g)}).catch(h=>{l.removeLoadedExtent(u),f()})}});return l}o.features=n.readFeatures(i,{featureProjection:"EPSG:3857"});const a=new rr(Object.assign({attributions:t.attribution,format:n},o));return a.set("mapbox-source",t),a}class ou extends Do{constructor(e){super(wr.ERROR),this.error=e}}class au extends dt{constructor(e){const r="declutter"in e?e.declutter:!0,n=new $r({state:"loading",format:new Or});super({source:n,background:e.background,declutter:r,className:e.className,opacity:e.opacity,visible:e.visible,zIndex:e.zIndex,minResolution:e.minResolution,maxResolution:e.maxResolution,minZoom:e.minZoom,maxZoom:e.maxZoom,renderOrder:e.renderOrder,renderBuffer:e.renderBuffer,renderMode:e.renderMode,map:e.map,updateWhileAnimating:e.updateWhileAnimating,updateWhileInteracting:e.updateWhileInteracting,preload:e.preload,useInterimTilesOnError:e.useInterimTilesOnError,properties:e.properties}),e.accessToken&&(this.accessToken=e.accessToken);const i=e.styleUrl,o=[Jl(this,i,e.layers||e.source,{accessToken:this.accessToken})];this.getBackground()===void 0&&o.push(Yl(this,e.styleUrl,{accessToken:this.accessToken})),Promise.all(o).then(()=>{n.setState("ready")}).catch(a=>{this.dispatchEvent(new ou(a)),this.getSource().setState("error")})}}const Ue="main";class su{mapId=Ue;vectorSourceFactory;constructor({references:e}){this.vectorSourceFactory=e.vectorSourceFactory}async getMapConfig(){return{projection:"EPSG:3857",initialView:{kind:"position",center:{x:848890,y:6793350},zoom:13},layers:[new lt({title:"OSM",visible:!0,isBaseLayer:!0,olLayer:new Zo({source:new Ho})}),new lt({id:"inspire-us-kindergarten",title:"Kindertageseinrichtungen in NRW",visible:!0,olLayer:new kr({style:new Ce({image:new si({fill:new Ze({color:"blue"}),radius:5})}),source:this.vectorSourceFactory.createVectorSource({baseUrl:"https://ogc-api.nrw.de/inspire-us-kindergarten/v1",collectionId:"governmentalservice",crs:"http://www.opengis.net/def/crs/EPSG/0/3857",attributions:"Datenlizenz Deutschland - Namensnennung - Version 2.0"})})}),new lt({id:"ogc_katasterbezirk",title:"Liegenschaftskatasterbezirke in NRW (viele Daten)",visible:!1,olLayer:new kr({source:this.vectorSourceFactory.createVectorSource({baseUrl:"https://ogc-api.nrw.de/lika/v1",collectionId:"katasterbezirk",limit:1e3,crs:"http://www.opengis.net/def/crs/EPSG/0/3857",attributions:"Datenlizenz Deutschland - Namensnennung - Version 2.0"})})}),new lt({title:"Abschnitte / Äste mit Unfällen (Mapbox Style)",visible:!1,olLayer:new au({styleUrl:"https://demo.ldproxy.net/strassen/styles/default?f=mbs"})}),new lt({title:"Pendleratlas",visible:!0,olLayer:new dt({source:new $r({url:"https://pendleratlas.statistikportal.de/_vector_tiles/2022/vg250/{z}/{x}/{y}.pbf",format:new Or,projection:"EPSG:3857",attributions:`© Statistische Ämter der Länder ${new Date().getFullYear()} | GeoBasis-DE/BKG ${new Date().getFullYear()}`}),style:new Ce({fill:new Ze({color:"rgba(173, 209, 158, 0.6)"}),stroke:new ct({color:"#2d7d9f",width:3})})})})]}}}class lu{beforeRequest({target:e,options:r}){e.protocol==="https:"&&e.hostname==="ogc-api.nrw.de"&&r.headers.set("Authorization","Bearer 12345")}}const uu={"ogc-api-app":{name:"ogc-api-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:su,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{vectorSourceFactory:{name:"ogc-features.VectorSourceFactory",qualifier:void 0,all:!1}}},SampleTokenInterceptor:{name:"SampleTokenInterceptor",clazz:lu,provides:[{name:"http.Interceptor",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:Wo,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:Xo,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/ogc-features":{name:"@open-pioneer/ogc-features",services:{VectorSourceFactory:{name:"VectorSourceFactory",clazz:oa,provides:[{name:"ogc-features.VectorSourceFactory",qualifier:void 0}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}},SearchSourceFactory:{name:"SearchSourceFactory",clazz:aa,provides:[{name:"ogc-features.SearchSourceFactory",qualifier:void 0}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/toc":{name:"@open-pioneer/toc",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-navigation":{name:"@open-pioneer/map-navigation",services:{},ui:{references:[]},properties:{}},"@open-pioneer/search":{name:"@open-pioneer/search",services:{},ui:{references:[]},properties:{}}},cu=`:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.search-component .chakra-divider{display:none}.search-component .search-highlighted-match{font-weight:700}.search-component .search-value-container{cursor:text;padding-left:30px!important}.search-component .search-invisible{display:none} +`,""),G.push(J[le],ie);return G},[]):ee=vr(Z,X).trim(),we=z(x,"paint","text-opacity",v,T,m,S)}if(ee&&we&&!Yt){kt||(++L,b=C[L],(!b||!b.getText()||b.getFill()||b.getStroke())&&(b=new Ce,C[L]=b),b.setImage(void 0),b.setGeometry(void 0)),b.getText()||b.setText(N||new Uo({padding:[2,2,2,2]})),N=b.getText();const U=nt["text-transform"];U=="uppercase"?ee=Array.isArray(ee)?ee.map((Y,Pe)=>Pe%2?Y:Y.toUpperCase()):ee.toUpperCase():U=="lowercase"&&(ee=Array.isArray(ee)?ee.map((Y,Pe)=>Pe%2?Y:Y.toLowerCase()):ee.toLowerCase());const Z=Array.isArray(ee)?ee:re==2?_r(ee,st):Pr(ee,ot,Qt,st);N.setText(Z),N.setFont(ot),N.setRotation(yr(z(x,"layout","text-rotate",v,T,m,S)));const G=z(x,"layout","text-anchor",v,T,m,S),H=kt||re==1?"point":z(x,"layout","symbol-placement",v,T,m,S);let j;if(H==="line-center"?(N.setPlacement("line"),j="center"):N.setPlacement(H),H==="line"&&typeof N.setRepeat=="function"){const Y=z(x,"layout","symbol-spacing",v,T,m,S);N.setRepeat(Y*2)}N.setOverflow(H==="point");let O=z(x,"paint","text-halo-width",v,T,m,S);const ie=z(x,"layout","text-offset",v,T,m,S),J=z(x,"paint","text-translate",v,T,m,S);let le=0,ue=0;if(H=="point"){j="center",G.indexOf("left")!==-1?(j="left",ue=O):G.indexOf("right")!==-1&&(j="right",ue=-O);const Y=z(x,"layout","text-rotation-alignment",v,T,m,S);N.setRotateWithView(Y=="map")}else N.setMaxAngle(yr(z(x,"layout","text-max-angle",v,T,m,S))*ee.length/Z.length),N.setRotateWithView(!1);N.setTextAlign(j);let ae="middle";G.indexOf("bottom")==0?(ae="bottom",le=-O-.5*(at-1)*Se):G.indexOf("top")==0&&(ae="top",le=O+.5*(at-1)*Se),N.setTextBaseline(ae);const ce=z(x,"layout","text-justify",v,T,m,S);N.setJustify(ce==="auto"?void 0:ce),N.setOffsetX(ie[0]*Se+ue+J[0]),N.setOffsetY(ie[1]*Se+le+J[1]),E.setColor(Ee(z(x,"paint","text-color",v,T,m,S),we)),N.setFill(E);const W=Ee(z(x,"paint","text-halo-color",v,T,m,S),we);if(W){I.setColor(W),O*=2;const Y=.5*Se;I.setWidth(O<=Y?O:Y),N.setStroke(I)}else N.setStroke(void 0);const oe=z(x,"layout","text-padding",v,T,m,S),he=N.getPadding();oe!==he[0]&&(he[0]=oe,he[1]=oe,he[2]=oe,he[3]=oe),b.setZIndex(Oe)}}}if(L>-1)return C.length=L+1,C};return t.setStyle(D),t.set("mapbox-source",F),t.set("mapbox-layers",f),t.set("mapbox-featurestate",t.get("mapbox-featurestate")||{}),D}function Wl(t,e=512){return t.getExtent()?Dr({extent:t.getExtent(),tileSize:e,maxZoom:22}).getResolutions():vt}function Xl(t,e){return e.accessToken||(e=Object.assign({},e),new URL(t).searchParams.forEach((n,i)=>{e.accessToken=n,e.accessTokenParam=i})),e}function Jl(t,e,r="",n={},i=void 0){let o,a,s,l,u=!0;return typeof r!="string"&&!Array.isArray(r)?(s=r,l=s.source||s.layers,n=s):l=r,typeof n=="string"?(o=n,s={}):(o=n.styleUrl,s=n),s.updateSource===!1&&(u=!1),i||(i=s.resolutions),!o&&typeof e=="string"&&!e.trim().startsWith("{")&&(o=e),o&&(o=o.startsWith("data:")?location.href:Ni(o,s.accessToken),s=Xl(o,s)),new Promise(function(c,p){Ui(e,s).then(function(d){if(d.version!=8)return p(new Error("glStyle version 8 required."));if(!(t instanceof kr||t instanceof dt))return p(new Error("Can only apply to VectorLayer or VectorTileLayer"));const f=t instanceof dt?"vector":"geojson";if(l?Array.isArray(l)?a=d.layers.find(function(E){return E.id===l[0]}).source:a=l:(a=Object.keys(d.sources).find(function(E){return d.sources[E].type===f}),l=a),!a)return p(new Error(`No ${f} source found in the glStyle.`));function h(){if(!u)return Promise.resolve();if(t instanceof dt)return ru(d.sources[a],o,s).then(function(w){const k=t.getSource();if(k?w!==k&&(k.setTileUrlFunction(w.getTileUrlFunction()),typeof k.setUrls=="function"&&typeof w.getUrls=="function"&&k.setUrls(w.getUrls()),k.format_||(k.format_=w.format_),k.getAttributions()||k.setAttributions(w.getAttributions()),k.getTileLoadFunction()===ui&&k.setTileLoadFunction(w.getTileLoadFunction()),No(k.getProjection(),w.getProjection())&&(k.tileGrid=w.getTileGrid())):t.setSource(w),!isFinite(t.getMaxResolution())&&!isFinite(t.getMinZoom())){const M=t.getSource().getTileGrid();t.setMaxResolution(M.getResolution(M.getMinZoom()))}});const E=d.sources[a];let C=t.getSource();(!C||C.get("mapbox-source")!==E)&&(C=iu(E,o,s));const D=t.getSource();return D?C!==D&&(D.getAttributions()||D.setAttributions(C.getAttributions()),D.format_||(D.format_=C.getFormat()),D.url_=C.getUrl()):t.setSource(C),Promise.resolve()}let g,m,A,F;function I(){if(!F&&(!d.sprite||m)){if(s.projection&&!i){const C=Le(s.projection).getUnits();C!=="m"&&(i=vt.map(D=>D/jo[C]))}F=Hl(t,d,l,i,m,A,Ol,s.getImage),t.getStyle()?h().then(c).catch(p):p(new Error(`Nothing to show for source [${a}]`))}else F?(t.setStyle(F),h().then(c).catch(p)):p(new Error("Something went wrong trying to apply style."))}if(d.sprite){const E=new URL(Cl(d.sprite,s.accessToken,o||location.href));g=window.devicePixelRatio>=1.5?.5:1;const C=g==.5?"@2x":"";let D=E.origin+E.pathname+C+".json"+E.search;new Promise(function(w,k){Qe("Sprite",D,s).then(w).catch(function(M){D=E.origin+E.pathname+".json"+E.search,Qe("Sprite",D,s).then(w).catch(k)})}).then(function(w){if(w===void 0&&p(new Error("No sprites found.")),m=w,A=E.origin+E.pathname+C+".png"+E.search,s.transformRequest){const k=s.transformRequest(A,"SpriteImage")||A;(k instanceof Request||k instanceof Promise)&&(A=k)}I()}).catch(function(w){p(new Error(`Sprites cannot be loaded: ${D}: ${w.message}`))})}else I()}).catch(p)})}const ei={};function Kl(t,e,r){e.layers.some(function(n){if(n.type==="background"){if(t instanceof ai)return t.setBackground(function(i){return Hi(n,i,r,{})}),!0;if(t instanceof $o||t instanceof Lo)return t.getLayers().push(tu(n,r,{})),!0}})}function Yl(t,e,r={}){return Ui(e,r).then(function(n){Kl(t,n,r)})}function Ql(t,e){const r=t.bounds;if(r){const n=Tn([r[0],r[1]],e),i=Tn([r[2],r[3]],e);return[n[0],n[1],i[0],i[1]]}return Le(e).getExtent()}function eu(t,e,r){const n=new ga({tileJSON:e,tileSize:t.tileSize||e.tileSize||512}),i=n.getTileJSON(),o=n.getTileGrid(),a=Le(r.projection||"EPSG:3857"),s=Ql(i,a),l=a.getExtent(),u=i.minzoom||0,c=i.maxzoom||22,p={attributions:n.getAttributions(),projection:a,tileGrid:new jr({origin:l?oi(l):o.getOrigin(0),extent:s||o.getExtent(),minZoom:u,resolutions:Wl(a,e.tileSize).slice(0,c+1),tileSize:o.getTileSize(0)})};return Array.isArray(i.tiles)?p.urls=i.tiles:p.url=i.tiles,p}function Hi(t,e,r,n){const i={id:t.id,type:t.type},o=t.layout||{},a=t.paint||{};i.paint=a;const s=Bi(e,r.resolutions||vt);let l,u;return a["background-color"]!==void 0&&(l=z(i,"paint","background-color",s,ei,n)),a["background-opacity"]!==void 0&&(u=z(i,"paint","background-opacity",s,ei,n)),o.visibility=="none"?void 0:Ee(l,u)}function tu(t,e,r){const n=document.createElement("div");return n.className="ol-mapbox-style-background",n.style.position="absolute",n.style.width="100%",n.style.height="100%",new ai({source:new Oo({}),render(i){const o=Hi(t,i.viewState.resolution,e,r);return n.style.backgroundColor=o,n}})}function ru(t,e,r){return new Promise(function(n,i){Pl(t,e,r).then(function({tileJson:o,tileLoadFunction:a}){const s=eu(t,o,r);s.tileLoadFunction=a,s.format=new Or,n(new $r(s))}).catch(i)})}function nu(t){return`{bbox-${(t?t.getCode():"EPSG:3857").toLowerCase().replace(/[^a-z0-9]/g,"-")}}`}function iu(t,e,r){const n=r.projection?new Sn({dataProjection:r.projection}):new Sn,i=t.data,o={};if(typeof i=="string"){const s=At(i,r.accessToken,r.accessTokenParam||"access_token",e||location.href);if(/\{bbox-[0-9a-z-]+\}/.test(s)){const u=(p,d,f)=>{const h=nu(f);return s.replace(h,`${p.join(",")}`)},c=new rr({attributions:t.attribution,format:n,loader:(p,d,f,h,g)=>{const m=typeof u=="function"?u(p,d,f):u;Qe("GeoJSON",m,r).then(A=>{const F=c.getFormat().readFeatures(A,{featureProjection:f});c.addFeatures(F),h(F)}).catch(A=>{c.removeLoadedExtent(p),g()})},strategy:Vo});return c.set("mapbox-source",t),c}const l=new rr({attributions:t.attribution,format:n,url:s,loader:(u,c,p,d,f)=>{Qe("GeoJSON",s,r).then(h=>{const g=l.getFormat().readFeatures(h,{featureProjection:p});l.addFeatures(g),d(g)}).catch(h=>{l.removeLoadedExtent(u),f()})}});return l}o.features=n.readFeatures(i,{featureProjection:"EPSG:3857"});const a=new rr(Object.assign({attributions:t.attribution,format:n},o));return a.set("mapbox-source",t),a}class ou extends Do{constructor(e){super(wr.ERROR),this.error=e}}class au extends dt{constructor(e){const r="declutter"in e?e.declutter:!0,n=new $r({state:"loading",format:new Or});super({source:n,background:e.background,declutter:r,className:e.className,opacity:e.opacity,visible:e.visible,zIndex:e.zIndex,minResolution:e.minResolution,maxResolution:e.maxResolution,minZoom:e.minZoom,maxZoom:e.maxZoom,renderOrder:e.renderOrder,renderBuffer:e.renderBuffer,renderMode:e.renderMode,map:e.map,updateWhileAnimating:e.updateWhileAnimating,updateWhileInteracting:e.updateWhileInteracting,preload:e.preload,useInterimTilesOnError:e.useInterimTilesOnError,properties:e.properties}),e.accessToken&&(this.accessToken=e.accessToken);const i=e.styleUrl,o=[Jl(this,i,e.layers||e.source,{accessToken:this.accessToken})];this.getBackground()===void 0&&o.push(Yl(this,e.styleUrl,{accessToken:this.accessToken})),Promise.all(o).then(()=>{n.setState("ready")}).catch(a=>{this.dispatchEvent(new ou(a)),this.getSource().setState("error")})}}const Ue="main";class su{mapId=Ue;vectorSourceFactory;constructor({references:e}){this.vectorSourceFactory=e.vectorSourceFactory}async getMapConfig(){return{projection:"EPSG:3857",initialView:{kind:"position",center:{x:848890,y:6793350},zoom:13},layers:[new lt({title:"OSM",visible:!0,isBaseLayer:!0,olLayer:new Zo({source:new Ho})}),new lt({id:"inspire-us-kindergarten",title:"Kindertageseinrichtungen in NRW",visible:!0,olLayer:new kr({style:new Ce({image:new si({fill:new Ze({color:"blue"}),radius:5})}),source:this.vectorSourceFactory.createVectorSource({baseUrl:"https://ogc-api.nrw.de/inspire-us-kindergarten/v1",collectionId:"governmentalservice",crs:"http://www.opengis.net/def/crs/EPSG/0/3857",attributions:"Datenlizenz Deutschland - Namensnennung - Version 2.0"})})}),new lt({id:"ogc_katasterbezirk",title:"Liegenschaftskatasterbezirke in NRW (viele Daten)",visible:!1,olLayer:new kr({source:this.vectorSourceFactory.createVectorSource({baseUrl:"https://ogc-api.nrw.de/lika/v1",collectionId:"katasterbezirk",limit:1e3,crs:"http://www.opengis.net/def/crs/EPSG/0/3857",attributions:"Datenlizenz Deutschland - Namensnennung - Version 2.0"})})}),new lt({title:"Abschnitte / Äste mit Unfällen (Mapbox Style)",visible:!1,olLayer:new au({styleUrl:"https://demo.ldproxy.net/strassen/styles/default?f=mbs"})}),new lt({title:"Pendleratlas",visible:!0,olLayer:new dt({source:new $r({url:"https://pendleratlas.statistikportal.de/_vector_tiles/2022/vg250/{z}/{x}/{y}.pbf",format:new Or,projection:"EPSG:3857",attributions:`© Statistische Ämter der Länder ${new Date().getFullYear()} | GeoBasis-DE/BKG ${new Date().getFullYear()}`}),style:new Ce({fill:new Ze({color:"rgba(173, 209, 158, 0.6)"}),stroke:new ct({color:"#2d7d9f",width:3})})})})]}}}class lu{beforeRequest({target:e,options:r}){e.protocol==="https:"&&e.hostname==="ogc-api.nrw.de"&&r.headers.set("Authorization","Bearer 12345")}}const uu={"ogc-api-app":{name:"ogc-api-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:su,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{vectorSourceFactory:{name:"ogc-features.VectorSourceFactory",qualifier:void 0,all:!1}}},SampleTokenInterceptor:{name:"SampleTokenInterceptor",clazz:lu,provides:[{name:"http.Interceptor",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:Wo,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:Xo,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-navigation":{name:"@open-pioneer/map-navigation",services:{},ui:{references:[]},properties:{}},"@open-pioneer/ogc-features":{name:"@open-pioneer/ogc-features",services:{VectorSourceFactory:{name:"VectorSourceFactory",clazz:oa,provides:[{name:"ogc-features.VectorSourceFactory",qualifier:void 0}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}},SearchSourceFactory:{name:"SearchSourceFactory",clazz:aa,provides:[{name:"ogc-features.SearchSourceFactory",qualifier:void 0}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/toc":{name:"@open-pioneer/toc",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/search":{name:"@open-pioneer/search",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},cu=`:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.search-component .chakra-divider{display:none}.search-component .search-highlighted-match{font-weight:700}.search-component .search-value-container{cursor:text;padding-left:30px!important}.search-component .search-invisible{display:none} `,pu=["en","de"];function du(t){switch(t){case"en":return En(()=>import("./7af13c2e869b.js"),[],import.meta.url).then(e=>e.default);case"de":return En(()=>import("./061be87acdef.js"),[],import.meta.url).then(e=>e.default)}throw new Error(`Unsupported locale: '${t}'`)}const fu=Qi(cu),hu=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:du,locales:pu,packages:uu,styles:fu},Symbol.toStringTag,{value:"Module"})),mu="ogc-api-app",yu=Jo.bind(void 0,mu);function gu(){const t=yu();return K.jsx(nr,{height:"100%",direction:"column",overflow:"hidden",children:K.jsx(kn,{title:K.jsx(zn,{textAlign:"center",py:1,children:K.jsx(Fn,{size:"md",children:"Open Pioneer - OGC API Features and OGC API Tiles Sample"})}),children:K.jsx(nr,{flex:"1",direction:"column",position:"relative",children:K.jsxs(Ko,{mapId:Ue,children:[K.jsx(ir,{position:"top-left",horizontalGap:20,verticalGap:20,children:K.jsx(zn,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:K.jsx(kn,{title:K.jsx(Fn,{size:"md",children:t.formatMessage({id:"tocTitle"})}),children:K.jsx(na,{mapId:Ue,basemapSwitcherProps:{allowSelectingEmptyBasemap:!0}})})})}),K.jsx(ir,{position:"top-right",horizontalGap:10,verticalGap:10,children:K.jsxs(ca,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:"400px",children:[K.jsx(or,{as:"b",children:"Description"}),K.jsx(or,{children:"This application can be used to test OGC API Features and OGC API Tiles."}),K.jsx(or,{children:"Vector Tiles cannot be reprojected and require the map to use the same projection. Currently all known MVT vector tile sets are using WebMercator, making them unusable in the Default Sample App which uses ETRS89/UTM zone 32N. This Sample App uses WebMercator."})]})}),K.jsx(ir,{position:"bottom-right",horizontalGap:10,verticalGap:30,children:K.jsxs(nr,{direction:"column",gap:1,padding:1,children:[K.jsx(sa,{mapId:Ue}),K.jsx(la,{mapId:Ue}),K.jsx(ua,{mapId:Ue})]})})]})})})})}const xu=eo({component:gu,theme:to,appMetadata:hu,async resolveConfig(t){const e=t.getAttribute("forced-locale");if(e)return{locale:e}}});customElements.define("ogc-api-app",xu);const bu=document.getElementsByTagName("body")[0];vu();function vu(){const t=window.location.search,r=new URLSearchParams(t).get("lang"),n=document.createElement("ogc-api-app");n.classList.add("full-height"),n.setAttribute("id","test"),r&&n.setAttribute("forced-locale",r),bu.appendChild(n)} diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_basemap_switcher.BasemapSwitcher.html b/openlayers-base-packages/docs/functions/_open_pioneer_basemap_switcher.BasemapSwitcher.html index 29fff3deb..e249d2ae4 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_basemap_switcher.BasemapSwitcher.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_basemap_switcher.BasemapSwitcher.html @@ -1,2 +1,2 @@ BasemapSwitcher | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_coordinate_viewer.CoordinateViewer.html b/openlayers-base-packages/docs/functions/_open_pioneer_coordinate_viewer.CoordinateViewer.html index 7f4f5189f..84eb64527 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_coordinate_viewer.CoordinateViewer.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_coordinate_viewer.CoordinateViewer.html @@ -1,2 +1,2 @@ CoordinateViewer | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_geolocation.Geolocation.html b/openlayers-base-packages/docs/functions/_open_pioneer_geolocation.Geolocation.html index 5d4ac8456..6bbe7bb4d 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_geolocation.Geolocation.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_geolocation.Geolocation.html @@ -1 +1 @@ -Geolocation | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file +Geolocation | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_legend.Legend.html b/openlayers-base-packages/docs/functions/_open_pioneer_legend.Legend.html index da92fe7aa..7ca2e30f9 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_legend.Legend.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_legend.Legend.html @@ -1,2 +1,2 @@ Legend | Open Pioneer Packages
  • The Legend component can be used to display the legend of layers that are visible in the map.

    -

    Parameters

    Returns ReactNode

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.MapAnchor.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.MapAnchor.html index dce4c4fd9..9c8ce5f91 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.MapAnchor.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.MapAnchor.html @@ -1 +1 @@ -MapAnchor | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file +MapAnchor | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.MapContainer.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.MapContainer.html index 7a4b9fa57..59f1f71e7 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.MapContainer.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.MapContainer.html @@ -1,3 +1,3 @@ MapContainer | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns Element

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.calculateBufferedExtent.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.calculateBufferedExtent.html index 23b8d6a8f..908dc5dd8 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.calculateBufferedExtent.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.calculateBufferedExtent.html @@ -1,3 +1,3 @@ calculateBufferedExtent | Open Pioneer Packages
  • Computes a buffered extent using the given original extent.

    Use the factor (1.2 by default) to specify the size increase.

    -

    Parameters

    • extent: Extent
    • factor: number = DEFAULT_BUFFER_FACTOR

    Returns Extent

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • extent: Extent
  • factor: number = DEFAULT_BUFFER_FACTOR

Returns Extent

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.getProjection.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.getProjection.html index 864b12524..e4e06c12b 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.getProjection.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.getProjection.html @@ -1,2 +1,2 @@ getProjection | Open Pioneer Packages
  • Searches the global proj4js definition set for a definition with the given name.

    -

    Parameters

    • name: string

    Returns Proj4ProjectionDefinition

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • name: string

Returns Proj4ProjectionDefinition

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.registerProjections.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.registerProjections.html index a58418864..1e6e86ca0 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.registerProjections.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.registerProjections.html @@ -5,4 +5,4 @@

Parameters

  • projections: Record<string, ProjectionDefinition>

    An object containing (key, definition) pairs. The key must be projection name (such as "EPSG:4326"). The value can be a string defining the projection or an existing proj4 definition object.

    -

Returns void

Generated using TypeDoc

\ No newline at end of file +

Returns void

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.useCenter.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.useCenter.html index 1f03aa1f6..d200409eb 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.useCenter.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.useCenter.html @@ -1,2 +1,2 @@ useCenter | Open Pioneer Packages
  • Returns the current center coordinates of the map.

    -

    Parameters

    • map: undefined | Map

    Returns Coordinate | undefined

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • map: undefined | Map

Returns Coordinate | undefined

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.useMapModel.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.useMapModel.html index a3c8ad683..b50eeddad 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.useMapModel.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.useMapModel.html @@ -2,4 +2,4 @@

Returns an object representing the progress, which will eventually represent either the map model value or an initialization error.

The map model cannot be returned directly because it may not have completed its initialization yet.

-

Parameters

  • mapId: string

Returns UseMapModelResult

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • mapId: string

Returns UseMapModelResult

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.useProjection.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.useProjection.html index 2246070b2..599a43c05 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.useProjection.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.useProjection.html @@ -1,2 +1,2 @@ useProjection | Open Pioneer Packages
  • Returns the current projection of the map.

    -

    Parameters

    • map: undefined | Map

    Returns Projection | undefined

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • map: undefined | Map

Returns Projection | undefined

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.useResolution.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.useResolution.html index c5b6806a6..c4757822f 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.useResolution.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.useResolution.html @@ -1,2 +1,2 @@ useResolution | Open Pioneer Packages
  • Returns the current resolution of the map.

    -

    Parameters

    • map: undefined | Map

    Returns number | undefined

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • map: undefined | Map

Returns number | undefined

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.useScale.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.useScale.html index 4e4d9d86c..fb1c122c2 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.useScale.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.useScale.html @@ -1,2 +1,2 @@ useScale | Open Pioneer Packages
  • Returns the current scale of the map.

    -

    Parameters

    • map: undefined | Map

    Returns number | undefined

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • map: undefined | Map

Returns number | undefined

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map.useView.html b/openlayers-base-packages/docs/functions/_open_pioneer_map.useView.html index 142e5c813..68a757ddd 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map.useView.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map.useView.html @@ -1,2 +1,2 @@ useView | Open Pioneer Packages
  • Returns the current view of the given map.

    -

    Parameters

    • map: undefined | Map

    Returns OlView | undefined

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • map: undefined | Map

Returns OlView | undefined

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.InitialExtent.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.InitialExtent.html index e9bd3f040..361377f01 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.InitialExtent.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.InitialExtent.html @@ -1,2 +1,2 @@ InitialExtent | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.Zoom.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.Zoom.html index 26e752007..3f7ebd850 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.Zoom.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.Zoom.html @@ -1,2 +1,2 @@ Zoom | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.ZoomIn.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.ZoomIn.html index 851afd606..c80230a13 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.ZoomIn.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.ZoomIn.html @@ -1,3 +1,3 @@ ZoomIn | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.ZoomOut.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.ZoomOut.html index 6efdb9fe7..74a4e4d70 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.ZoomOut.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_navigation.ZoomOut.html @@ -1,3 +1,3 @@ ZoomOut | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.createServiceOptions.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.createServiceOptions.html index 5810e6e2a..5f0709b7b 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.createServiceOptions.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.createServiceOptions.html @@ -1,4 +1,4 @@ createServiceOptions | Open Pioneer Packages
  • Creates (service name, service implementation)-pairs suitable for the services option of the PackageContextProvider.

    This helper method can be used to avoid hard-coding service names used in the implementation.

    -

    Parameters

    Returns Record<string, unknown>

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns Record<string, unknown>

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.setupMap.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.setupMap.html index 36c6068a6..fedaf0628 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.setupMap.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.setupMap.html @@ -1,4 +1,4 @@ setupMap | Open Pioneer Packages
  • Creates a simple map registry service with exactly one map configuration.

    The map is configured by using the options parameter.

    Returns the map registry and the id of the configured map.

    -

    Parameters

    Returns Promise<{
        mapId: string;
        registry: Service<MapRegistryImpl>;
    }>

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns Promise<{
    mapId: string;
    registry: Service<MapRegistryImpl>;
}>

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.waitForInitialExtent.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.waitForInitialExtent.html index 00b999a87..f75cdb835 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.waitForInitialExtent.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.waitForInitialExtent.html @@ -1,2 +1,2 @@ waitForInitialExtent | Open Pioneer Packages
  • Waits until the model has an initial extent.

    -

    Parameters

    Returns Promise<void>

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns Promise<void>

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.waitForMapMount.html b/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.waitForMapMount.html index 62e1d8d8a..ad8a0054a 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.waitForMapMount.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_map_test_utils.waitForMapMount.html @@ -1,2 +1,2 @@ waitForMapMount | Open Pioneer Packages
  • Waits until the OpenLayers map has been mounted in the parent with the given id.

    -

    Parameters

    • parentTestId: string = "base"

    Returns Promise<HTMLElement>

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • parentTestId: string = "base"

Returns Promise<HTMLElement>

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_measurement.Measurement.html b/openlayers-base-packages/docs/functions/_open_pioneer_measurement.Measurement.html index ae192590a..e1108868f 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_measurement.Measurement.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_measurement.Measurement.html @@ -1,2 +1,2 @@ Measurement | Open Pioneer Packages
  • The Measurement component can be used in an app to switch between distance and area measurements and to delete all current measurements.

    -

    Parameters

    Returns ReactNode

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_overview_map.OverviewMap.html b/openlayers-base-packages/docs/functions/_open_pioneer_overview_map.OverviewMap.html index ae957c112..2aa19075e 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_overview_map.OverviewMap.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_overview_map.OverviewMap.html @@ -1,2 +1,2 @@ OverviewMap | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_printing.Printing.html b/openlayers-base-packages/docs/functions/_open_pioneer_printing.Printing.html index a14014081..4ce2b6827 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_printing.Printing.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_printing.Printing.html @@ -1,2 +1,2 @@ Printing | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.ConfigureTitledSection.html b/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.ConfigureTitledSection.html index e293724a4..aa6508ac2 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.ConfigureTitledSection.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.ConfigureTitledSection.html @@ -15,4 +15,4 @@
<ConfigureTitledSection level={5}>
<Widget />
</ConfigureTitledSection>

The headings used by Widget will start with h5.

-

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.SectionHeading.html b/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.SectionHeading.html index e70e60d27..a087c3629 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.SectionHeading.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.SectionHeading.html @@ -2,4 +2,4 @@ This component should only be used as part of the title prop of the TitledSection.

Headings are rendered as Chakra Headings.

Heading levels are managed by nesting TitledSection.

-

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.TitledSection.html b/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.TitledSection.html index 04e8d3261..1845534cf 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.TitledSection.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.TitledSection.html @@ -8,4 +8,4 @@

Example: custom title rendering

<TitledSection
title={
<SectionHeading size="4xl">Heading</SectionHeading>
}
>
Content
</TitledSection>
-

Parameters

Returns JSX.Element

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns JSX.Element

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.ToolButton.html b/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.ToolButton.html index c9371915d..40bd3854b 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.ToolButton.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.ToolButton.html @@ -1,2 +1,2 @@ ToolButton | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.useCommonComponentProps.html b/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.useCommonComponentProps.html index 3e47c8e29..e7823774d 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.useCommonComponentProps.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.useCommonComponentProps.html @@ -2,4 +2,4 @@

Example:

function MyComponent(props) {
const { containerProps } = useCommonComponentProps("my-component", props);
// automatically applies css classes and testid
return <Box {...containerProps}>Content</Box>;
}
-

Parameters

Returns {
    containerProps: HTMLAttributes<HTMLElement>;
}

  • containerProps: HTMLAttributes<HTMLElement>

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns {
    containerProps: HTMLAttributes<HTMLElement>;
}

  • containerProps: HTMLAttributes<HTMLElement>

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.useEvent.html b/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.useEvent.html index 5010e7c3f..6e672628a 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.useEvent.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.useEvent.html @@ -4,4 +4,4 @@ Because the function identity is stable, useEffect() will not re-trigger if the implementation changes.

NOTE: the event handler must not be called during rendering!

See also: https://github.com/reactjs/rfcs/blob/useevent/text/0000-useevent.md

-

Type Parameters

  • Args extends unknown[]

  • Ret

Parameters

  • handler: ((...args) => Ret)
      • (...args): Ret
      • Parameters

        Returns Ret

Returns typeof handler

Generated using TypeDoc

\ No newline at end of file +

Type Parameters

  • Args extends unknown[]

  • Ret

Parameters

  • handler: ((...args) => Ret)
      • (...args): Ret
      • Parameters

        Returns Ret

Returns typeof handler

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.useHeadingLevel.html b/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.useHeadingLevel.html index 9c051dbd2..7f26b51d5 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.useHeadingLevel.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_react_utils.useHeadingLevel.html @@ -1,3 +1,3 @@ useHeadingLevel | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file +

Returns HeadingLevel

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_result_list.ResultList.html b/openlayers-base-packages/docs/functions/_open_pioneer_result_list.ResultList.html index 0c1a0fbc6..79e6abada 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_result_list.ResultList.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_result_list.ResultList.html @@ -1,2 +1,2 @@ ResultList | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_scale_bar.ScaleBar.html b/openlayers-base-packages/docs/functions/_open_pioneer_scale_bar.ScaleBar.html index bc70c6715..558391cd9 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_scale_bar.ScaleBar.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_scale_bar.ScaleBar.html @@ -1 +1 @@ -ScaleBar | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file +ScaleBar | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_scale_viewer.ScaleViewer.html b/openlayers-base-packages/docs/functions/_open_pioneer_scale_viewer.ScaleViewer.html index 0d1da7a80..79dff3b57 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_scale_viewer.ScaleViewer.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_scale_viewer.ScaleViewer.html @@ -1 +1 @@ -ScaleViewer | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file +ScaleViewer | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_search.Search.html b/openlayers-base-packages/docs/functions/_open_pioneer_search.Search.html index b46842238..313b1a75f 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_search.Search.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_search.Search.html @@ -1,2 +1,2 @@ Search | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_selection.Selection.html b/openlayers-base-packages/docs/functions/_open_pioneer_selection.Selection.html index 2b28bffbd..718f6edb8 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_selection.Selection.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_selection.Selection.html @@ -1,2 +1,2 @@ Selection | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_spatial_bookmarks.SpatialBookmarks.html b/openlayers-base-packages/docs/functions/_open_pioneer_spatial_bookmarks.SpatialBookmarks.html index 675b99a61..a7d35376e 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_spatial_bookmarks.SpatialBookmarks.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_spatial_bookmarks.SpatialBookmarks.html @@ -1,2 +1,2 @@ SpatialBookmarks | Open Pioneer Packages

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_toc.Toc.html b/openlayers-base-packages/docs/functions/_open_pioneer_toc.Toc.html index d94ab9e97..c3af77b9c 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_toc.Toc.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_toc.Toc.html @@ -1,2 +1,2 @@ Toc | Open Pioneer Packages
  • Displays the layers of the configured map.

    -

    Parameters

    Returns ReactNode

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns ReactNode

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html index e6c496424..bfd1548de 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html @@ -1,5 +1,5 @@ BasemapSwitcherProps | Open Pioneer Packages

These are special properties for the BasemapSwitcher.

-
interface BasemapSwitcherProps {
    allowSelectingEmptyBasemap?: boolean;
    aria-label?: string;
    aria-labelledby?: string;
    className?: string;
    data-testid?: string;
    mapId: string;
}

Hierarchy (view full)

Properties

interface BasemapSwitcherProps {
    allowSelectingEmptyBasemap?: boolean;
    aria-label?: string;
    aria-labelledby?: string;
    className?: string;
    data-testid?: string;
    mapId: string;
}

Hierarchy (view full)

Properties

allowSelectingEmptyBasemap?: boolean

Specifies whether an option to deactivate all basemap layers is available in the BasemapSwitcher. Defaults to false.

-
aria-label?: string

Optional aria-label property. +

aria-label?: string

Optional aria-label property. Do not use together with aria-label.

-
aria-labelledby?: string

Optional aria-labelledby property. +

aria-labelledby?: string

Optional aria-labelledby property. Do not use together with aria-label.

-
className?: string

Additional css class name(s) that will be added to the BasemapSwitcher component.

-
data-testid?: string

Used for testing.

-
mapId: string

The id of the map.

-

Generated using TypeDoc

\ No newline at end of file +
className?: string

Additional css class name(s) that will be added to the BasemapSwitcher component.

+
data-testid?: string

Used for testing.

+
mapId: string

The id of the map.

+

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_coordinate_viewer.CoordinateViewerProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_coordinate_viewer.CoordinateViewerProps.html index 05e9c5e9c..d0fd9950b 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_coordinate_viewer.CoordinateViewerProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_coordinate_viewer.CoordinateViewerProps.html @@ -1,12 +1,12 @@ CoordinateViewerProps | Open Pioneer Packages

These are special properties for the CoordinateViewer.

-
interface CoordinateViewerProps {
    className?: string;
    data-testid?: string;
    displayProjectionCode?: string;
    mapId: string;
    precision?: number;
}

Hierarchy (view full)

Properties

interface CoordinateViewerProps {
    className?: string;
    data-testid?: string;
    displayProjectionCode?: string;
    mapId: string;
    precision?: number;
}

Hierarchy (view full)

Properties

className?: string

Additional class name(s).

-
data-testid?: string

Used for testing.

-
displayProjectionCode?: string

Projection of the coordinates shown in the rendered HTML, does not affect the map projection

-
mapId: string

The id of the map.

-
precision?: number

Number of decimal places shown for coordinates.

-

Generated using TypeDoc

\ No newline at end of file +
data-testid?: string

Used for testing.

+
displayProjectionCode?: string

Projection of the coordinates shown in the rendered HTML, does not affect the map projection

+
mapId: string

The id of the map.

+
precision?: number

Number of decimal places shown for coordinates.

+

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_editing.EditingService.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_editing.EditingService.html index b786f4ee3..4c91edcec 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_editing.EditingService.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_editing.EditingService.html @@ -1,9 +1,9 @@ EditingService | Open Pioneer Packages

The editing service allows to start and handle editing workflows.

Inject an instance of this service by referencing the interface name "editing.EditingService".

-
interface EditingService {
    reset(mapId): void;
    start(map, ogcApiFeatureLayerUrl): EditingWorkflow;
    stop(mapId): void;
}

Hierarchy

  • DeclaredService<"editing.EditingService">
    • EditingService

Methods

interface EditingService {
    reset(mapId): void;
    start(map, ogcApiFeatureLayerUrl): EditingWorkflow;
    stop(mapId): void;
}

Hierarchy

  • DeclaredService<"editing.EditingService">
    • EditingService

Methods

Methods

  • Removes the unfinished geometry from an existing EditingWorkflow without leaving the edit mode.

    -

    Parameters

    • mapId: string

    Returns void

  • Stops the edit mode and removes an existing EditingWorkflow.

    -

    Parameters

    • mapId: string

    Returns void

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • mapId: string

Returns void

  • Stops the edit mode and removes an existing EditingWorkflow.

    +

    Parameters

    • mapId: string

    Returns void

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_editing.EditingWorkflow.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_editing.EditingWorkflow.html index ba377add0..d5eff1f91 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_editing.EditingWorkflow.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_editing.EditingWorkflow.html @@ -1,9 +1,9 @@ EditingWorkflow | Open Pioneer Packages

EditingWorkflows are created by the EditingService and represent a currently ongoing editing workflow.

-
interface EditingWorkflow {
    getState(): EditingWorkflowState;
    whenComplete(): Promise<undefined | string>;
}

Hierarchy

  • EventEmitter<EditingWorkflowEvents>
    • EditingWorkflow

Methods

interface EditingWorkflow {
    getState(): EditingWorkflowState;
    whenComplete(): Promise<undefined | string>;
}

Hierarchy

  • EventEmitter<EditingWorkflowEvents>
    • EditingWorkflow

Methods

  • Wait for the editing to be finished. The returned promise resolves with the +

    Returns EditingWorkflowState

  • Wait for the editing to be finished. The returned promise resolves with the feature ID when saving was successful and rejects if saving the feature failed. It resolves with undefined when the editing was stopped.

    -

    Returns Promise<undefined | string>

Generated using TypeDoc

\ No newline at end of file +

Returns Promise<undefined | string>

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_geolocation.GeolocationProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_geolocation.GeolocationProps.html index e4e7ddff0..b415ecda9 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_geolocation.GeolocationProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_geolocation.GeolocationProps.html @@ -1,5 +1,5 @@ GeolocationProps | Open Pioneer Packages

These are properties supported by the Geolocation component.

-
interface GeolocationProps {
    accuracyFeatureStyle?: Style | Style[] | StyleFunction;
    className?: string;
    data-testid?: string;
    mapId: string;
    maxZoom?: number;
    positionFeatureStyle?: Style | Style[] | StyleFunction;
    trackingOptions?: PositionOptions;
}

Hierarchy (view full)

Properties

interface GeolocationProps {
    accuracyFeatureStyle?: Style | Style[] | StyleFunction;
    className?: string;
    data-testid?: string;
    mapId: string;
    maxZoom?: number;
    positionFeatureStyle?: Style | Style[] | StyleFunction;
    trackingOptions?: PositionOptions;
}

Hierarchy (view full)

Properties

accuracyFeatureStyle?: Style | Style[] | StyleFunction

Style to be applied for the accuracy highlight of the positioning feature.

-
className?: string

Additional class name(s).

-
data-testid?: string

Used for testing.

-
mapId: string

The id of the map.

-
maxZoom?: number

The default maximal zoom level

-
positionFeatureStyle?: Style | Style[] | StyleFunction

Style to be applied for the positioning highlight feature.

-
trackingOptions?: PositionOptions

Position options for the Geolocation-Object. +

className?: string

Additional class name(s).

+
data-testid?: string

Used for testing.

+
mapId: string

The id of the map.

+
maxZoom?: number

The default maximal zoom level

+
positionFeatureStyle?: Style | Style[] | StyleFunction

Style to be applied for the positioning highlight feature.

+
trackingOptions?: PositionOptions

Position options for the Geolocation-Object. See PositionOptions for more details.

NOTE: Changing the tracking options at runtime will reset the component's state.

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendItemAttributes.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendItemAttributes.html index c3c2cfca4..bcb448cb8 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendItemAttributes.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendItemAttributes.html @@ -1,8 +1,8 @@ LegendItemAttributes | Open Pioneer Packages

Attributes of the legend attribute that can be specified on a layer.

To show a legend for the layer, provide an imageUrl to an image to show or provide a React component that will be rendered as a legend.

-
interface LegendItemAttributes {
    Component?: ComponentClass<LegendItemComponentProps, any> | FunctionComponent<LegendItemComponentProps>;
    imageUrl?: string;
}

Properties

interface LegendItemAttributes {
    Component?: ComponentClass<LegendItemComponentProps, any> | FunctionComponent<LegendItemComponentProps>;
    imageUrl?: string;
}

Properties

Component?: ComponentClass<LegendItemComponentProps, any> | FunctionComponent<LegendItemComponentProps>

(Optional) React component that will be shown as customized legend for the layer.

-
imageUrl?: string

(Optional) URL to an image that will be shown as a legend for the layer.

-

Generated using TypeDoc

\ No newline at end of file +
imageUrl?: string

(Optional) URL to an image that will be shown as a legend for the layer.

+

Generated using TypeDoc

\ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendItemComponentProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendItemComponentProps.html index ebfc4fdea..1018968c4 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendItemComponentProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendItemComponentProps.html @@ -1,4 +1,4 @@ LegendItemComponentProps | Open Pioneer Packages

Properties of a legend item React component.

-
interface LegendItemComponentProps {
    layer: LayerBase<{}>;
}

Properties

interface LegendItemComponentProps {
    layer: LayerBase<{}>;
}

Properties

Properties

layer: LayerBase<{}>

Related layer of the legend.

-

Type declaration

    Generated using TypeDoc

    \ No newline at end of file +

    Type declaration

      Generated using TypeDoc

      \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendProps.html index daff0262d..fa6e4a844 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_legend.LegendProps.html @@ -1,11 +1,11 @@ LegendProps | Open Pioneer Packages

      These are special properties for the Legend.

      -
      interface LegendProps {
          className?: string;
          data-testid?: string;
          mapId: string;
          showBaseLayers?: boolean;
      }

      Hierarchy (view full)

      Properties

      interface LegendProps {
          className?: string;
          data-testid?: string;
          mapId: string;
          showBaseLayers?: boolean;
      }

      Hierarchy (view full)

      Properties

      className?: string

      Additional class name(s).

      -
      data-testid?: string

      Used for testing.

      -
      mapId: string

      The id of the map.

      -
      showBaseLayers?: boolean

      Specifies whether legend for active base layer is shown in the legend UI. +

      data-testid?: string

      Used for testing.

      +
      mapId: string

      The id of the map.

      +
      showBaseLayers?: boolean

      Specifies whether legend for active base layer is shown in the legend UI. Defaults to false.

      -

      Generated using TypeDoc

      \ No newline at end of file +

      Generated using TypeDoc

      \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.BaseFeature.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.BaseFeature.html index 6d8ffb91d..d91039223 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.BaseFeature.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.BaseFeature.html @@ -1,15 +1,15 @@ BaseFeature | Open Pioneer Packages

      Base interface for all feature objects with geometry and / or attribute information.

      -
      interface BaseFeature {
          geometry?: Geometry;
          id: string | number;
          projection?: string;
          properties?: Readonly<Record<string, unknown>>;
          style?: Style;
      }

      Hierarchy

      • BaseFeature

        Properties

        interface BaseFeature {
            geometry?: Geometry;
            id: string | number;
            projection?: string;
            properties?: Readonly<Record<string, unknown>>;
            style?: Style;
        }

        Hierarchy

        • BaseFeature

          Properties

          geometry?: Geometry

          Geometry of the feature. Also specify the projection if geometry is set.

          -
          id: string | number

          Identifier for the feature object. Must be unique within all features of one source/layer.

          +
          id: string | number

          Identifier for the feature object. Must be unique within all features of one source/layer.

          If your source cannot provide a useful id on its own, another strategy to generate unique ids is to generate a UUID instead.

          -
          projection?: string

          The projection of the geometry.

          -
          properties?: Readonly<Record<string, unknown>>

          Properties of the feature.

          -
          style?: Style

          Additional style information for displaying the feature on the map.

          -

          Generated using TypeDoc

          \ No newline at end of file +
          projection?: string

          The projection of the geometry.

          +
          properties?: Readonly<Record<string, unknown>>

          Properties of the feature.

          +
          style?: Style

          Additional style information for displaying the feature on the map.

          +

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.CoordinateConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.CoordinateConfig.html index 543534b5d..c6233053c 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.CoordinateConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.CoordinateConfig.html @@ -1,6 +1,6 @@ CoordinateConfig | Open Pioneer Packages

          Configures a coordinate.

          Coordinates must be valid for the map's configured projection.

          -
          interface CoordinateConfig {
              x: number;
              y: number;
              z?: number;
          }

          Properties

          x +
          interface CoordinateConfig {
              x: number;
              y: number;
              z?: number;
          }

          Properties

          x y z? -

          Properties

          x: number
          y: number
          z?: number

          Generated using TypeDoc

          \ No newline at end of file +

          Properties

          x: number
          y: number
          z?: number

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.ExtentConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.ExtentConfig.html index 27888ba86..d5df1b72e 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.ExtentConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.ExtentConfig.html @@ -1,7 +1,7 @@ ExtentConfig | Open Pioneer Packages

          Configures an extent.

          Coordinates must be valid for the map's configured projection.

          -
          interface ExtentConfig {
              xMax: number;
              xMin: number;
              yMax: number;
              yMin: number;
          }

          Properties

          interface ExtentConfig {
              xMax: number;
              xMin: number;
              yMax: number;
              yMin: number;
          }

          Properties

          Properties

          xMax: number
          xMin: number
          yMax: number
          yMin: number

          Generated using TypeDoc

          \ No newline at end of file +

          Properties

          xMax: number
          xMin: number
          yMax: number
          yMin: number

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.HighlightOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.HighlightOptions.html index 72d6d242a..912dc3dc2 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.HighlightOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.HighlightOptions.html @@ -1,10 +1,10 @@ HighlightOptions | Open Pioneer Packages

          Options supported by the map model's highlightAndZoom method.

          -
          interface HighlightOptions {
              highlightStyle?: HighlightStyle;
              maxZoom?: number;
              pointZoom?: number;
              viewPadding?: MapPadding;
          }

          Properties

          interface HighlightOptions {
              highlightStyle?: HighlightStyle;
              maxZoom?: number;
              pointZoom?: number;
              viewPadding?: MapPadding;
          }

          Properties

          highlightStyle?: HighlightStyle

          Optional styles to override the default styles.

          -
          maxZoom?: number

          The maximum zoom-level for multiple points, line or polygon results.

          -
          pointZoom?: number

          The zoom-level used if there is no valid extend (such as for single points).

          -
          viewPadding?: MapPadding

          The view padding to make all features visible.

          -

          Generated using TypeDoc

          \ No newline at end of file +
          maxZoom?: number

          The maximum zoom-level for multiple points, line or polygon results.

          +
          pointZoom?: number

          The zoom-level used if there is no valid extend (such as for single points).

          +
          viewPadding?: MapPadding

          The view padding to make all features visible.

          +

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.HighlightStyle.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.HighlightStyle.html index a77360d44..d683b38ba 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.HighlightStyle.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.HighlightStyle.html @@ -1,5 +1,5 @@ -HighlightStyle | Open Pioneer Packages
          interface HighlightStyle {
              LineString?: Style | Style[] | StyleFunction;
              MultiPolygon?: Style | Style[] | StyleFunction;
              Point?: Style | Style[] | StyleFunction;
              Polygon?: Style | Style[] | StyleFunction;
          }

          Properties

          LineString? +HighlightStyle | Open Pioneer Packages
          interface HighlightStyle {
              LineString?: Style | Style[] | StyleFunction;
              MultiPolygon?: Style | Style[] | StyleFunction;
              Point?: Style | Style[] | StyleFunction;
              Polygon?: Style | Style[] | StyleFunction;
          }

          Properties

          LineString?: Style | Style[] | StyleFunction
          MultiPolygon?: Style | Style[] | StyleFunction
          Point?: Style | Style[] | StyleFunction
          Polygon?: Style | Style[] | StyleFunction

          Generated using TypeDoc

          \ No newline at end of file +

          Properties

          LineString?: Style | Style[] | StyleFunction
          MultiPolygon?: Style | Style[] | StyleFunction
          Point?: Style | Style[] | StyleFunction
          Polygon?: Style | Style[] | StyleFunction

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.InitialExtentConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.InitialExtentConfig.html index 75effc4e4..b7fc6903f 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.InitialExtentConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.InitialExtentConfig.html @@ -1,4 +1,4 @@ InitialExtentConfig | Open Pioneer Packages

          Configures the map's initial extent.

          -
          interface InitialExtentConfig {
              extent: ExtentConfig;
              kind: "extent";
          }

          Properties

          interface InitialExtentConfig {
              extent: ExtentConfig;
              kind: "extent";
          }

          Properties

          Properties

          extent: ExtentConfig
          kind: "extent"

          Generated using TypeDoc

          \ No newline at end of file +

          Properties

          extent: ExtentConfig
          kind: "extent"

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.InitialPositionConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.InitialPositionConfig.html index 5ccda7408..05e63090b 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.InitialPositionConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.InitialPositionConfig.html @@ -1,5 +1,5 @@ InitialPositionConfig | Open Pioneer Packages

          Configures the map's initial position.

          -
          interface InitialPositionConfig {
              center: CoordinateConfig;
              kind: "position";
              zoom: number;
          }

          Properties

          interface InitialPositionConfig {
              center: CoordinateConfig;
              kind: "position";
              zoom: number;
          }

          Properties

          Properties

          kind: "position"
          zoom: number

          Generated using TypeDoc

          \ No newline at end of file +

          Properties

          kind: "position"
          zoom: number

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.Layer.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.Layer.html index b7d773940..a86826946 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.Layer.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.Layer.html @@ -1,7 +1,7 @@ Layer | Open Pioneer Packages

          Interface Layer<AdditionalEvents>

          Represents an operational layer in the map.

          Instances of this interface cannot be constructed directly; use a real layer class such as SimpleLayer instead.

          -
          interface Layer<AdditionalEvents> {
              attributes: Readonly<Record<string | symbol, unknown>>;
              description: string;
              id: string;
              isBaseLayer: boolean;
              legend: undefined | string;
              loadState: LayerLoadState;
              map: MapModel;
              olLayer: BaseLayer;
              sublayers: undefined | SublayersCollection<Sublayer>;
              title: string;
              visible: boolean;
              deleteAttribute(deleteAttribute): void;
              setDescription(newDescription): void;
              setTitle(newTitle): void;
              setVisible(newVisibility): void;
              updateAttributes(newAttributes): void;
          }

          Type Parameters

          • AdditionalEvents = {}

          Hierarchy (view full)

          Properties

          interface Layer<AdditionalEvents> {
              attributes: Readonly<Record<string | symbol, unknown>>;
              description: string;
              id: string;
              isBaseLayer: boolean;
              legend: undefined | string;
              loadState: LayerLoadState;
              map: MapModel;
              olLayer: BaseLayer;
              sublayers: undefined | SublayersCollection<Sublayer>;
              title: string;
              visible: boolean;
              deleteAttribute(deleteAttribute): void;
              setDescription(newDescription): void;
              setTitle(newTitle): void;
              setVisible(newVisibility): void;
              updateAttributes(newAttributes): void;
          }

          Type Parameters

          • AdditionalEvents = {}

          Hierarchy (view full)

          Properties

          attributes: Readonly<Record<string | symbol, unknown>>

          Additional attributes associated with this layer.

          -
          description: string

          The human-readable description of this layer. May be empty.

          -
          id: string

          The unique id of this layer within its map model.

          +
          description: string

          The human-readable description of this layer. May be empty.

          +
          id: string

          The unique id of this layer within its map model.

          NOTE: layer ids may not be globally unique: layers that belong to different map models may have the same id.

          -
          isBaseLayer: boolean

          True if this layer is a base layer.

          +
          isBaseLayer: boolean

          True if this layer is a base layer.

          Only one base layer can be visible at a time.

          -
          legend: undefined | string

          LegendURL from the service capabilties, if available

          -
          loadState: LayerLoadState

          The load state of a layer.

          -

          The map this layer belongs to.

          -
          olLayer: BaseLayer

          The raw OpenLayers layer.

          -
          sublayers: undefined | SublayersCollection<Sublayer>

          The collection of child sublayers for this layer.

          +
          legend: undefined | string

          LegendURL from the service capabilties, if available

          +
          loadState: LayerLoadState

          The load state of a layer.

          +

          The map this layer belongs to.

          +
          olLayer: BaseLayer

          The raw OpenLayers layer.

          +
          sublayers: undefined | SublayersCollection<Sublayer>

          The collection of child sublayers for this layer.

          Layers that can never have any sublayers may not have a sublayers collection.

          -
          title: string

          The human-readable title of this layer.

          -
          visible: boolean

          Whether the layer is visible or not.

          +
          title: string

          The human-readable title of this layer.

          +
          visible: boolean

          Whether the layer is visible or not.

          NOTE: The model's visible state may do more than influence the raw OpenLayers's visibility property. Future versions may completely remove invisible layers from the OpenLayer's map under some circumstances.

          -

          Methods

          Methods

          • Updates the attributes of this layer. Values in newAttributes are merged into the existing ones (i.e. via Object.assign).

            -

            Parameters

            • newAttributes: Record<string | symbol, unknown>

            Returns void

          Generated using TypeDoc

          \ No newline at end of file +

          Parameters

          • newAttributes: Record<string | symbol, unknown>

          Returns void

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBase.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBase.html index 92e9190b0..12f848432 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBase.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBase.html @@ -1,7 +1,7 @@ LayerBase | Open Pioneer Packages

          Interface LayerBase<AdditionalEvents>

          Interface shared by all layer types (operational layers and sublayers).

          Instances of this interface cannot be constructed directly; use a real layer class such as SimpleLayer instead.

          -
          interface LayerBase<AdditionalEvents> {
              attributes: Readonly<Record<string | symbol, unknown>>;
              description: string;
              id: string;
              legend: undefined | string;
              map: MapModel;
              sublayers: undefined | SublayersCollection<Sublayer>;
              title: string;
              visible: boolean;
              deleteAttribute(deleteAttribute): void;
              setDescription(newDescription): void;
              setTitle(newTitle): void;
              setVisible(newVisibility): void;
              updateAttributes(newAttributes): void;
          }

          Type Parameters

          • AdditionalEvents = {}

          Hierarchy (view full)

          Properties

          interface LayerBase<AdditionalEvents> {
              attributes: Readonly<Record<string | symbol, unknown>>;
              description: string;
              id: string;
              legend: undefined | string;
              map: MapModel;
              sublayers: undefined | SublayersCollection<Sublayer>;
              title: string;
              visible: boolean;
              deleteAttribute(deleteAttribute): void;
              setDescription(newDescription): void;
              setTitle(newTitle): void;
              setVisible(newVisibility): void;
              updateAttributes(newAttributes): void;
          }

          Type Parameters

          • AdditionalEvents = {}

          Hierarchy (view full)

          Properties

          attributes: Readonly<Record<string | symbol, unknown>>

          Additional attributes associated with this layer.

          -
          description: string

          The human-readable description of this layer. May be empty.

          -
          id: string

          The unique id of this layer within its map model.

          +
          description: string

          The human-readable description of this layer. May be empty.

          +
          id: string

          The unique id of this layer within its map model.

          NOTE: layer ids may not be globally unique: layers that belong to different map models may have the same id.

          -
          legend: undefined | string

          LegendURL from the service capabilties, if available

          -

          The map this layer belongs to.

          -
          sublayers: undefined | SublayersCollection<Sublayer>

          The collection of child sublayers for this layer.

          +
          legend: undefined | string

          LegendURL from the service capabilties, if available

          +

          The map this layer belongs to.

          +
          sublayers: undefined | SublayersCollection<Sublayer>

          The collection of child sublayers for this layer.

          Layers that can never have any sublayers may not have a sublayers collection.

          -
          title: string

          The human-readable title of this layer.

          -
          visible: boolean

          Whether the layer is visible or not.

          +
          title: string

          The human-readable title of this layer.

          +
          visible: boolean

          Whether the layer is visible or not.

          NOTE: The model's visible state may do more than influence the raw OpenLayers's visibility property. Future versions may completely remove invisible layers from the OpenLayer's map under some circumstances.

          -

          Methods

          • Deletes the attribute of this layer.

            -

            Parameters

            • deleteAttribute: string | symbol

            Returns void

          • Updates the description of this layer.

            -

            Parameters

            • newDescription: string

            Returns void

          • Updates the title of this layer.

            -

            Parameters

            • newTitle: string

            Returns void

          Methods

          • Deletes the attribute of this layer.

            +

            Parameters

            • deleteAttribute: string | symbol

            Returns void

          • Updates the description of this layer.

            +

            Parameters

            • newDescription: string

            Returns void

          • Updates the title of this layer.

            +

            Parameters

            • newTitle: string

            Returns void

          • Updates the attributes of this layer. +

            Parameters

            • newVisibility: boolean

            Returns void

          • Updates the attributes of this layer. Values in newAttributes are merged into the existing ones (i.e. via Object.assign).

            -

            Parameters

            • newAttributes: Record<string | symbol, unknown>

            Returns void

          Generated using TypeDoc

          \ No newline at end of file +

          Parameters

          • newAttributes: Record<string | symbol, unknown>

          Returns void

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseConfig.html index d1e084e0e..93fad08b0 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseConfig.html @@ -1,16 +1,16 @@ LayerBaseConfig | Open Pioneer Packages

          Configuration options supported by all layer types (layers and sublayers).

          -
          interface LayerBaseConfig {
              attributes?: Record<string | symbol, unknown>;
              description?: string;
              id?: string;
              title: string;
              visible?: boolean;
          }

          Hierarchy (view full)

          Properties

          interface LayerBaseConfig {
              attributes?: Record<string | symbol, unknown>;
              description?: string;
              id?: string;
              title: string;
              visible?: boolean;
          }

          Hierarchy (view full)

          Properties

          attributes?: Record<string | symbol, unknown>

          Additional attributes for this layer. These can be arbitrary values.

          -
          description?: string

          The human-readable description of this layer. +

          description?: string

          The human-readable description of this layer. Defaults to an empty string.

          -
          id?: string

          The unique id of this layer. +

          id?: string

          The unique id of this layer. Defaults to a generated id.

          -
          title: string

          The human-readable title of this layer.

          -
          visible?: boolean

          Whether this layer should initially be visible. +

          title: string

          The human-readable title of this layer.

          +
          visible?: boolean

          Whether this layer should initially be visible. Defaults to true.

          -

          Generated using TypeDoc

          \ No newline at end of file +

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseEvents.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseEvents.html index 01b730db5..5b576baeb 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseEvents.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerBaseEvents.html @@ -1,5 +1,5 @@ LayerBaseEvents | Open Pioneer Packages

          Events emitted by the Layer and other layer types.

          -
          interface LayerBaseEvents {
              changed: void;
              changed:attributes: void;
              changed:description: void;
              changed:legend: void;
              changed:loadState: void;
              changed:title: void;
              changed:visible: void;
              destroy: void;
          }

          Properties

          interface LayerBaseEvents {
              changed: void;
              changed:attributes: void;
              changed:description: void;
              changed:legend: void;
              changed:loadState: void;
              changed:title: void;
              changed:visible: void;
              destroy: void;
          }

          Properties

          changed: void
          changed:attributes: void
          changed:description: void
          changed:legend: void
          changed:loadState: void
          changed:title: void
          changed:visible: void
          destroy: void

          Generated using TypeDoc

          \ No newline at end of file +

          Properties

          changed: void
          changed:attributes: void
          changed:description: void
          changed:legend: void
          changed:loadState: void
          changed:title: void
          changed:visible: void
          destroy: void

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerCollection.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerCollection.html index b0acfb5bc..286e0f1c5 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerCollection.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerCollection.html @@ -1,5 +1,5 @@ LayerCollection | Open Pioneer Packages

          Contains the layers known to a MapModel.

          -
          interface LayerCollection {
              activateBaseLayer(id): boolean;
              addLayer(layer): void;
              getActiveBaseLayer(): undefined | Layer<{}>;
              getAllLayers(options?): Layer<{}>[];
              getBaseLayers(): Layer<{}>[];
              getLayerById(id): undefined | LayerBase<{}>;
              getLayerByRawInstance(olLayer): undefined | Layer<{}>;
              getOperationalLayers(options?): Layer<{}>[];
              removeLayerById(id): void;
          }

          Hierarchy

          Methods

          interface LayerCollection {
              activateBaseLayer(id): boolean;
              addLayer(layer): void;
              getActiveBaseLayer(): undefined | Layer<{}>;
              getAllLayers(options?): Layer<{}>[];
              getBaseLayers(): Layer<{}>[];
              getLayerById(id): undefined | LayerBase<{}>;
              getLayerByRawInstance(olLayer): undefined | Layer<{}>;
              getOperationalLayers(options?): Layer<{}>[];
              removeLayerById(id): void;
          }

          Hierarchy

          Methods

          activateBaseLayer addLayer getActiveBaseLayer getAllLayers @@ -12,16 +12,16 @@ undefined can be used to hide all base layers.

          The associated layer is made visible and all other base layers are hidden.

          Returns true if the given layer has been successfully activated.

          -

          Parameters

          • id: undefined | string

          Returns boolean

          • Adds a new layer to the map.

            +

            Parameters

            • id: undefined | string

            Returns boolean

          • Adds a new layer to the map.

            The new layer is automatically registered with this collection.

            NOTE: by default, the new layer will be shown on top of all existing layers.

            -

            Parameters

            Returns void

          • Returns the layer identified by the id or undefined, if no such layer exists.

            -

            Parameters

            • id: string

            Returns undefined | LayerBase<{}>

          • Given a raw OpenLayers layer instance, returns the associated Layer - or undefined +

            Parameters

            Returns void

          • Returns the layer identified by the id or undefined, if no such layer exists.

            +

            Parameters

            • id: string

            Returns undefined | LayerBase<{}>

          • Given a raw OpenLayers layer instance, returns the associated Layer - or undefined if the layer is unknown to this collection.

            -

            Parameters

            • olLayer: BaseLayer

            Returns undefined | Layer<{}>

          • Removes a layer identified by the id from the map.

            +

            Parameters

            • olLayer: BaseLayer

            Returns undefined | Layer<{}>

          • Removes a layer identified by the id from the map.

            NOTE: The current implementation only supports removal of top level layers.

            -

            Parameters

            • id: string

            Returns void

          Generated using TypeDoc

          \ No newline at end of file +

          Parameters

          • id: string

          Returns void

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerCollectionEvents.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerCollectionEvents.html index b7d85b860..4a27c74a6 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerCollectionEvents.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerCollectionEvents.html @@ -1,3 +1,3 @@ LayerCollectionEvents | Open Pioneer Packages

          Events emitted by the LayerCollection.

          -
          interface LayerCollectionEvents {
              changed: void;
          }

          Properties

          Properties

          changed: void

          Generated using TypeDoc

          \ No newline at end of file +
          interface LayerCollectionEvents {
              changed: void;
          }

          Properties

          Properties

          changed: void

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerConfig.html index 7241094ff..d610f4286 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerConfig.html @@ -1,5 +1,5 @@ LayerConfig | Open Pioneer Packages

          Configuration options supported by all operational layer types.

          -
          interface LayerConfig {
              attributes?: Record<string | symbol, unknown>;
              description?: string;
              healthCheck?: string | HealthCheckFunction;
              id?: string;
              isBaseLayer?: boolean;
              title: string;
              visible?: boolean;
          }

          Hierarchy (view full)

          Properties

          interface LayerConfig {
              attributes?: Record<string | symbol, unknown>;
              description?: string;
              healthCheck?: string | HealthCheckFunction;
              id?: string;
              isBaseLayer?: boolean;
              title: string;
              visible?: boolean;
          }

          Hierarchy (view full)

          Properties

          Properties

          attributes?: Record<string | symbol, unknown>

          Additional attributes for this layer. These can be arbitrary values.

          -
          description?: string

          The human-readable description of this layer. +

          description?: string

          The human-readable description of this layer. Defaults to an empty string.

          -
          healthCheck?: string | HealthCheckFunction

          Optional property to check the availability of the layer. +

          healthCheck?: string | HealthCheckFunction

          Optional property to check the availability of the layer. It is possible to provide either a URL which indicates the state of the service (2xx response meaning "ok") or a HealthCheckFunction performing a custom check and returning the state.

          -
          id?: string

          The unique id of this layer. +

          id?: string

          The unique id of this layer. Defaults to a generated id.

          -
          isBaseLayer?: boolean

          Whether this layer is a base layer or not. +

          isBaseLayer?: boolean

          Whether this layer is a base layer or not. Only one base layer can be active at a time.

          Defaults to false.

          -
          title: string

          The human-readable title of this layer.

          -
          visible?: boolean

          Whether this layer should initially be visible. +

          title: string

          The human-readable title of this layer.

          +
          visible?: boolean

          Whether this layer should initially be visible. Defaults to true.

          -

          Generated using TypeDoc

          \ No newline at end of file +

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerRetrievalOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerRetrievalOptions.html index 08cd9d720..25f585d5b 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerRetrievalOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.LayerRetrievalOptions.html @@ -1,6 +1,6 @@ LayerRetrievalOptions | Open Pioneer Packages

          These options can be used by some APIs returning an array of layers (or sublayers).

          -
          interface LayerRetrievalOptions {
              sortByDisplayOrder?: boolean;
          }

          Properties

          interface LayerRetrievalOptions {
              sortByDisplayOrder?: boolean;
          }

          Properties

          sortByDisplayOrder?: boolean

          If set to true, layers will be ordered by their display order: Layers listed first in the returned array are shown below layers listed at a later index.

          By default, layers are returned in arbitrary order.

          -

          Generated using TypeDoc

          \ No newline at end of file +

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapAnchorProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapAnchorProps.html index ba1a1fadc..83f344362 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapAnchorProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapAnchorProps.html @@ -1,14 +1,14 @@ MapAnchorProps | Open Pioneer Packages

          Common properties supported by all public react components.

          -
          interface MapAnchorProps {
              children?: ReactNode;
              className?: string;
              data-testid?: string;
              horizontalGap?: number;
              position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
              stopEvents?: boolean;
              verticalGap?: number;
          }

          Hierarchy (view full)

          Properties

          interface MapAnchorProps {
              children?: ReactNode;
              className?: string;
              data-testid?: string;
              horizontalGap?: number;
              position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
              stopEvents?: boolean;
              verticalGap?: number;
          }

          Hierarchy (view full)

          Properties

          children?: ReactNode
          className?: string

          Additional class name(s).

          -
          data-testid?: string

          Used for testing.

          -
          horizontalGap?: number

          Horizontal gap in pixel applied to anchor container.

          +

          Properties

          children?: ReactNode
          className?: string

          Additional class name(s).

          +
          data-testid?: string

          Used for testing.

          +
          horizontalGap?: number

          Horizontal gap in pixel applied to anchor container.

          Applied:

          • left, if position *-left
          • @@ -16,20 +16,20 @@

          Default

          0
           
          -
          position?: "top-left" | "top-right" | "bottom-left" | "bottom-right"

          The position of the anchor container above the map.

          +
          position?: "top-left" | "top-right" | "bottom-left" | "bottom-right"

          The position of the anchor container above the map.

          Default

          "top-right"
           
          -
          stopEvents?: boolean

          Prevent some events from the map anchor's children from bubbling towards the map, effectively hiding them from map interactions. +

          stopEvents?: boolean

          Prevent some events from the map anchor's children from bubbling towards the map, effectively hiding them from map interactions. Defaults to true.

          If this value is enabled, events such as pointer-down are hidden from the map when they occur within the map anchor. This is essential when the user wants to select text, or open the browser context menu within the anchor. If that is not required, set stopEvents to false instead.

          -
          verticalGap?: number

          Vertical gap in pixel applied to anchor container.

          +
          verticalGap?: number

          Vertical gap in pixel applied to anchor container.

          Applied:

          • top, if position top-*
          • bottom, if position bottom-*

          Default

          0 (If position bottom-*, default verticalGap == 30)

          -

          Generated using TypeDoc

          \ No newline at end of file +

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapConfig.html index 037026b8e..fe4f8434e 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapConfig.html @@ -1,5 +1,5 @@ MapConfig | Open Pioneer Packages

          Options supported during map construction.

          -
          interface MapConfig {
              advanced?: Partial<OlMapOptions>;
              initialView?: InitialExtentConfig | InitialPositionConfig;
              layers?: Layer<{}>[];
              projection?: "EPSG:3857" | "EPSG:4326" | "EPSG:25832" | "EPSG:25833" | string & {};
          }

          Properties

          interface MapConfig {
              advanced?: Partial<OlMapOptions>;
              initialView?: InitialExtentConfig | InitialPositionConfig;
              layers?: Layer<{}>[];
              projection?: "EPSG:3857" | "EPSG:4326" | "EPSG:25832" | "EPSG:25833" | string & {};
          }

          Properties

          advanced? initialView? layers? projection? @@ -11,17 +11,17 @@

          Warning: Not all properties here are supported. For example, you cannot set the target because the target is controlled by the <MapContainer />.

          -

          Configures the initial view. +

          Configures the initial view. This can be an extent, or a (center, zoom) value.

          -
          layers?: Layer<{}>[]

          Configures the layers of the map.

          +
          layers?: Layer<{}>[]

          Configures the layers of the map.

          Layer order

          Layers defined in this array are (by default) displayed in their listed order: layers defined first are shown at the bottom, and layers defined at a later position are shown above their predecessors.

          Note: base layers are always shown below all operational layers.

          -
          projection?: "EPSG:3857" | "EPSG:4326" | "EPSG:25832" | "EPSG:25833" | string & {}

          Configures a specific projection, e.g. "EPSG:4326". +

          projection?: "EPSG:3857" | "EPSG:4326" | "EPSG:25832" | "EPSG:25833" | string & {}

          Configures a specific projection, e.g. "EPSG:4326". Defaults to EPSG:3857.

          To use custom projections, make sure that they are registered first:

          import { registerProjections } from "@open-pioneer/map";

          // Usually done at the top of the module.
          // This will register the projection(s) in proj4's global registry.
          registerProjections({
          "EPSG:31466": "+proj=tmerc +lat_0=0 +lon_0=6 +k=1 +x_0=2500000 +y_0=0 +ellps=bessel +nadgrids=BETA2007.gsb +units=m +no_defs +type=crs",
          // ... more projections
          });

          // later, use projection: "EPSG:31466"
          -

          Generated using TypeDoc

          \ No newline at end of file +

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapConfigProvider.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapConfigProvider.html index 2172f3a4c..00a43a973 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapConfigProvider.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapConfigProvider.html @@ -1,9 +1,9 @@ MapConfigProvider | Open Pioneer Packages

          Provides an OpenLayers map configuration with a given map id.

          The implementor must also provide the interface name "map.MapConfigProvider".

          -
          interface MapConfigProvider {
              mapId: string;
              getMapConfig(): Promise<MapConfig>;
          }

          Properties

          interface MapConfigProvider {
              mapId: string;
              getMapConfig(): Promise<MapConfig>;
          }

          Properties

          Methods

          Properties

          mapId: string

          Unique identifier of the map.

          -

          Methods

          Methods

          Generated using TypeDoc

          \ No newline at end of file +

          Returns Promise<MapConfig>

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapContainerProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapContainerProps.html index 9bbdd3925..f82499bf0 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapContainerProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapContainerProps.html @@ -1,5 +1,5 @@ MapContainerProps | Open Pioneer Packages

          Common properties supported by all public react components.

          -
          interface MapContainerProps {
              aria-label?: string;
              aria-labelledby?: string;
              children?: ReactNode;
              className?: string;
              data-testid?: string;
              mapId: string;
              role?: string;
              viewPadding?: MapPadding;
              viewPaddingChangeBehavior?: "none" | "preserve-center" | "preserve-extent";
          }

          Hierarchy (view full)

          Properties

          interface MapContainerProps {
              aria-label?: string;
              aria-labelledby?: string;
              children?: ReactNode;
              className?: string;
              data-testid?: string;
              mapId: string;
              role?: string;
              viewPadding?: MapPadding;
              viewPaddingChangeBehavior?: "none" | "preserve-center" | "preserve-extent";
          }

          Hierarchy (view full)

          Properties

          Properties

          aria-label?: string

          Optional aria-label property. Do not use together with aria-label.

          This property is directly applied to the map's container div element.

          -
          aria-labelledby?: string

          Optional aria-labelledby property. +

          aria-labelledby?: string

          Optional aria-labelledby property. Do not use together with aria-label.

          This property is directly applied to the map's container div element.

          -
          children?: ReactNode
          className?: string

          Additional class name(s).

          -
          data-testid?: string

          Used for testing.

          -
          mapId: string

          The id of the map to display.

          -
          role?: string

          Optional role property.

          +
          children?: ReactNode
          className?: string

          Additional class name(s).

          +
          data-testid?: string

          Used for testing.

          +
          mapId: string

          The id of the map to display.

          +
          role?: string

          Optional role property.

          This property is directly applied to the map's container div element.

          -
          viewPadding?: MapPadding

          Sets the map's padding directly.

          +
          viewPadding?: MapPadding
          viewPaddingChangeBehavior?: "none" | "preserve-center" | "preserve-extent"

          Behavior performed by the map when the view padding changes.

          +
          viewPaddingChangeBehavior?: "none" | "preserve-center" | "preserve-extent"

          Behavior performed by the map when the view padding changes.

          • none: Do nothing.
          • preserve-center: Ensures that the center point remains the same by animating the view.
          • @@ -29,4 +29,4 @@

          Default

          "preserve-center"
           
          -

          Generated using TypeDoc

          \ No newline at end of file +

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModel.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModel.html index 702205674..87894b4a3 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModel.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModel.html @@ -1,5 +1,5 @@ MapModel | Open Pioneer Packages

          Represents a map.

          -
          interface MapModel {
              container: undefined | HTMLElement;
              id: string;
              initialExtent: undefined | ExtentConfig;
              layers: LayerCollection;
              olMap: Map;
              highlightAndZoom(geometries, options?): void;
              removeHighlight(): void;
              whenDisplayed(): Promise<void>;
          }

          Hierarchy

          Properties

          interface MapModel {
              container: undefined | HTMLElement;
              id: string;
              initialExtent: undefined | ExtentConfig;
              layers: LayerCollection;
              olMap: Map;
              highlightAndZoom(geometries, options?): void;
              removeHighlight(): void;
              whenDisplayed(): Promise<void>;
          }

          Hierarchy

          Properties

          container id initialExtent layers @@ -11,18 +11,18 @@

          May be undefined if the map is not being rendered at the moment. May change at runtime.

          The changed:container event is emitted when this value changes.

          -
          id: string

          The unique id of the map.

          -
          initialExtent: undefined | ExtentConfig

          The initial map extent.

          +
          id: string

          The unique id of the map.

          +
          initialExtent: undefined | ExtentConfig

          The initial map extent.

          May be undefined before the map is shown. This is guaranteed to be initialized if the promise returned by whenDisplayed has resolved.

          The changed:initialExtent event is emitted when this value changes.

          -

          Contains all known layers of this map.

          +

          Contains all known layers of this map.

          Note that not all layers in this collection may be active in the OpenLayers map. Also note that not all layers in the OpenLayers map may be contained in this collection.

          -
          olMap: Map

          The raw OpenLayers map.

          -

          Methods

          • Highlights the given geometries on the map. +

          olMap: Map

          The raw OpenLayers map.

          +

          Methods

          • Highlights the given geometries on the map. Centers and zooms the view on the geometries.

            Removes any previous highlights.

            -

            Parameters

            Returns void

          • Removes any existing highlights from the map.

            -

            Returns void

          • Returns a promise that resolves when the map has mounted in the DOM.

            -

            Returns Promise<void>

          Generated using TypeDoc

          \ No newline at end of file +

          Parameters

          Returns void

          • Removes any existing highlights from the map.

            +

            Returns void

          • Returns a promise that resolves when the map has mounted in the DOM.

            +

            Returns Promise<void>

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModelEvents.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModelEvents.html index d8841ebf5..4d85c6ae0 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModelEvents.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapModelEvents.html @@ -1,6 +1,6 @@ MapModelEvents | Open Pioneer Packages

          Events emitted by the MapModel.

          -
          interface MapModelEvents {
              changed: void;
              changed:container: void;
              changed:initialExtent: void;
              destroy: void;
          }

          Properties

          interface MapModelEvents {
              changed: void;
              changed:container: void;
              changed:initialExtent: void;
              destroy: void;
          }

          Properties

          changed: void
          changed:container: void
          changed:initialExtent: void
          destroy: void

          Generated using TypeDoc

          \ No newline at end of file +

          Properties

          changed: void
          changed:container: void
          changed:initialExtent: void
          destroy: void

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapPadding.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapPadding.html index dfb7d7711..794704a71 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapPadding.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapPadding.html @@ -1,7 +1,7 @@ MapPadding | Open Pioneer Packages
          interface MapPadding {
              bottom?: number;
              left?: number;
              right?: number;
              top?: number;
          }

          Properties

          interface MapPadding {
              bottom?: number;
              left?: number;
              right?: number;
              top?: number;
          }

          Properties

          Properties

          bottom?: number
          left?: number
          right?: number
          top?: number

          Generated using TypeDoc

          \ No newline at end of file +

          Properties

          bottom?: number
          left?: number
          right?: number
          top?: number

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapRegistry.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapRegistry.html index e26138882..5ab707e8e 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapRegistry.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.MapRegistry.html @@ -1,13 +1,13 @@ MapRegistry | Open Pioneer Packages

          Provides access to registered map instances.

          Maps are identified by a unique id.

          Inject an instance of this service by referencing the interface name "map.MapRegistry".

          -
          interface MapRegistry {
              expectMapModel(mapId): Promise<MapModel>;
              getMapModel(mapId): Promise<undefined | MapModel>;
              getMapModelByRawInstance(olMap): undefined | MapModel;
          }

          Hierarchy

          • DeclaredService<"map.MapRegistry">
            • MapRegistry

          Methods

          interface MapRegistry {
              expectMapModel(mapId): Promise<MapModel>;
              getMapModel(mapId): Promise<undefined | MapModel>;
              getMapModelByRawInstance(olMap): undefined | MapModel;
          }

          Hierarchy

          • DeclaredService<"map.MapRegistry">
            • MapRegistry

          Methods

          • Returns the map model associated with the given id. Returns undefined if there is no such model.

            -

            Parameters

            • mapId: string

            Returns Promise<undefined | MapModel>

          • Given a raw OpenLayers map instance, returns the associated MapModel - or undefined if the map is unknown to this registry.

            All OpenLayers maps created by this registry (e.g. via MapConfigProvider) have an associated map model.

            -

            Parameters

            • olMap: Map

            Returns undefined | MapModel

          Generated using TypeDoc

          \ No newline at end of file +

          Parameters

          • olMap: Map

          Returns undefined | MapModel

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.OlMapOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.OlMapOptions.html index b6b60f5b0..3f19f9621 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.OlMapOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.OlMapOptions.html @@ -1,9 +1,9 @@ OlMapOptions | Open Pioneer Packages

          Advanced options during map construction.

          -
          interface OlMapOptions {
              view: undefined | View | ViewOptions | Promise<ViewOptions>;
          }

          Hierarchy

          • Omit<OlMapBaseOptions, "target" | "view">
            • OlMapOptions

          Properties

          interface OlMapOptions {
              view: undefined | View | ViewOptions | Promise<ViewOptions>;
          }

          Hierarchy

          • Omit<OlMapBaseOptions, "target" | "view">
            • OlMapOptions

          Properties

          Properties

          view: undefined | View | ViewOptions | Promise<ViewOptions>

          Advanced options to control the view.

          We recommend using the OlViewOptions type.

          Warning: When a fully constructed OlView instance is provided, some options of MapConfig (such as initialView or projection) cannot be applied anymore.

          -

          Generated using TypeDoc

          \ No newline at end of file +

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayerConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayerConfig.html index 3ab8f8d34..b1f1bba42 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayerConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayerConfig.html @@ -1,6 +1,6 @@ SimpleLayerConfig | Open Pioneer Packages

          Options to construct a simple layer.

          Simple layers are wrappers around a custom OpenLayers layer.

          -
          interface SimpleLayerConfig {
              attributes?: Record<string | symbol, unknown>;
              description?: string;
              healthCheck?: string | HealthCheckFunction;
              id?: string;
              isBaseLayer?: boolean;
              olLayer: BaseLayer;
              title: string;
              visible?: boolean;
          }

          Hierarchy (view full)

          Properties

          interface SimpleLayerConfig {
              attributes?: Record<string | symbol, unknown>;
              description?: string;
              healthCheck?: string | HealthCheckFunction;
              id?: string;
              isBaseLayer?: boolean;
              olLayer: BaseLayer;
              title: string;
              visible?: boolean;
          }

          Hierarchy (view full)

          Properties

          Properties

          attributes?: Record<string | symbol, unknown>

          Additional attributes for this layer. These can be arbitrary values.

          -
          description?: string

          The human-readable description of this layer. +

          description?: string

          The human-readable description of this layer. Defaults to an empty string.

          -
          healthCheck?: string | HealthCheckFunction

          Optional property to check the availability of the layer. +

          healthCheck?: string | HealthCheckFunction

          Optional property to check the availability of the layer. It is possible to provide either a URL which indicates the state of the service (2xx response meaning "ok") or a HealthCheckFunction performing a custom check and returning the state.

          -
          id?: string

          The unique id of this layer. +

          id?: string

          The unique id of this layer. Defaults to a generated id.

          -
          isBaseLayer?: boolean

          Whether this layer is a base layer or not. +

          isBaseLayer?: boolean

          Whether this layer is a base layer or not. Only one base layer can be active at a time.

          Defaults to false.

          -
          olLayer: BaseLayer

          The raw OpenLayers instance.

          -
          title: string

          The human-readable title of this layer.

          -
          visible?: boolean

          Whether this layer should initially be visible. +

          olLayer: BaseLayer

          The raw OpenLayers instance.

          +
          title: string

          The human-readable title of this layer.

          +
          visible?: boolean

          Whether this layer should initially be visible. Defaults to true.

          -

          Generated using TypeDoc

          \ No newline at end of file +

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayerConstructor.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayerConstructor.html index eb95bcbfe..0c974a77e 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayerConstructor.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SimpleLayerConstructor.html @@ -1,5 +1,5 @@ SimpleLayerConstructor | Open Pioneer Packages

          Constructor for SimpleLayer.

          -
          interface SimpleLayerConstructor {
              new SimpleLayerConstructornew (config): SimpleLayer;
              prototype: SimpleLayer;
          }

          Constructors

          interface SimpleLayerConstructor {
              new SimpleLayerConstructornew (config): SimpleLayer;
              prototype: SimpleLayer;
          }

          Constructors

          Properties

          Constructors

          Properties

          prototype: SimpleLayer

          Generated using TypeDoc

          \ No newline at end of file +

          Parameters

          Returns SimpleLayer

          Properties

          prototype: SimpleLayer

          Generated using TypeDoc

          \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.Sublayer.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.Sublayer.html index 5566c91b6..120f27032 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.Sublayer.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.Sublayer.html @@ -1,5 +1,5 @@ Sublayer | Open Pioneer Packages

          Represents a sublayer of another layer.

          -
          interface Sublayer {
              attributes: Readonly<Record<string | symbol, unknown>>;
              description: string;
              id: string;
              legend: undefined | string;
              map: MapModel;
              parent: Layer<{}> | Sublayer;
              parentLayer: Layer<{}>;
              sublayers: undefined | SublayersCollection<Sublayer>;
              title: string;
              visible: boolean;
              deleteAttribute(deleteAttribute): void;
              setDescription(newDescription): void;
              setTitle(newTitle): void;
              setVisible(newVisibility): void;
              updateAttributes(newAttributes): void;
          }

          Hierarchy (view full)

          Properties

          interface Sublayer {
              attributes: Readonly<Record<string | symbol, unknown>>;
              description: string;
              id: string;
              legend: undefined | string;
              map: MapModel;
              parent: Layer<{}> | Sublayer;
              parentLayer: Layer<{}>;
              sublayers: undefined | SublayersCollection<Sublayer>;
              title: string;
              visible: boolean;
              deleteAttribute(deleteAttribute): void;
              setDescription(newDescription): void;
              setTitle(newTitle): void;
              setVisible(newVisibility): void;
              updateAttributes(newAttributes): void;
          }

          Hierarchy (view full)

          Properties

          attributes: Readonly<Record<string | symbol, unknown>>

          Additional attributes associated with this layer.

          -
          description: string

          The human-readable description of this layer. May be empty.

          -
          id: string

          The unique id of this layer within its map model.

          +
          description: string

          The human-readable description of this layer. May be empty.

          +
          id: string

          The unique id of this layer within its map model.

          NOTE: layer ids may not be globally unique: layers that belong to different map models may have the same id.

          -
          legend: undefined | string

          LegendURL from the service capabilties, if available

          -

          The map this layer belongs to.

          -
          parent: Layer<{}> | Sublayer

          The direct parent of this layer instance. +

          legend: undefined | string

          LegendURL from the service capabilties, if available

          +

          The map this layer belongs to.

          +
          parent: Layer<{}> | Sublayer

          The direct parent of this layer instance. This can either be the parent layer or another sublayer.

          -
          parentLayer: Layer<{}>

          The parent layer that owns this sublayer.

          -

          Type declaration

            sublayers: undefined | SublayersCollection<Sublayer>

            The collection of child sublayers for this layer.

            +
            parentLayer: Layer<{}>

            The parent layer that owns this sublayer.

            +

            Type declaration

              sublayers: undefined | SublayersCollection<Sublayer>

              The collection of child sublayers for this layer.

              Layers that can never have any sublayers may not have a sublayers collection.

              -
              title: string

              The human-readable title of this layer.

              -
              visible: boolean

              Whether the layer is visible or not.

              +
              title: string

              The human-readable title of this layer.

              +
              visible: boolean

              Whether the layer is visible or not.

              NOTE: The model's visible state may do more than influence the raw OpenLayers's visibility property. Future versions may completely remove invisible layers from the OpenLayer's map under some circumstances.

              -

              Methods

              Methods

              • Updates the attributes of this layer. Values in newAttributes are merged into the existing ones (i.e. via Object.assign).

                -

                Parameters

                • newAttributes: Record<string | symbol, unknown>

                Returns void

              Generated using TypeDoc

              \ No newline at end of file +

              Parameters

              • newAttributes: Record<string | symbol, unknown>

              Returns void

              Generated using TypeDoc

              \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SublayersCollection.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SublayersCollection.html index 6bd30e618..50b92e04e 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SublayersCollection.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SublayersCollection.html @@ -1,4 +1,4 @@ SublayersCollection | Open Pioneer Packages

              Interface SublayersCollection<SublayerType>

              Contains the sublayers that belong to a Layer or Sublayer.

              -
              interface SublayersCollection<SublayerType> {
                  getSublayers(options?): SublayerType[];
              }

              Type Parameters

              Hierarchy

              Methods

              interface SublayersCollection<SublayerType> {
                  getSublayers(options?): SublayerType[];
              }

              Type Parameters

              Hierarchy

              Methods

              Methods

              Generated using TypeDoc

              \ No newline at end of file +

              Parameters

              Returns SublayerType[]

              Generated using TypeDoc

              \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SublayersCollectionEvents.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SublayersCollectionEvents.html index f74273645..81d755d9b 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SublayersCollectionEvents.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.SublayersCollectionEvents.html @@ -1,3 +1,3 @@ SublayersCollectionEvents | Open Pioneer Packages

              Events emitted by the SublayersCollection.

              -
              interface SublayersCollectionEvents {
                  changed: void;
              }

              Properties

              Properties

              changed: void

              Generated using TypeDoc

              \ No newline at end of file +
              interface SublayersCollectionEvents {
                  changed: void;
              }

              Properties

              Properties

              changed: void

              Generated using TypeDoc

              \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelLoading.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelLoading.html index 412d6fff2..f169a258c 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelLoading.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelLoading.html @@ -1,4 +1,4 @@ -UseMapModelLoading | Open Pioneer Packages
              interface UseMapModelLoading {
                  error?: undefined;
                  kind: "loading";
                  map?: undefined;
              }

              Properties

              error? +UseMapModelLoading | Open Pioneer Packages
              interface UseMapModelLoading {
                  error?: undefined;
                  kind: "loading";
                  map?: undefined;
              }

              Properties

              Properties

              error?: undefined
              kind: "loading"
              map?: undefined

              Generated using TypeDoc

              \ No newline at end of file +

              Properties

              error?: undefined
              kind: "loading"
              map?: undefined

              Generated using TypeDoc

              \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelRejected.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelRejected.html index 0300c5cee..9046dbb7f 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelRejected.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelRejected.html @@ -1,4 +1,4 @@ -UseMapModelRejected | Open Pioneer Packages
              interface UseMapModelRejected {
                  error: Error;
                  kind: "rejected";
                  map?: undefined;
              }

              Properties

              error +UseMapModelRejected | Open Pioneer Packages
              interface UseMapModelRejected {
                  error: Error;
                  kind: "rejected";
                  map?: undefined;
              }

              Properties

              Properties

              error: Error
              kind: "rejected"
              map?: undefined

              Generated using TypeDoc

              \ No newline at end of file +

              Properties

              error: Error
              kind: "rejected"
              map?: undefined

              Generated using TypeDoc

              \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelResolved.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelResolved.html index 6a5ea0a9c..f79116090 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelResolved.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.UseMapModelResolved.html @@ -1,4 +1,4 @@ -UseMapModelResolved | Open Pioneer Packages
              interface UseMapModelResolved {
                  error?: undefined;
                  kind: "resolved";
                  map: MapModel;
              }

              Properties

              error? +UseMapModelResolved | Open Pioneer Packages
              interface UseMapModelResolved {
                  error?: undefined;
                  kind: "resolved";
                  map: MapModel;
              }

              Properties

              Properties

              error?: undefined
              kind: "resolved"

              Generated using TypeDoc

              \ No newline at end of file +

              Properties

              error?: undefined
              kind: "resolved"

              Generated using TypeDoc

              \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayer.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayer.html index 51a5759da..4e575bea2 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayer.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayer.html @@ -1,5 +1,5 @@ WMSLayer | Open Pioneer Packages

              Represents a WMS layer.

              -
              interface WMSLayer {
                  attributes: Readonly<Record<string | symbol, unknown>>;
                  description: string;
                  id: string;
                  isBaseLayer: boolean;
                  legend: undefined | string;
                  loadState: LayerLoadState;
                  map: MapModel;
                  olLayer: BaseLayer;
                  sublayers: SublayersCollection<WMSSublayer>;
                  title: string;
                  url: string;
                  visible: boolean;
                  deleteAttribute(deleteAttribute): void;
                  setDescription(newDescription): void;
                  setTitle(newTitle): void;
                  setVisible(newVisibility): void;
                  updateAttributes(newAttributes): void;
              }

              Hierarchy (view full)

              Properties

              interface WMSLayer {
                  attributes: Readonly<Record<string | symbol, unknown>>;
                  description: string;
                  id: string;
                  isBaseLayer: boolean;
                  legend: undefined | string;
                  loadState: LayerLoadState;
                  map: MapModel;
                  olLayer: BaseLayer;
                  sublayers: SublayersCollection<WMSSublayer>;
                  title: string;
                  url: string;
                  visible: boolean;
                  deleteAttribute(deleteAttribute): void;
                  setDescription(newDescription): void;
                  setTitle(newTitle): void;
                  setVisible(newVisibility): void;
                  updateAttributes(newAttributes): void;
              }

              Hierarchy (view full)

              Properties

              attributes: Readonly<Record<string | symbol, unknown>>

              Additional attributes associated with this layer.

              -
              description: string

              The human-readable description of this layer. May be empty.

              -
              id: string

              The unique id of this layer within its map model.

              +
              description: string

              The human-readable description of this layer. May be empty.

              +
              id: string

              The unique id of this layer within its map model.

              NOTE: layer ids may not be globally unique: layers that belong to different map models may have the same id.

              -
              isBaseLayer: boolean

              True if this layer is a base layer.

              +
              isBaseLayer: boolean

              True if this layer is a base layer.

              Only one base layer can be visible at a time.

              -
              legend: undefined | string

              LegendURL from the service capabilties, if available

              -
              loadState: LayerLoadState

              The load state of a layer.

              -

              The map this layer belongs to.

              -
              olLayer: BaseLayer

              The raw OpenLayers layer.

              -

              The collection of child sublayers for this layer.

              +
              legend: undefined | string

              LegendURL from the service capabilties, if available

              +
              loadState: LayerLoadState

              The load state of a layer.

              +

              The map this layer belongs to.

              +
              olLayer: BaseLayer

              The raw OpenLayers layer.

              +

              The collection of child sublayers for this layer.

              Layers that can never have any sublayers may not have a sublayers collection.

              -
              title: string

              The human-readable title of this layer.

              -
              url: string

              The URL of the WMS service that was used during layer construction.

              -
              visible: boolean

              Whether the layer is visible or not.

              +
              title: string

              The human-readable title of this layer.

              +
              url: string

              The URL of the WMS service that was used during layer construction.

              +
              visible: boolean

              Whether the layer is visible or not.

              NOTE: The model's visible state may do more than influence the raw OpenLayers's visibility property. Future versions may completely remove invisible layers from the OpenLayer's map under some circumstances.

              -

              Methods

              Methods

              • Updates the attributes of this layer. Values in newAttributes are merged into the existing ones (i.e. via Object.assign).

                -

                Parameters

                • newAttributes: Record<string | symbol, unknown>

                Returns void

              Generated using TypeDoc

              \ No newline at end of file +

              Parameters

              • newAttributes: Record<string | symbol, unknown>

              Returns void

              Generated using TypeDoc

              \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayerConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayerConfig.html index a0bf8791f..ba7a4e3cf 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayerConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayerConfig.html @@ -1,5 +1,5 @@ WMSLayerConfig | Open Pioneer Packages

              Configuration options to construct a WMS layer.

              -
              interface WMSLayerConfig {
                  attributes?: Record<string | symbol, unknown>;
                  description?: string;
                  healthCheck?: string | HealthCheckFunction;
                  id?: string;
                  isBaseLayer?: boolean;
                  sourceOptions?: Partial<Options>;
                  sublayers?: WMSSublayerConfig[];
                  title: string;
                  url: string;
                  visible?: boolean;
              }

              Hierarchy (view full)

              Properties

              interface WMSLayerConfig {
                  attributes?: Record<string | symbol, unknown>;
                  description?: string;
                  healthCheck?: string | HealthCheckFunction;
                  id?: string;
                  isBaseLayer?: boolean;
                  sourceOptions?: Partial<Options>;
                  sublayers?: WMSSublayerConfig[];
                  title: string;
                  url: string;
                  visible?: boolean;
              }

              Hierarchy (view full)

              Properties

              Properties

              attributes?: Record<string | symbol, unknown>

              Additional attributes for this layer. These can be arbitrary values.

              -
              description?: string

              The human-readable description of this layer. +

              description?: string

              The human-readable description of this layer. Defaults to an empty string.

              -
              healthCheck?: string | HealthCheckFunction

              Optional property to check the availability of the layer. +

              healthCheck?: string | HealthCheckFunction

              Optional property to check the availability of the layer. It is possible to provide either a URL which indicates the state of the service (2xx response meaning "ok") or a HealthCheckFunction performing a custom check and returning the state.

              -
              id?: string

              The unique id of this layer. +

              id?: string

              The unique id of this layer. Defaults to a generated id.

              -
              isBaseLayer?: boolean

              Whether this layer is a base layer or not. +

              isBaseLayer?: boolean

              Whether this layer is a base layer or not. Only one base layer can be active at a time.

              Defaults to false.

              -
              sourceOptions?: Partial<Options>

              Additional source options for the layer's WMS source.

              +
              sourceOptions?: Partial<Options>

              Additional source options for the layer's WMS source.

              NOTE: These options are intended for advanced configuration: the WMS Layer manages some of the OpenLayers source options itself.

              -
              sublayers?: WMSSublayerConfig[]

              Configures the layer's sublayers.

              -
              title: string

              The human-readable title of this layer.

              -
              url: string

              URL of the WMS service.

              -
              visible?: boolean

              Whether this layer should initially be visible. +

              sublayers?: WMSSublayerConfig[]

              Configures the layer's sublayers.

              +
              title: string

              The human-readable title of this layer.

              +
              url: string

              URL of the WMS service.

              +
              visible?: boolean

              Whether this layer should initially be visible. Defaults to true.

              -

              Generated using TypeDoc

              \ No newline at end of file +

              Generated using TypeDoc

              \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayerConstructor.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayerConstructor.html index 36a35a5fc..8fcfae5e2 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayerConstructor.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSLayerConstructor.html @@ -1,5 +1,5 @@ WMSLayerConstructor | Open Pioneer Packages

              Constructor for WMSLayer.

              -
              interface WMSLayerConstructor {
                  new WMSLayerConstructornew (config): WMSLayer;
                  prototype: WMSLayer;
              }

              Constructors

              interface WMSLayerConstructor {
                  new WMSLayerConstructornew (config): WMSLayer;
                  prototype: WMSLayer;
              }

              Constructors

              Properties

              Constructors

              Properties

              prototype: WMSLayer

              Generated using TypeDoc

              \ No newline at end of file +

              Parameters

              Returns WMSLayer

              Properties

              prototype: WMSLayer

              Generated using TypeDoc

              \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSSublayer.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSSublayer.html index c4b7fcfe9..38a11e413 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSSublayer.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSSublayer.html @@ -1,5 +1,5 @@ WMSSublayer | Open Pioneer Packages

              Represents a WMS sublayer

              -
              interface WMSSublayer {
                  attributes: Readonly<Record<string | symbol, unknown>>;
                  description: string;
                  id: string;
                  legend: undefined | string;
                  map: MapModel;
                  name: undefined | string;
                  parent: Layer<{}> | Sublayer;
                  parentLayer: Layer<{}>;
                  sublayers: undefined | SublayersCollection<Sublayer>;
                  title: string;
                  visible: boolean;
                  deleteAttribute(deleteAttribute): void;
                  setDescription(newDescription): void;
                  setTitle(newTitle): void;
                  setVisible(newVisibility): void;
                  updateAttributes(newAttributes): void;
              }

              Hierarchy (view full)

              Properties

              interface WMSSublayer {
                  attributes: Readonly<Record<string | symbol, unknown>>;
                  description: string;
                  id: string;
                  legend: undefined | string;
                  map: MapModel;
                  name: undefined | string;
                  parent: Layer<{}> | Sublayer;
                  parentLayer: Layer<{}>;
                  sublayers: undefined | SublayersCollection<Sublayer>;
                  title: string;
                  visible: boolean;
                  deleteAttribute(deleteAttribute): void;
                  setDescription(newDescription): void;
                  setTitle(newTitle): void;
                  setVisible(newVisibility): void;
                  updateAttributes(newAttributes): void;
              }

              Hierarchy (view full)

              Properties

              attributes: Readonly<Record<string | symbol, unknown>>

              Additional attributes associated with this layer.

              -
              description: string

              The human-readable description of this layer. May be empty.

              -
              id: string

              The unique id of this layer within its map model.

              +
              description: string

              The human-readable description of this layer. May be empty.

              +
              id: string

              The unique id of this layer within its map model.

              NOTE: layer ids may not be globally unique: layers that belong to different map models may have the same id.

              -
              legend: undefined | string

              LegendURL from the service capabilties, if available

              -

              The map this layer belongs to.

              -
              name: undefined | string

              The name of the WMS sublayer in the service's capabilities.

              +
              legend: undefined | string

              LegendURL from the service capabilties, if available

              +

              The map this layer belongs to.

              +
              name: undefined | string

              The name of the WMS sublayer in the service's capabilities.

              Is optional as a WMS group layer in a WMS service does not need to have a name.

              -
              parent: Layer<{}> | Sublayer

              The direct parent of this layer instance. +

              parent: Layer<{}> | Sublayer

              The direct parent of this layer instance. This can either be the parent layer or another sublayer.

              -
              parentLayer: Layer<{}>

              The parent layer that owns this sublayer.

              -

              Type declaration

                sublayers: undefined | SublayersCollection<Sublayer>

                The collection of child sublayers for this layer.

                +
                parentLayer: Layer<{}>

                The parent layer that owns this sublayer.

                +

                Type declaration

                  sublayers: undefined | SublayersCollection<Sublayer>

                  The collection of child sublayers for this layer.

                  Layers that can never have any sublayers may not have a sublayers collection.

                  -
                  title: string

                  The human-readable title of this layer.

                  -
                  visible: boolean

                  Whether the layer is visible or not.

                  +
                  title: string

                  The human-readable title of this layer.

                  +
                  visible: boolean

                  Whether the layer is visible or not.

                  NOTE: The model's visible state may do more than influence the raw OpenLayers's visibility property. Future versions may completely remove invisible layers from the OpenLayer's map under some circumstances.

                  -

                  Methods

                  Methods

                  • Updates the attributes of this layer. Values in newAttributes are merged into the existing ones (i.e. via Object.assign).

                    -

                    Parameters

                    • newAttributes: Record<string | symbol, unknown>

                    Returns void

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Parameters

                  • newAttributes: Record<string | symbol, unknown>

                  Returns void

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSSublayerConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSSublayerConfig.html index 7f3cc8e11..4cbbd9468 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSSublayerConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMSSublayerConfig.html @@ -1,5 +1,5 @@ WMSSublayerConfig | Open Pioneer Packages

                  Configuration options to construct the sublayers of a WMS layer.

                  -
                  interface WMSSublayerConfig {
                      attributes?: Record<string | symbol, unknown>;
                      description?: string;
                      id?: string;
                      name?: string;
                      sublayers?: WMSSublayerConfig[];
                      title: string;
                      visible?: boolean;
                  }

                  Hierarchy (view full)

                  Properties

                  interface WMSSublayerConfig {
                      attributes?: Record<string | symbol, unknown>;
                      description?: string;
                      id?: string;
                      name?: string;
                      sublayers?: WMSSublayerConfig[];
                      title: string;
                      visible?: boolean;
                  }

                  Hierarchy (view full)

                  Properties

                  Properties

                  attributes?: Record<string | symbol, unknown>

                  Additional attributes for this layer. These can be arbitrary values.

                  -
                  description?: string

                  The human-readable description of this layer. +

                  description?: string

                  The human-readable description of this layer. Defaults to an empty string.

                  -
                  id?: string

                  The unique id of this layer. +

                  id?: string

                  The unique id of this layer. Defaults to a generated id.

                  -
                  name?: string

                  The name of the WMS sublayer in the service's capabilities. +

                  name?: string

                  The name of the WMS sublayer in the service's capabilities. Not mandatory, e.g. for WMS group layer. See WMS spec.

                  -
                  sublayers?: WMSSublayerConfig[]

                  Configuration for nested sublayers.

                  -
                  title: string

                  The human-readable title of this layer.

                  -
                  visible?: boolean

                  Whether this layer should initially be visible. +

                  sublayers?: WMSSublayerConfig[]

                  Configuration for nested sublayers.

                  +
                  title: string

                  The human-readable title of this layer.

                  +
                  visible?: boolean

                  Whether this layer should initially be visible. Defaults to true.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayer.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayer.html index 8dd29393e..ee98b2996 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayer.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayer.html @@ -1,7 +1,7 @@ WMTSLayer | Open Pioneer Packages

                  Represents an operational layer in the map.

                  Instances of this interface cannot be constructed directly; use a real layer class such as SimpleLayer instead.

                  -
                  interface WMTSLayer {
                      attributes: Readonly<Record<string | symbol, unknown>>;
                      description: string;
                      id: string;
                      isBaseLayer: boolean;
                      legend: undefined | string;
                      loadState: LayerLoadState;
                      map: MapModel;
                      matrixSet: string;
                      name: string;
                      olLayer: BaseLayer;
                      sublayers: undefined | SublayersCollection<Sublayer>;
                      title: string;
                      url: string;
                      visible: boolean;
                      deleteAttribute(deleteAttribute): void;
                      setDescription(newDescription): void;
                      setTitle(newTitle): void;
                      setVisible(newVisibility): void;
                      updateAttributes(newAttributes): void;
                  }

                  Hierarchy (view full)

                  Properties

                  interface WMTSLayer {
                      attributes: Readonly<Record<string | symbol, unknown>>;
                      description: string;
                      id: string;
                      isBaseLayer: boolean;
                      legend: undefined | string;
                      loadState: LayerLoadState;
                      map: MapModel;
                      matrixSet: string;
                      name: string;
                      olLayer: BaseLayer;
                      sublayers: undefined | SublayersCollection<Sublayer>;
                      title: string;
                      url: string;
                      visible: boolean;
                      deleteAttribute(deleteAttribute): void;
                      setDescription(newDescription): void;
                      setTitle(newTitle): void;
                      setVisible(newVisibility): void;
                      updateAttributes(newAttributes): void;
                  }

                  Hierarchy (view full)

                  Properties

                  attributes: Readonly<Record<string | symbol, unknown>>

                  Additional attributes associated with this layer.

                  -
                  description: string

                  The human-readable description of this layer. May be empty.

                  -
                  id: string

                  The unique id of this layer within its map model.

                  +
                  description: string

                  The human-readable description of this layer. May be empty.

                  +
                  id: string

                  The unique id of this layer within its map model.

                  NOTE: layer ids may not be globally unique: layers that belong to different map models may have the same id.

                  -
                  isBaseLayer: boolean

                  True if this layer is a base layer.

                  +
                  isBaseLayer: boolean

                  True if this layer is a base layer.

                  Only one base layer can be visible at a time.

                  -
                  legend: undefined | string

                  LegendURL from the service capabilties, if available

                  -
                  loadState: LayerLoadState

                  The load state of a layer.

                  -

                  The map this layer belongs to.

                  -
                  matrixSet: string

                  The name of the tile matrix set in the service's capabilities.

                  -
                  name: string

                  The name of the WMTS layer in the service's capabilities.

                  -
                  olLayer: BaseLayer

                  The raw OpenLayers layer.

                  -
                  sublayers: undefined | SublayersCollection<Sublayer>

                  The collection of child sublayers for this layer.

                  +
                  legend: undefined | string

                  LegendURL from the service capabilties, if available

                  +
                  loadState: LayerLoadState

                  The load state of a layer.

                  +

                  The map this layer belongs to.

                  +
                  matrixSet: string

                  The name of the tile matrix set in the service's capabilities.

                  +
                  name: string

                  The name of the WMTS layer in the service's capabilities.

                  +
                  olLayer: BaseLayer

                  The raw OpenLayers layer.

                  +
                  sublayers: undefined | SublayersCollection<Sublayer>

                  The collection of child sublayers for this layer.

                  Layers that can never have any sublayers may not have a sublayers collection.

                  -
                  title: string

                  The human-readable title of this layer.

                  -
                  url: string

                  URL of the WMTS service.

                  -
                  visible: boolean

                  Whether the layer is visible or not.

                  +
                  title: string

                  The human-readable title of this layer.

                  +
                  url: string

                  URL of the WMTS service.

                  +
                  visible: boolean

                  Whether the layer is visible or not.

                  NOTE: The model's visible state may do more than influence the raw OpenLayers's visibility property. Future versions may completely remove invisible layers from the OpenLayer's map under some circumstances.

                  -

                  Methods

                  Methods

                  • Updates the attributes of this layer. Values in newAttributes are merged into the existing ones (i.e. via Object.assign).

                    -

                    Parameters

                    • newAttributes: Record<string | symbol, unknown>

                    Returns void

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Parameters

                  • newAttributes: Record<string | symbol, unknown>

                  Returns void

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayerConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayerConfig.html index db9661447..21304ff0a 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayerConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayerConfig.html @@ -1,5 +1,5 @@ WMTSLayerConfig | Open Pioneer Packages

                  Configuration options supported by all operational layer types.

                  -
                  interface WMTSLayerConfig {
                      attributes?: Record<string | symbol, unknown>;
                      description?: string;
                      healthCheck?: string | HealthCheckFunction;
                      id?: string;
                      isBaseLayer?: boolean;
                      matrixSet: string;
                      name: string;
                      sourceOptions?: Partial<Options>;
                      title: string;
                      url: string;
                      visible?: boolean;
                  }

                  Hierarchy (view full)

                  Properties

                  interface WMTSLayerConfig {
                      attributes?: Record<string | symbol, unknown>;
                      description?: string;
                      healthCheck?: string | HealthCheckFunction;
                      id?: string;
                      isBaseLayer?: boolean;
                      matrixSet: string;
                      name: string;
                      sourceOptions?: Partial<Options>;
                      title: string;
                      url: string;
                      visible?: boolean;
                  }

                  Hierarchy (view full)

                  Properties

                  Properties

                  attributes?: Record<string | symbol, unknown>

                  Additional attributes for this layer. These can be arbitrary values.

                  -
                  description?: string

                  The human-readable description of this layer. +

                  description?: string

                  The human-readable description of this layer. Defaults to an empty string.

                  -
                  healthCheck?: string | HealthCheckFunction

                  Optional property to check the availability of the layer. +

                  healthCheck?: string | HealthCheckFunction

                  Optional property to check the availability of the layer. It is possible to provide either a URL which indicates the state of the service (2xx response meaning "ok") or a HealthCheckFunction performing a custom check and returning the state.

                  -
                  id?: string

                  The unique id of this layer. +

                  id?: string

                  The unique id of this layer. Defaults to a generated id.

                  -
                  isBaseLayer?: boolean

                  Whether this layer is a base layer or not. +

                  isBaseLayer?: boolean

                  Whether this layer is a base layer or not. Only one base layer can be active at a time.

                  Defaults to false.

                  -
                  matrixSet: string

                  The name of the tile matrix set in the service's capabilities.

                  -
                  name: string

                  The name of the WMTS layer in the service's capabilities.

                  -
                  sourceOptions?: Partial<Options>

                  Additional source options for the layer's WMTS source.

                  +
                  matrixSet: string

                  The name of the tile matrix set in the service's capabilities.

                  +
                  name: string

                  The name of the WMTS layer in the service's capabilities.

                  +
                  sourceOptions?: Partial<Options>

                  Additional source options for the layer's WMTS source.

                  NOTE: These options are intended for advanced configuration: the WMTS Layer manages some of the OpenLayers source options itself.

                  -
                  title: string

                  The human-readable title of this layer.

                  -
                  url: string

                  URL of the WMTS service.

                  -
                  visible?: boolean

                  Whether this layer should initially be visible. +

                  title: string

                  The human-readable title of this layer.

                  +
                  url: string

                  URL of the WMTS service.

                  +
                  visible?: boolean

                  Whether this layer should initially be visible. Defaults to true.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayerConstructor.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayerConstructor.html index e17e3fc7d..43544eb76 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayerConstructor.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map.WMTSLayerConstructor.html @@ -1,4 +1,4 @@ -WMTSLayerConstructor | Open Pioneer Packages
                  interface WMTSLayerConstructor {
                      new WMTSLayerConstructornew (config): WMTSLayer;
                      prototype: WMTSLayer;
                  }

                  Constructors

                  constructor +WMTSLayerConstructor | Open Pioneer Packages
                  interface WMTSLayerConstructor {
                      new WMTSLayerConstructornew (config): WMTSLayer;
                      prototype: WMTSLayer;
                  }

                  Constructors

                  Properties

                  Constructors

                  Properties

                  prototype: WMTSLayer

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Parameters

                  Returns WMTSLayer

                  Properties

                  prototype: WMTSLayer

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.InitialExtentProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.InitialExtentProps.html index 329bc7c85..256f570bd 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.InitialExtentProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.InitialExtentProps.html @@ -1,8 +1,8 @@ InitialExtentProps | Open Pioneer Packages

                  Common properties supported by all public react components.

                  -
                  interface InitialExtentProps {
                      className?: string;
                      data-testid?: string;
                      mapId: string;
                  }

                  Hierarchy (view full)

                  Properties

                  interface InitialExtentProps {
                      className?: string;
                      data-testid?: string;
                      mapId: string;
                  }

                  Hierarchy (view full)

                  Properties

                  className?: string

                  Additional class name(s).

                  -
                  data-testid?: string

                  Used for testing.

                  -
                  mapId: string

                  The map id.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +
                  data-testid?: string

                  Used for testing.

                  +
                  mapId: string

                  The map id.

                  +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.ZoomProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.ZoomProps.html index 03d828f3f..bdc8374da 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.ZoomProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map_navigation.ZoomProps.html @@ -1,11 +1,11 @@ ZoomProps | Open Pioneer Packages

                  Common properties supported by all public react components.

                  -
                  interface ZoomProps {
                      className?: string;
                      data-testid?: string;
                      mapId: string;
                      zoomDirection: "in" | "out";
                  }

                  Hierarchy (view full)

                  Properties

                  interface ZoomProps {
                      className?: string;
                      data-testid?: string;
                      mapId: string;
                      zoomDirection: "in" | "out";
                  }

                  Hierarchy (view full)

                  Properties

                  className?: string

                  Additional class name(s).

                  -
                  data-testid?: string

                  Used for testing.

                  -
                  mapId: string

                  The map id.

                  -
                  zoomDirection: "in" | "out"

                  The zoom direction.

                  +
                  data-testid?: string

                  Used for testing.

                  +
                  mapId: string

                  The map id.

                  +
                  zoomDirection: "in" | "out"

                  The zoom direction.

                  The button will either zoom in or zoom out depending on this value.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html index d22252740..920076fae 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html @@ -1,4 +1,4 @@ -SimpleMapOptions | Open Pioneer Packages
                  interface SimpleMapOptions {
                      advanced?: OlMapOptions;
                      center?: {
                          x: number;
                          y: number;
                      };
                      extent?: ExtentConfig;
                      fetch?: ((resource, init) => Promise<Response>);
                      layers?: (SimpleLayerConfig | Layer<{}>)[];
                      noInitialView?: boolean;
                      noProjection?: boolean;
                      projection?: string;
                      zoom?: number;
                  }

                  Properties

                  advanced? +SimpleMapOptions | Open Pioneer Packages
                  interface SimpleMapOptions {
                      advanced?: OlMapOptions;
                      center?: {
                          x: number;
                          y: number;
                      };
                      extent?: ExtentConfig;
                      fetch?: ((resource, init) => Promise<Response>);
                      layers?: (SimpleLayerConfig | Layer<{}>)[];
                      noInitialView?: boolean;
                      noProjection?: boolean;
                      projection?: string;
                      zoom?: number;
                  }

                  Properties

                  Properties

                  advanced?: OlMapOptions

                  Passed to the open layers map constructor.

                  -
                  center?: {
                      x: number;
                      y: number;
                  }

                  Center coordinates for the map.

                  -

                  Type declaration

                  • x: number
                  • y: number
                  extent?: ExtentConfig

                  Initial extent (don't mix with center / zoom).

                  -
                  fetch?: ((resource, init) => Promise<Response>)

                  Overrides fetching of network resources (such as service capabilities).

                  +
                  center?: {
                      x: number;
                      y: number;
                  }

                  Center coordinates for the map.

                  +

                  Type declaration

                  • x: number
                  • y: number
                  extent?: ExtentConfig

                  Initial extent (don't mix with center / zoom).

                  +
                  fetch?: ((resource, init) => Promise<Response>)

                  Overrides fetching of network resources (such as service capabilities).

                  Type declaration

                    • (resource, init): Promise<Response>
                    • Overrides fetching of network resources (such as service capabilities).

                      -

                      Parameters

                      • resource: URL
                      • init: undefined | HttpServiceRequestInit

                      Returns Promise<Response>

                  layers?: (SimpleLayerConfig | Layer<{}>)[]

                  Layers used by the map.

                  -
                  noInitialView?: boolean

                  Disables the initial view when set to true.

                  -
                  noProjection?: boolean

                  Disables the default projection when set to true.

                  -
                  projection?: string

                  The map's projection.

                  -
                  zoom?: number

                  Zoom level of the map.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Parameters

                  • resource: URL
                  • init: undefined | HttpServiceRequestInit

                  Returns Promise<Response>

                  layers?: (SimpleLayerConfig | Layer<{}>)[]

                  Layers used by the map.

                  +
                  noInitialView?: boolean

                  Disables the initial view when set to true.

                  +
                  noProjection?: boolean

                  Disables the default projection when set to true.

                  +
                  projection?: string

                  The map's projection.

                  +
                  zoom?: number

                  Zoom level of the map.

                  +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_measurement.MeasurementProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_measurement.MeasurementProps.html index 4024d4596..3167fb39a 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_measurement.MeasurementProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_measurement.MeasurementProps.html @@ -1,12 +1,12 @@ MeasurementProps | Open Pioneer Packages

                  This is for special properties of the Measurement.

                  -
                  interface MeasurementProps {
                      activeFeatureStyle?: Style | Style[] | StyleFunction;
                      className?: string;
                      data-testid?: string;
                      finishedFeatureStyle?: Style | Style[] | StyleFunction;
                      mapId: string;
                  }

                  Hierarchy (view full)

                  Properties

                  interface MeasurementProps {
                      activeFeatureStyle?: Style | Style[] | StyleFunction;
                      className?: string;
                      data-testid?: string;
                      finishedFeatureStyle?: Style | Style[] | StyleFunction;
                      mapId: string;
                  }

                  Hierarchy (view full)

                  Properties

                  activeFeatureStyle?: Style | Style[] | StyleFunction

                  The style for the active drawing feature's geometry.

                  -
                  className?: string

                  Additional class name(s).

                  -
                  data-testid?: string

                  Used for testing.

                  -
                  finishedFeatureStyle?: Style | Style[] | StyleFunction

                  The style for the finished drawn feature's geometry.

                  -
                  mapId: string

                  The id of the map.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +
                  className?: string

                  Additional class name(s).

                  +
                  data-testid?: string

                  Used for testing.

                  +
                  finishedFeatureStyle?: Style | Style[] | StyleFunction

                  The style for the finished drawn feature's geometry.

                  +
                  mapId: string

                  The id of the map.

                  +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.FeatureResponse.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.FeatureResponse.html index 4554ea04a..068ffe81e 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.FeatureResponse.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.FeatureResponse.html @@ -1,10 +1,10 @@ FeatureResponse | Open Pioneer Packages

                  The general shape of features returned by an OGC API Features service.

                  -
                  interface FeatureResponse {
                      geometry: unknown;
                      id: string | number;
                      properties: Readonly<Record<string, unknown>>;
                      type: string;
                  }

                  Properties

                  interface FeatureResponse {
                      geometry: unknown;
                      id: string | number;
                      properties: Readonly<Record<string, unknown>>;
                      type: string;
                  }

                  Properties

                  geometry: unknown

                  The geometry of the feature.

                  -
                  id: string | number

                  The id of the feature.

                  -
                  properties: Readonly<Record<string, unknown>>

                  The properties of the feature.

                  -
                  type: string

                  The type of the feature (e.g. Feature).

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +
                  id: string | number

                  The id of the feature.

                  +
                  properties: Readonly<Record<string, unknown>>

                  The properties of the feature.

                  +
                  type: string

                  The type of the feature (e.g. Feature).

                  +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeatureSearchSourceOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeatureSearchSourceOptions.html index ebfe3a90e..7a2d9cc5a 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeatureSearchSourceOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeatureSearchSourceOptions.html @@ -1,5 +1,5 @@ OgcFeatureSearchSourceOptions | Open Pioneer Packages

                  Options for OgcFeatureSearchSource.

                  -
                  interface OgcFeatureSearchSourceOptions {
                      baseUrl: string;
                      collectionId: string;
                      label: string;
                      labelProperty?: string;
                      renderLabel?: ((feature) => undefined | string);
                      rewriteUrl?: ((url) => undefined | URL);
                      searchProperty: string;
                  }

                  Properties

                  interface OgcFeatureSearchSourceOptions {
                      baseUrl: string;
                      collectionId: string;
                      label: string;
                      labelProperty?: string;
                      renderLabel?: ((feature) => undefined | string);
                      rewriteUrl?: ((url) => undefined | URL);
                      searchProperty: string;
                  }

                  Properties

                  baseUrl collectionId label labelProperty? @@ -10,19 +10,19 @@

                  Query arguments here are also used for individual requests by default, for example:

                  new OgcFeatureSearchSource({
                  // token is also used for all requests made by this class
                  baseUrl: `https://example.com/ogc-service?token=...`
                  })
                  -
                  collectionId: string

                  The ID of the collection.

                  -
                  label: string

                  The source's label. May be used as a title for results from this source.

                  -
                  labelProperty?: string

                  Property used for labelling.

                  +
                  collectionId: string

                  The ID of the collection.

                  +
                  label: string

                  The source's label. May be used as a title for results from this source.

                  +
                  labelProperty?: string

                  Property used for labelling.

                  Defaults to searchProperty.

                  This property can be useful if searchProperty is not returned by the service, or if another field shall be displayed instead.

                  -
                  renderLabel?: ((feature) => undefined | string)

                  Function to create custom a label for a given feature.

                  +
                  renderLabel?: ((feature) => undefined | string)

                  Function to create custom a label for a given feature.

                  If the label is not customized by this function, labelProperty (or searchProperty) will be used instead.

                  Type declaration

                    • (feature): undefined | string
                    • Function to create custom a label for a given feature.

                      If the label is not customized by this function, labelProperty (or searchProperty) will be used instead.

                      -

                      Parameters

                      Returns undefined | string

                  rewriteUrl?: ((url) => undefined | URL)

                  Rewrite function to modify the original URL.

                  +

                  Parameters

                  Returns undefined | string

                  rewriteUrl?: ((url) => undefined | URL)

                  Rewrite function to modify the original URL.

                  NOTE: Do not update the url argument. Return a new URL instance instead.

                  Type declaration

                    • (url): undefined | URL
                    • Rewrite function to modify the original URL.

                      NOTE: Do not update the url argument. Return a new URL instance instead.

                      -

                      Parameters

                      • url: URL

                      Returns undefined | URL

                  searchProperty: string

                  Property used for filtering on OGC API Features.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Parameters

                  • url: URL

                  Returns undefined | URL

                  searchProperty: string

                  Property used for filtering on OGC API Features.

                  +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeatureVectorSourceOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeatureVectorSourceOptions.html index 695443f5e..f9effb111 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeatureVectorSourceOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeatureVectorSourceOptions.html @@ -1,5 +1,5 @@ OgcFeatureVectorSourceOptions | Open Pioneer Packages

                  These are properties for OGC API Features vector source.

                  -
                  interface OgcFeatureVectorSourceOptions {
                      additionalOptions?: Options<Feature<Geometry>>;
                      attributions?: string | string[] | Attribution;
                      baseUrl: string;
                      collectionId: string;
                      crs: string;
                      limit?: number;
                      maxConcurrentRequests?: number;
                  }

                  Properties

                  interface OgcFeatureVectorSourceOptions {
                      additionalOptions?: Options<Feature<Geometry>>;
                      attributions?: string | string[] | Attribution;
                      baseUrl: string;
                      collectionId: string;
                      crs: string;
                      limit?: number;
                      maxConcurrentRequests?: number;
                  }

                  Properties

                  additionalOptions?: Options<Feature<Geometry>>

                  Optional additional options for the VectorSource.

                  -
                  attributions?: string | string[] | Attribution

                  Optional attribution for the layer (e.g. copyright hints).

                  -
                  baseUrl: string

                  The base-URL right to the "/collections"-part

                  -
                  collectionId: string

                  The collection-ID

                  -
                  crs: string

                  the URL to the EPSG-Code, e.g. http://www.opengis.net/def/crs/EPSG/0/25832

                  -
                  limit?: number

                  The maximum number of features to fetch within a single request. +

                  attributions?: string | string[] | Attribution

                  Optional attribution for the layer (e.g. copyright hints).

                  +
                  baseUrl: string

                  The base-URL right to the "/collections"-part

                  +
                  collectionId: string

                  The collection-ID

                  +
                  crs: string

                  the URL to the EPSG-Code, e.g. http://www.opengis.net/def/crs/EPSG/0/25832

                  +
                  limit?: number

                  The maximum number of features to fetch within a single request. Corresponds to the limit parameter in the URL.

                  When the offset strategy is used for feature fetching, the limit is used for the page size

                  Defaults to 5000 for Next-Strategy. Defaults to 2500 for Offset-Strategy.

                  -
                  maxConcurrentRequests?: number

                  The maximum number of concurrent requests. Defaults to 6.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +
                  maxConcurrentRequests?: number

                  The maximum number of concurrent requests. Defaults to 6.

                  +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeaturesSearchSourceFactory.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeaturesSearchSourceFactory.html index e14d5a7e3..6edd57163 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeaturesSearchSourceFactory.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeaturesSearchSourceFactory.html @@ -1,6 +1,6 @@ OgcFeaturesSearchSourceFactory | Open Pioneer Packages

                  A factory that creates search sources for an OGC API Features service. The resulting search sources can be used in combination with the @open-pioneer/search package.

                  Use the interface name "ogc-features.SearchSourceFactory" to obtain an instance of this factory.

                  -
                  interface OgcFeaturesSearchSourceFactory {
                      createSearchSource(options): SearchSource;
                  }

                  Hierarchy

                  • DeclaredService<"ogc-features.SearchSourceFactory">
                    • OgcFeaturesSearchSourceFactory

                  Methods

                  interface OgcFeaturesSearchSourceFactory {
                      createSearchSource(options): SearchSource;
                  }

                  Hierarchy

                  • DeclaredService<"ogc-features.SearchSourceFactory">
                    • OgcFeaturesSearchSourceFactory

                  Methods

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Returns SearchSource

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeaturesVectorSourceFactory.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeaturesVectorSourceFactory.html index 3aa7f8136..4af2c2214 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeaturesVectorSourceFactory.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_ogc_features.OgcFeaturesVectorSourceFactory.html @@ -1,6 +1,6 @@ OgcFeaturesVectorSourceFactory | Open Pioneer Packages

                  A factory that creates VectorSource | vector sources for an OGC API Features service. The resulting vector sources can be used in an OpenLayers VectorLayer.

                  Use the interface name "ogc-features.VectorSourceFactory" to obtain an instance of this factory.

                  -
                  interface OgcFeaturesVectorSourceFactory {
                      createVectorSource(options): VectorSource<Feature<Geometry>>;
                  }

                  Hierarchy

                  • DeclaredService<"ogc-features.VectorSourceFactory">
                    • OgcFeaturesVectorSourceFactory

                  Methods

                  interface OgcFeaturesVectorSourceFactory {
                      createVectorSource(options): VectorSource<Feature<Geometry>>;
                  }

                  Hierarchy

                  • DeclaredService<"ogc-features.VectorSourceFactory">
                    • OgcFeaturesVectorSourceFactory

                  Methods

                  • Creates a new VectorSource that loads features from the specified feature service.

                    -

                    Returns VectorSource<Feature<Geometry>>

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Returns VectorSource<Feature<Geometry>>

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_overview_map.OverviewMapProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_overview_map.OverviewMapProps.html index 890a4bbac..023937dd2 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_overview_map.OverviewMapProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_overview_map.OverviewMapProps.html @@ -1,16 +1,16 @@ OverviewMapProps | Open Pioneer Packages

                  These are properties supported by the OverviewMap.

                  -
                  interface OverviewMapProps {
                      className?: string;
                      data-testid?: string;
                      height?: number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content" | ResponsiveArray<number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content"> | Partial<Record<string | string & {}, number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content">>;
                      mapId: string;
                      olLayer: BaseLayer;
                      width?: number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content" | "-moz-fit-content" | "-webkit-max-content" | "intrinsic" | "min-intrinsic" | ResponsiveArray<number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content" | "-moz-fit-content" | "-webkit-max-content" | "intrinsic" | "min-intrinsic"> | Partial<Record<string | string & {}, number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content" | "-moz-fit-content" | "-webkit-max-content" | "intrinsic" | "min-intrinsic">>;
                  }

                  Hierarchy (view full)

                  Properties

                  interface OverviewMapProps {
                      className?: string;
                      data-testid?: string;
                      height?: number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content" | ResponsiveArray<number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content"> | Partial<Record<string | string & {}, number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content">>;
                      mapId: string;
                      olLayer: BaseLayer;
                      width?: number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content" | "-moz-fit-content" | "-webkit-max-content" | "intrinsic" | "min-intrinsic" | ResponsiveArray<number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content" | "-moz-fit-content" | "-webkit-max-content" | "intrinsic" | "min-intrinsic"> | Partial<Record<string | string & {}, number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content" | "-moz-fit-content" | "-webkit-max-content" | "intrinsic" | "min-intrinsic">>;
                  }

                  Hierarchy (view full)

                  Properties

                  className?: string

                  Additional class name(s).

                  -
                  data-testid?: string

                  Used for testing.

                  -
                  height?: number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content" | ResponsiveArray<number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content"> | Partial<Record<string | string & {}, number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content">>

                  The height of the map. +

                  data-testid?: string

                  Used for testing.

                  +
                  height?: number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content" | ResponsiveArray<number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content"> | Partial<Record<string | string & {}, number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content">>

                  The height of the map. This defaults to a reasonable pixel size.

                  -
                  mapId: string

                  The id of the map.

                  -
                  olLayer: BaseLayer

                  The layer shown in the overview map.

                  -
                  width?: number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content" | "-moz-fit-content" | "-webkit-max-content" | "intrinsic" | "min-intrinsic" | ResponsiveArray<number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content" | "-moz-fit-content" | "-webkit-max-content" | "intrinsic" | "min-intrinsic"> | Partial<Record<string | string & {}, number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content" | "-moz-fit-content" | "-webkit-max-content" | "intrinsic" | "min-intrinsic">>

                  The width of the map. +

                  mapId: string

                  The id of the map.

                  +
                  olLayer: BaseLayer

                  The layer shown in the overview map.

                  +
                  width?: number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content" | "-moz-fit-content" | "-webkit-max-content" | "intrinsic" | "min-intrinsic" | ResponsiveArray<number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content" | "-moz-fit-content" | "-webkit-max-content" | "intrinsic" | "min-intrinsic"> | Partial<Record<string | string & {}, number | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "auto" | "fit-content" | "max-content" | "min-content" | "-moz-fit-content" | "-webkit-max-content" | "intrinsic" | "min-intrinsic">>

                  The width of the map. This defaults to a reasonable pixel size.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintingProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintingProps.html index 5e1128efb..56579b5e9 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintingProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_printing.PrintingProps.html @@ -1,8 +1,8 @@ PrintingProps | Open Pioneer Packages

                  This is special property for the Printing.

                  -
                  interface PrintingProps {
                      className?: string;
                      data-testid?: string;
                      mapId: string;
                  }

                  Hierarchy (view full)

                  Properties

                  interface PrintingProps {
                      className?: string;
                      data-testid?: string;
                      mapId: string;
                  }

                  Hierarchy (view full)

                  Properties

                  className?: string

                  Additional class name(s).

                  -
                  data-testid?: string

                  Used for testing.

                  -
                  mapId: string

                  The id of the map.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +
                  data-testid?: string

                  Used for testing.

                  +
                  mapId: string

                  The id of the map.

                  +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.CommonComponentProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.CommonComponentProps.html index 95712f9b7..2ae7a1a8f 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.CommonComponentProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.CommonComponentProps.html @@ -1,6 +1,6 @@ CommonComponentProps | Open Pioneer Packages

                  Common properties supported by all public react components.

                  -
                  interface CommonComponentProps {
                      className?: string;
                      data-testid?: string;
                  }

                  Hierarchy (view full)

                  Properties

                  interface CommonComponentProps {
                      className?: string;
                      data-testid?: string;
                  }

                  Hierarchy (view full)

                  Properties

                  className?: string

                  Additional class name(s).

                  -
                  data-testid?: string

                  Used for testing.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +
                  data-testid?: string

                  Used for testing.

                  +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.ConfigureTitledSectionProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.ConfigureTitledSectionProps.html index 3b2891cc4..a4be170a2 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.ConfigureTitledSectionProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.ConfigureTitledSectionProps.html @@ -1,4 +1,4 @@ ConfigureTitledSectionProps | Open Pioneer Packages

                  Properties for the ConfigureTitledSection component.

                  -
                  interface ConfigureTitledSectionProps {
                      children?: ReactNode;
                      level: HeadingLevel;
                  }

                  Properties

                  interface ConfigureTitledSectionProps {
                      children?: ReactNode;
                      level: HeadingLevel;
                  }

                  Properties

                  Properties

                  children?: ReactNode

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Properties

                  children?: ReactNode

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.SectionHeadingProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.SectionHeadingProps.html index 012ef1803..51466b672 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.SectionHeadingProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.SectionHeadingProps.html @@ -1,4 +1,4 @@ SectionHeadingProps | Open Pioneer Packages

                  Properties supported by the SectionHeading component.

                  All chakra properties are forwarded to the Heading component.

                  -
                  interface SectionHeadingProps {
                      children?: ReactNode;
                  }

                  Hierarchy

                  • HeadingProps
                    • SectionHeadingProps

                  Properties

                  Properties

                  children?: ReactNode

                  Generated using TypeDoc

                  \ No newline at end of file +
                  interface SectionHeadingProps {
                      children?: ReactNode;
                  }

                  Hierarchy

                  • HeadingProps
                    • SectionHeadingProps

                  Properties

                  Properties

                  children?: ReactNode

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.TitledSectionProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.TitledSectionProps.html index db630a334..6608b76e0 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.TitledSectionProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.TitledSectionProps.html @@ -1,12 +1,12 @@ TitledSectionProps | Open Pioneer Packages

                  Properties of the TitledSection component.

                  -
                  interface TitledSectionProps {
                      children?: ReactNode;
                      substituteHeadingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
                      title?: ReactNode;
                  }

                  Properties

                  interface TitledSectionProps {
                      children?: ReactNode;
                      substituteHeadingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
                      title?: ReactNode;
                  }

                  Properties

                  children?: ReactNode

                  Children are rendered without any modifications.

                  -
                  substituteHeadingLevel?: 1 | 2 | 3 | 4 | 5 | 6

                  Allows to substitute the heading level that is used up from this section. +

                  substituteHeadingLevel?: 1 | 2 | 3 | 4 | 5 | 6

                  Allows to substitute the heading level that is used up from this section. This should only be used to configure the initial level or if it is actually intended to adjust the DOM structure.

                  -
                  title?: ReactNode

                  The title component.

                  +
                  title?: ReactNode

                  The title component.

                  Strings are automatically wrapped in a SectionHeading. More complex nodes should use the SectionHeading internally.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.ToolButtonProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.ToolButtonProps.html index 4664f443c..6c9e8c8a6 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.ToolButtonProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_react_utils.ToolButtonProps.html @@ -1,5 +1,5 @@ ToolButtonProps | Open Pioneer Packages

                  Properties supported by ToolButton.

                  -
                  interface ToolButtonProps {
                      buttonProps?: Partial<ButtonProps>;
                      className?: string;
                      data-testid?: string;
                      icon: ReactElement<any, string | ((props, deprecatedLegacyContext?) => ReactNode) | (new (props, deprecatedLegacyContext?) => Component<any, any, any>)>;
                      isActive?: boolean;
                      isDisabled?: boolean;
                      isLoading?: boolean;
                      label: string;
                      onClick?: MouseEventHandler<HTMLButtonElement>;
                      tooltipProps?: Partial<TooltipProps>;
                  }

                  Hierarchy (view full)

                  Properties

                  interface ToolButtonProps {
                      buttonProps?: Partial<ButtonProps>;
                      className?: string;
                      data-testid?: string;
                      icon: ReactElement<any, string | ((props, deprecatedLegacyContext?) => ReactNode) | (new (props, deprecatedLegacyContext?) => Component<any, any, any>)>;
                      isActive?: boolean;
                      isDisabled?: boolean;
                      isLoading?: boolean;
                      label: string;
                      onClick?: MouseEventHandler<HTMLButtonElement>;
                      tooltipProps?: Partial<TooltipProps>;
                  }

                  Hierarchy (view full)

                  Properties

                  Properties

                  buttonProps?: Partial<ButtonProps>

                  Additional properties for the Button element.

                  Note that the ToolButton also defines some of these props.

                  -
                  className?: string

                  Additional class name(s).

                  -
                  data-testid?: string

                  Used for testing.

                  -
                  icon: ReactElement<any, string | ((props, deprecatedLegacyContext?) => ReactNode) | (new (props, deprecatedLegacyContext?) => Component<any, any, any>)>

                  The icon displayed by the button.

                  -
                  isActive?: boolean

                  If true, indicates that the button is currently active with a different style. +

                  className?: string

                  Additional class name(s).

                  +
                  data-testid?: string

                  Used for testing.

                  +
                  icon: ReactElement<any, string | ((props, deprecatedLegacyContext?) => ReactNode) | (new (props, deprecatedLegacyContext?) => Component<any, any, any>)>

                  The icon displayed by the button.

                  +
                  isActive?: boolean

                  If true, indicates that the button is currently active with a different style. Defaults to undefined.

                  A value of true or false indicates that the button supports being active (i.e. pressed). In that case the aria-pressed attribute will be configured automatically (see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-pressed).

                  -
                  isDisabled?: boolean

                  If true, the button will be disabled. +

                  isDisabled?: boolean

                  If true, the button will be disabled. Defaults to false.

                  -
                  isLoading?: boolean

                  If true, the button will show a spinner. +

                  isLoading?: boolean

                  If true, the button will show a spinner. Defaults to false.

                  -
                  label: string

                  The label for the ToolButton. +

                  label: string

                  The label for the ToolButton. This value services as the tooltip text and the aria-label.

                  This property is required for a11y reasons because a ToolButton usually only displays an icon.

                  -
                  onClick?: MouseEventHandler<HTMLButtonElement>

                  The callback that will be called when the user clicks the button.

                  -
                  tooltipProps?: Partial<TooltipProps>

                  Additional properties for the Tooltip element.

                  +
                  onClick?: MouseEventHandler<HTMLButtonElement>

                  The callback that will be called when the user clicks the button.

                  +
                  tooltipProps?: Partial<TooltipProps>

                  Additional properties for the Tooltip element.

                  Note that the ToolButton also defines some of these props.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.FormatOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.FormatOptions.html index 4ca558883..aec2a0e2f 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.FormatOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.FormatOptions.html @@ -1,6 +1,6 @@ FormatOptions | Open Pioneer Packages

                  To specify the format of cell values if they are of number or date type.

                  -
                  interface FormatOptions {
                      dateOptions?: DateTimeFormatOptions;
                      numberOptions?: FormatNumberOptions;
                  }

                  Properties

                  interface FormatOptions {
                      dateOptions?: DateTimeFormatOptions;
                      numberOptions?: FormatNumberOptions;
                  }

                  Properties

                  dateOptions?: DateTimeFormatOptions

                  To specify the format of date type values

                  -
                  numberOptions?: FormatNumberOptions

                  To specify the format of number type values

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +
                  numberOptions?: FormatNumberOptions

                  To specify the format of number type values

                  +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.RenderCellContext.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.RenderCellContext.html index d9f690ef7..68ab363fc 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.RenderCellContext.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.RenderCellContext.html @@ -1,7 +1,7 @@ RenderCellContext | Open Pioneer Packages

                  The arguments passed to renderCell.

                  -
                  interface RenderCellContext {
                      feature: BaseFeature;
                      value: unknown;
                  }

                  Properties

                  interface RenderCellContext {
                      feature: BaseFeature;
                      value: unknown;
                  }

                  Properties

                  Properties

                  feature: BaseFeature

                  The feature in this row.

                  -
                  value: unknown

                  The value of this column. +

                  value: unknown

                  The value of this column. May be undefined if neither propertyName nor getPropertyValue was specified on the column.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultColumn.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultColumn.html index 7c784f2b9..98f4dd3e7 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultColumn.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultColumn.html @@ -1,6 +1,6 @@ ResultColumn | Open Pioneer Packages

                  Configures a column in the result list component.

                  A column typically renders a property from the underlying feature.

                  -
                  interface ResultColumn {
                      displayName?: string;
                      getPropertyValue?: ((feature) => unknown);
                      id?: string;
                      propertyName?: string;
                      renderCell?: ((context) => ReactNode);
                      width?: number;
                  }

                  Properties

                  interface ResultColumn {
                      displayName?: string;
                      getPropertyValue?: ((feature) => unknown);
                      id?: string;
                      propertyName?: string;
                      renderCell?: ((context) => ReactNode);
                      width?: number;
                  }

                  Properties

                  Properties

                  displayName?: string

                  The display name of this column.

                  If no displayName has been configured, propertyName will serve as a fallback value. If propertyName is also undefined, no column header will be rendered at all.

                  -
                  getPropertyValue?: ((feature) => unknown)

                  Define this function to return a custom property value for this column.

                  +
                  getPropertyValue?: ((feature) => unknown)

                  Define this function to return a custom property value for this column.

                  This can be used to create derived columns (by combining multiple properties into one value) or to create columns for property that don't exist directly on the feature.

                  The return value of this function will be rendered by the table.

                  @@ -17,16 +17,16 @@

                  This can be used to create derived columns (by combining multiple properties into one value) or to create columns for property that don't exist directly on the feature.

                  The return value of this function will be rendered by the table.

                  -

                  Parameters

                  Returns unknown

                  id?: string

                  Use this option to define an explicit column id. +

                  Parameters

                  Returns unknown

                  id?: string

                  Use this option to define an explicit column id. This can be helpful to track your column when it moves in the table (for example, the sort order can be maintained).

                  If this is not defined, propertyName will serve as a fallback. If that is also not defined, the column index will be used instead.

                  It is recommended to specify an id, if no propertyName has been set, because the column index fallback is not advised.

                  -
                  propertyName?: string

                  The property name to render.

                  +
                  propertyName?: string

                  The property name to render.

                  The value is expected to be available as feature.properties[propertyName].

                  See also getPropertyValue.

                  -
                  renderCell?: ((context) => ReactNode)

                  Custom render function to render a table cell in this column.

                  +
                  renderCell?: ((context) => ReactNode)

                  Custom render function to render a table cell in this column.

                  Type declaration

                    • (context): ReactNode
                    • Custom render function to render a table cell in this column.

                      -

                      Parameters

                      Returns ReactNode

                  width?: number

                  The width of this column, in pixels.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Parameters

                  Returns ReactNode

                  width?: number

                  The width of this column, in pixels.

                  +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListInput.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListInput.html index 66e971c63..b8492f9f4 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListInput.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListInput.html @@ -1,10 +1,10 @@ ResultListInput | Open Pioneer Packages

                  Configures the result list's content.

                  -
                  interface ResultListInput {
                      columns: ResultColumn[];
                      data: BaseFeature[];
                      formatOptions?: FormatOptions;
                  }

                  Properties

                  interface ResultListInput {
                      columns: ResultColumn[];
                      data: BaseFeature[];
                      formatOptions?: FormatOptions;
                  }

                  Properties

                  columns: ResultColumn[]

                  Configures the columns shown by the result list.

                  -
                  data: BaseFeature[]

                  The data shown by the result list component. +

                  data: BaseFeature[]

                  The data shown by the result list component. Every feature will be rendered as an individual row.

                  -
                  formatOptions?: FormatOptions

                  Optional formatOptions to specify the numberOptions for number type values and +

                  formatOptions?: FormatOptions

                  Optional formatOptions to specify the numberOptions for number type values and dateOptions to specify the format of date type values

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListProps.html index 59174a566..6dddbfdfe 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListProps.html @@ -1,13 +1,13 @@ ResultListProps | Open Pioneer Packages

                  Properties supported by the ResultList component.

                  -
                  interface ResultListProps {
                      className?: string;
                      data-testid?: string;
                      input: ResultListInput;
                      mapId?: string;
                      onSelectionChange?: ((event) => void);
                  }

                  Hierarchy (view full)

                  Properties

                  interface ResultListProps {
                      className?: string;
                      data-testid?: string;
                      input: ResultListInput;
                      mapId?: string;
                      onSelectionChange?: ((event) => void);
                  }

                  Hierarchy (view full)

                  Properties

                  className?: string

                  Additional class name(s).

                  -
                  data-testid?: string

                  Used for testing.

                  -

                  Describes the data rendered by the component.

                  -
                  mapId?: string

                  The id of the map.

                  -
                  onSelectionChange?: ((event) => void)

                  This handler is called whenever the user has changed the selected features in the result-list

                  +
                  data-testid?: string

                  Used for testing.

                  +

                  Describes the data rendered by the component.

                  +
                  mapId?: string

                  The id of the map.

                  +
                  onSelectionChange?: ((event) => void)

                  This handler is called whenever the user has changed the selected features in the result-list

                  Type declaration

                    • (event): void
                    • This handler is called whenever the user has changed the selected features in the result-list

                      -

                      Returns void

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Returns void

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListSelectionChangeEvent.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListSelectionChangeEvent.html index 62dc5d61a..a60e547dd 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListSelectionChangeEvent.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_result_list.ResultListSelectionChangeEvent.html @@ -1,4 +1,4 @@ ResultListSelectionChangeEvent | Open Pioneer Packages

                  Emitted when the selection within the ResultList changes.

                  -
                  interface ResultListSelectionChangeEvent {
                      features: BaseFeature[];
                      getFeatureIds: (() => (string | number)[]);
                  }

                  Properties

                  interface ResultListSelectionChangeEvent {
                      features: BaseFeature[];
                      getFeatureIds: (() => (string | number)[]);
                  }

                  Properties

                  features: BaseFeature[]
                  getFeatureIds: (() => (string | number)[])

                  Type declaration

                    • (): (string | number)[]
                    • Returns (string | number)[]

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Properties

                  features: BaseFeature[]
                  getFeatureIds: (() => (string | number)[])

                  Type declaration

                    • (): (string | number)[]
                    • Returns (string | number)[]

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_bar.ScaleBarProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_bar.ScaleBarProps.html index 3cfca93cf..eab84b495 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_bar.ScaleBarProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_bar.ScaleBarProps.html @@ -1,10 +1,10 @@ ScaleBarProps | Open Pioneer Packages

                  These are the properties supported by the ScaleBar.

                  -
                  interface ScaleBarProps {
                      className?: string;
                      data-testid?: string;
                      displayMode?: "bar" | "line";
                      mapId: string;
                  }

                  Hierarchy (view full)

                  Properties

                  interface ScaleBarProps {
                      className?: string;
                      data-testid?: string;
                      displayMode?: "bar" | "line";
                      mapId: string;
                  }

                  Hierarchy (view full)

                  Properties

                  className?: string

                  Additional class name(s).

                  -
                  data-testid?: string

                  Used for testing.

                  -
                  displayMode?: "bar" | "line"

                  Display the scale either as a line or a bar. Defaults to "line".

                  -
                  mapId: string

                  The map id.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +
                  data-testid?: string

                  Used for testing.

                  +
                  displayMode?: "bar" | "line"

                  Display the scale either as a line or a bar. Defaults to "line".

                  +
                  mapId: string

                  The map id.

                  +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_viewer.ScaleViewerProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_viewer.ScaleViewerProps.html index 54d255897..3c3fc89d8 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_viewer.ScaleViewerProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_scale_viewer.ScaleViewerProps.html @@ -1,8 +1,8 @@ ScaleViewerProps | Open Pioneer Packages

                  These are the properties supported by the ScaleViewer.

                  -
                  interface ScaleViewerProps {
                      className?: string;
                      data-testid?: string;
                      mapId: string;
                  }

                  Hierarchy (view full)

                  Properties

                  interface ScaleViewerProps {
                      className?: string;
                      data-testid?: string;
                      mapId: string;
                  }

                  Hierarchy (view full)

                  Properties

                  className?: string

                  Additional class name(s).

                  -
                  data-testid?: string

                  Used for testing.

                  -
                  mapId: string

                  The map id.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +
                  data-testid?: string

                  Used for testing.

                  +
                  mapId: string

                  The map id.

                  +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchOptions.html index 2924eabae..e6d27a245 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchOptions.html @@ -1,15 +1,15 @@ SearchOptions | Open Pioneer Packages

                  Options passed to a SearchSource when triggering a search.

                  -
                  interface SearchOptions {
                      mapProjection: Projection;
                      maxResults: number;
                      signal: AbortSignal;
                  }

                  Properties

                  interface SearchOptions {
                      mapProjection: Projection;
                      maxResults: number;
                      signal: AbortSignal;
                  }

                  Properties

                  mapProjection: Projection

                  The current projection of the map. Useful to return the search result's geometry in the suitable projection.

                  -
                  maxResults: number

                  The maximum number of search results requested by the search widget. +

                  maxResults: number

                  The maximum number of search results requested by the search widget. The widget will not display additional results, should the source provide them.

                  This property allows the source to fetch no more results than necessary.

                  -
                  signal: AbortSignal

                  The signal can be used to detect cancellation. +

                  signal: AbortSignal

                  The signal can be used to detect cancellation. The search widget will automatically cancel obsolete requests when new search operations are started.

                  You can pass this signal to builtin functions like fetch that automatically support cancellation.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchProps.html index cc1f8654a..45b2a2b79 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchProps.html @@ -1,5 +1,5 @@ SearchProps | Open Pioneer Packages

                  Properties supported by the Search component.

                  -
                  interface SearchProps {
                      className?: string;
                      data-testid?: string;
                      mapId: string;
                      maxResultsPerGroup?: number;
                      onClear?: (() => void);
                      onSelect?: ((event) => void);
                      searchTypingDelay?: number;
                      sources: SearchSource[];
                  }

                  Hierarchy (view full)

                  Properties

                  interface SearchProps {
                      className?: string;
                      data-testid?: string;
                      mapId: string;
                      maxResultsPerGroup?: number;
                      onClear?: (() => void);
                      onSelect?: ((event) => void);
                      searchTypingDelay?: number;
                      sources: SearchSource[];
                  }

                  Hierarchy (view full)

                  Properties

                  className?: string

                  Additional class name(s).

                  -
                  data-testid?: string

                  Used for testing.

                  -
                  mapId: string

                  The id of the map.

                  -
                  maxResultsPerGroup?: number

                  The maximum number of results shown per group. +

                  data-testid?: string

                  Used for testing.

                  +
                  mapId: string

                  The id of the map.

                  +
                  maxResultsPerGroup?: number

                  The maximum number of results shown per group. Defaults to 5.

                  -
                  onClear?: (() => void)

                  This event handler will be called when the user clears the search input.

                  +
                  onClear?: (() => void)

                  This event handler will be called when the user clears the search input.

                  Type declaration

                    • (): void
                    • This event handler will be called when the user clears the search input.

                      -

                      Returns void

                  onSelect?: ((event) => void)

                  This event handler will be called when the user selects a search result.

                  +

                  Returns void

                  onSelect?: ((event) => void)

                  This event handler will be called when the user selects a search result.

                  Type declaration

                    • (event): void
                    • This event handler will be called when the user selects a search result.

                      -

                      Parameters

                      Returns void

                  searchTypingDelay?: number

                  Typing delay (in milliseconds) before the async search query starts after the user types in the search term. +

                  Parameters

                  Returns void

                  searchTypingDelay?: number

                  Typing delay (in milliseconds) before the async search query starts after the user types in the search term. Defaults to 200.

                  -
                  sources: SearchSource[]

                  Data sources to be searched on.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +
                  sources: SearchSource[]

                  Data sources to be searched on.

                  +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchResult.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchResult.html index 28af361bb..854a592ba 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchResult.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchResult.html @@ -1,5 +1,5 @@ SearchResult | Open Pioneer Packages

                  Represent the result of a search.

                  -
                  interface SearchResult {
                      geometry?: Geometry;
                      id: string | number;
                      label: string;
                      projection?: string;
                      properties?: Readonly<Record<string, unknown>>;
                      style?: Style;
                  }

                  Hierarchy (view full)

                  Properties

                  interface SearchResult {
                      geometry?: Geometry;
                      id: string | number;
                      label: string;
                      projection?: string;
                      properties?: Readonly<Record<string, unknown>>;
                      style?: Style;
                  }

                  Hierarchy (view full)

                  Properties

                  geometry? id label projection? @@ -7,12 +7,12 @@ style?

                  Properties

                  geometry?: Geometry

                  Geometry of the feature. Also specify the projection if geometry is set.

                  -
                  id: string | number

                  Identifier for the feature object. Must be unique within all features of one source/layer.

                  +
                  id: string | number

                  Identifier for the feature object. Must be unique within all features of one source/layer.

                  If your source cannot provide a useful id on its own, another strategy to generate unique ids is to generate a UUID instead.

                  -
                  label: string

                  Display text representing this result. +

                  label: string

                  Display text representing this result. Will be shown in the search widget's suggestion list.

                  -
                  projection?: string

                  The projection of the geometry.

                  -
                  properties?: Readonly<Record<string, unknown>>

                  Properties of the feature.

                  -
                  style?: Style

                  Additional style information for displaying the feature on the map.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +
                  projection?: string

                  The projection of the geometry.

                  +
                  properties?: Readonly<Record<string, unknown>>

                  Properties of the feature.

                  +
                  style?: Style

                  Additional style information for displaying the feature on the map.

                  +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchSelectEvent.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchSelectEvent.html index 6c4d48c76..428821735 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchSelectEvent.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchSelectEvent.html @@ -1,6 +1,6 @@ SearchSelectEvent | Open Pioneer Packages

                  Event type emitted when the user selects an item.

                  -
                  interface SearchSelectEvent {
                      result: SearchResult;
                      source: SearchSource;
                  }

                  Properties

                  interface SearchSelectEvent {
                      result: SearchResult;
                      source: SearchSource;
                  }

                  Properties

                  Properties

                  result: SearchResult

                  The search result selected by the user.

                  -
                  source: SearchSource

                  The source that returned the result.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +
                  source: SearchSource

                  The source that returned the result.

                  +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchSource.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchSource.html index b9d7d8f6e..32c5350b9 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchSource.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_search.SearchSource.html @@ -1,10 +1,10 @@ SearchSource | Open Pioneer Packages

                  An object that allows searching some set of data.

                  Developers can create classes that implement this interface for different search sources.

                  -
                  interface SearchSource {
                      label: string;
                      search(inputValue, options): Promise<SearchResult[]>;
                  }

                  Properties

                  interface SearchSource {
                      label: string;
                      search(inputValue, options): Promise<SearchResult[]>;
                  }

                  Properties

                  Methods

                  Properties

                  label: string

                  The label of this source.

                  This will be displayed by the user interface when results from this search source are shown.

                  -

                  Methods

                  Methods

                  • Performs a search and return a list of search results.

                    Implementations should return the results ordered by priority (best match first), if possible.

                    The provided AbortSignal in options.signal is used to cancel outdated requests.

                    NOTE: If your search source implements custom error handling (i.e. try/catch), it is good practice to forward @@ -13,4 +13,4 @@

                    For example:

                    import { isAbortError } from "@open-pioneer/core";

                    class CustomSearchSource {
                    async search(input, { signal }) {
                    try {
                    // If the search is cancelled by the UI, doRequest
                    // will throw an AbortError. It might throw other errors
                    // due to application errors, network problems etc.
                    const result = await doCustomSearch(input, signal);
                    // ... do something with result
                    } catch (e) {
                    if (isAbortError(e)) {
                    throw e; // rethrow original error
                    }
                    // Possibly use custom error codes or error classes for better error messages
                    throw new Error("Custom search failed", { cause: e });
                    }
                    }
                    }
                    -

                    Parameters

                    Returns Promise<SearchResult[]>

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Parameters

                  Returns Promise<SearchResult[]>

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.ExtentSelection.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.ExtentSelection.html index 086f8bd0b..fd8f69be0 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.ExtentSelection.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.ExtentSelection.html @@ -1,4 +1,4 @@ ExtentSelection | Open Pioneer Packages

                  The user has selected an extent.

                  -
                  interface ExtentSelection {
                      extent: Extent;
                      type: "extent";
                  }

                  Properties

                  interface ExtentSelection {
                      extent: Extent;
                      type: "extent";
                  }

                  Properties

                  Properties

                  extent: Extent
                  type: "extent"

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Properties

                  extent: Extent
                  type: "extent"

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionCompleteEvent.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionCompleteEvent.html index 55b061664..3ef9096e5 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionCompleteEvent.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionCompleteEvent.html @@ -1,5 +1,5 @@ -SelectionCompleteEvent | Open Pioneer Packages
                  interface SelectionCompleteEvent {
                      results: SelectionResult[];
                      source: SelectionSource;
                  }

                  Properties

                  results +SelectionCompleteEvent | Open Pioneer Packages
                  interface SelectionCompleteEvent {
                      results: SelectionResult[];
                      source: SelectionSource;
                  }

                  Properties

                  Properties

                  results: SelectionResult[]

                  Results selected by the user.

                  -

                  The source that returned the results.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  The source that returned the results.

                  +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionOptions.html index 9347ffa93..29674de90 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionOptions.html @@ -1,13 +1,13 @@ SelectionOptions | Open Pioneer Packages

                  Options passed to a SelectionSource when triggering a select.

                  -
                  interface SelectionOptions {
                      mapProjection: Projection;
                      maxResults: number;
                      signal: AbortSignal;
                  }

                  Properties

                  interface SelectionOptions {
                      mapProjection: Projection;
                      maxResults: number;
                      signal: AbortSignal;
                  }

                  Properties

                  mapProjection: Projection

                  The current projection of the map. Useful to return the selection result's geometry in the suitable projection, should they differ.

                  -
                  maxResults: number

                  The maximum number of selection results to request. +

                  maxResults: number

                  The maximum number of selection results to request. The selection component currently only supports a certain amount of results (indicated by this value). If a source results more than maxResults results, additional results will be ignored.

                  -
                  signal: AbortSignal

                  The signal can be used to detect cancellation.

                  +
                  signal: AbortSignal

                  The signal can be used to detect cancellation.

                  You can pass this signal to builtin functions like fetch that automatically support cancellation.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionProps.html index ea478ea03..14c101dc8 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionProps.html @@ -1,15 +1,15 @@ SelectionProps | Open Pioneer Packages

                  Properties supported by the Selection component.

                  -
                  interface SelectionProps {
                      className?: string;
                      data-testid?: string;
                      mapId: string;
                      sources: SelectionSource[];
                      onSelectionComplete?(event): void;
                      onSelectionSourceChanged?(event): void;
                  }

                  Hierarchy (view full)

                  Properties

                  interface SelectionProps {
                      className?: string;
                      data-testid?: string;
                      mapId: string;
                      sources: SelectionSource[];
                      onSelectionComplete?(event): void;
                      onSelectionSourceChanged?(event): void;
                  }

                  Hierarchy (view full)

                  Properties

                  className?: string

                  Additional class name(s).

                  -
                  data-testid?: string

                  Used for testing.

                  -
                  mapId: string

                  The id of the map.

                  -
                  sources: SelectionSource[]

                  Array of selection sources available for spatial selection.

                  -

                  Methods

                  data-testid?: string

                  Used for testing.

                  +
                  mapId: string

                  The id of the map.

                  +
                  sources: SelectionSource[]

                  Array of selection sources available for spatial selection.

                  +

                  Methods

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Parameters

                  Returns void

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionResult.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionResult.html index 329c51bae..f94751ec3 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionResult.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionResult.html @@ -1,15 +1,15 @@ SelectionResult | Open Pioneer Packages

                  Represents a result returned by a spatial selection.

                  -
                  interface SelectionResult {
                      geometry: Geometry;
                      id: string | number;
                      projection?: string;
                      properties?: Readonly<Record<string, unknown>>;
                      style?: Style;
                  }

                  Hierarchy (view full)

                  Properties

                  interface SelectionResult {
                      geometry: Geometry;
                      id: string | number;
                      projection?: string;
                      properties?: Readonly<Record<string, unknown>>;
                      style?: Style;
                  }

                  Hierarchy (view full)

                  Properties

                  geometry: Geometry

                  Geometry of the selection result. One should also specify the projection.

                  -
                  id: string | number

                  Identifier for the feature object. Must be unique within all features of one source/layer.

                  +
                  id: string | number

                  Identifier for the feature object. Must be unique within all features of one source/layer.

                  If your source cannot provide a useful id on its own, another strategy to generate unique ids is to generate a UUID instead.

                  -
                  projection?: string

                  The projection of the geometry.

                  -
                  properties?: Readonly<Record<string, unknown>>

                  Properties of the feature.

                  -
                  style?: Style

                  Additional style information for displaying the feature on the map.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +
                  projection?: string

                  The projection of the geometry.

                  +
                  properties?: Readonly<Record<string, unknown>>

                  Properties of the feature.

                  +
                  style?: Style

                  Additional style information for displaying the feature on the map.

                  +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSource.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSource.html index dd5e257a7..851520c07 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSource.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSource.html @@ -3,20 +3,20 @@

                  The implementation of SelectionSourceEventBase is optional: it is only necessary if the status changes during the lifetime of the selection source. To implement events, you can write class MySelectionSource extends EventEmitter<SelectionSourceEvents>.

                  -
                  interface SelectionSource {
                      label: string;
                      status?: {
                          kind: "available";
                      } | {
                          kind: "unavailable";
                          reason?: string;
                      } | "available" | "unavailable";
                      select(selectionKind, options): Promise<SelectionResult[]>;
                  }

                  Hierarchy

                  Properties

                  interface SelectionSource {
                      label: string;
                      status?: {
                          kind: "available";
                      } | {
                          kind: "unavailable";
                          reason?: string;
                      } | "available" | "unavailable";
                      select(selectionKind, options): Promise<SelectionResult[]>;
                  }

                  Hierarchy

                  Properties

                  Methods

                  Properties

                  label: string

                  The label of this source.

                  This will be displayed by the user interface during selection source selection.

                  -
                  status?: {
                      kind: "available";
                  } | {
                      kind: "unavailable";
                      reason?: string;
                  } | "available" | "unavailable"

                  The optional status of this source. If there is no status defined, it is assumed that the +

                  status?: {
                      kind: "available";
                  } | {
                      kind: "unavailable";
                      reason?: string;
                  } | "available" | "unavailable"

                  The optional status of this source. If there is no status defined, it is assumed that the source is always available.

                  This will be displayed by the user interface.

                  Type declaration

                  • kind: "available"

                  Type declaration

                  • kind: "unavailable"
                  • Optional reason?: string

                    If the status of this source is unavailable, the reason for this can be stored here.

                    This will be displayed by the user interface.

                    If it is not defined, a default message will be displayed instead.

                    -

                  Methods

                  • Performs a selection and returns a list of selection results.

                    +

                  Methods

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Returns Promise<SelectionResult[]>

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSourceChangedEvent.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSourceChangedEvent.html index 04eeb662e..7ca70d4ab 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSourceChangedEvent.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSourceChangedEvent.html @@ -1,3 +1,3 @@ -SelectionSourceChangedEvent | Open Pioneer Packages
                  interface SelectionSourceChangedEvent {
                      source: undefined | SelectionSource;
                  }

                  Properties

                  source +SelectionSourceChangedEvent | Open Pioneer Packages
                  interface SelectionSourceChangedEvent {
                      source: undefined | SelectionSource;
                  }

                  Properties

                  Properties

                  source: undefined | SelectionSource

                  The new selected source

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSourceEvents.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSourceEvents.html index 382e7b1f5..609c931c9 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSourceEvents.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.SelectionSourceEvents.html @@ -1,3 +1,3 @@ SelectionSourceEvents | Open Pioneer Packages

                  Events emitted by the SelectionSource.

                  -
                  interface SelectionSourceEvents {
                      changed:status: void;
                  }

                  Properties

                  Properties

                  changed:status: void

                  Generated using TypeDoc

                  \ No newline at end of file +
                  interface SelectionSourceEvents {
                      changed:status: void;
                  }

                  Properties

                  Properties

                  changed:status: void

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSource.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSource.html index 1bb958286..5adde6cc4 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSource.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSource.html @@ -1,14 +1,14 @@ -VectorLayerSelectionSource | Open Pioneer Packages
                  interface VectorLayerSelectionSource {
                      label: string;
                      status: SelectionSourceStatus;
                      select(selectionKind, options): Promise<SelectionResult[]>;
                  }

                  Hierarchy

                  Properties

                  label +VectorLayerSelectionSource | Open Pioneer Packages
                  interface VectorLayerSelectionSource {
                      label: string;
                      status: SelectionSourceStatus;
                      select(selectionKind, options): Promise<SelectionResult[]>;
                  }

                  Hierarchy

                  Properties

                  Methods

                  Properties

                  label: string

                  The label of this source.

                  This will be displayed by the user interface during selection source selection.

                  -

                  The optional status of this source. If there is no status defined, it is assumed that the +

                  The optional status of this source. If there is no status defined, it is assumed that the source is always available.

                  This will be displayed by the user interface.

                  -

                  Methods

                  Methods

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Returns Promise<SelectionResult[]>

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSourceFactory.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSourceFactory.html index 23a71ed9c..082b26d2e 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSourceFactory.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSourceFactory.html @@ -1,6 +1,6 @@ VectorLayerSelectionSourceFactory | Open Pioneer Packages

                  A factory that creates selection sources to be used on an OpenLayers VectorLayer with an OpenLayers VectorSource (e.g. layer of the map).

                  Use the interface name "selection.VectorSelectionSourceFactory" to obtain an instance of this factory.

                  -
                  interface VectorLayerSelectionSourceFactory {
                      createSelectionSource(options): VectorLayerSelectionSource;
                  }

                  Hierarchy

                  • DeclaredService<"selection.VectorSelectionSourceFactory">
                    • VectorLayerSelectionSourceFactory

                  Methods

                  interface VectorLayerSelectionSourceFactory {
                      createSelectionSource(options): VectorLayerSelectionSource;
                  }

                  Hierarchy

                  • DeclaredService<"selection.VectorSelectionSourceFactory">
                    • VectorLayerSelectionSourceFactory

                  Methods

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Returns VectorLayerSelectionSource

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSourceOptions.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSourceOptions.html index cdfea0c99..c094d3221 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSourceOptions.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_selection.VectorLayerSelectionSourceOptions.html @@ -1,3 +1,3 @@ -VectorLayerSelectionSourceOptions | Open Pioneer Packages
                  interface VectorLayerSelectionSourceOptions {
                      label: string;
                      vectorLayer: VectorLayer<VectorSource<Feature<Geometry>>>;
                  }

                  Properties

                  label +VectorLayerSelectionSourceOptions | Open Pioneer Packages
                  interface VectorLayerSelectionSourceOptions {
                      label: string;
                      vectorLayer: VectorLayer<VectorSource<Feature<Geometry>>>;
                  }

                  Properties

                  Properties

                  label: string
                  vectorLayer: VectorLayer<VectorSource<Feature<Geometry>>>

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Properties

                  label: string
                  vectorLayer: VectorLayer<VectorSource<Feature<Geometry>>>

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_spatial_bookmarks.SpatialBookmarksProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_spatial_bookmarks.SpatialBookmarksProps.html index d6e438eaa..521b7b8a7 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_spatial_bookmarks.SpatialBookmarksProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_spatial_bookmarks.SpatialBookmarksProps.html @@ -1,8 +1,8 @@ SpatialBookmarksProps | Open Pioneer Packages

                  Common properties supported by all public react components.

                  -
                  interface SpatialBookmarksProps {
                      className?: string;
                      data-testid?: string;
                      mapId: string;
                  }

                  Hierarchy (view full)

                  Properties

                  interface SpatialBookmarksProps {
                      className?: string;
                      data-testid?: string;
                      mapId: string;
                  }

                  Hierarchy (view full)

                  Properties

                  className?: string

                  Additional class name(s).

                  -
                  data-testid?: string

                  Used for testing.

                  -
                  mapId: string

                  The id of the map.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +
                  data-testid?: string

                  Used for testing.

                  +
                  mapId: string

                  The id of the map.

                  +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_toc.TocProps.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_toc.TocProps.html index 429ae8f9a..b9fc29950 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_toc.TocProps.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_toc.TocProps.html @@ -1,5 +1,5 @@ TocProps | Open Pioneer Packages

                  Props supported by the Toc component.

                  -
                  interface TocProps {
                      basemapSwitcherProps?: Omit<BasemapSwitcherProps, "mapId">;
                      className?: string;
                      data-testid?: string;
                      mapId: string;
                      showBasemapSwitcher?: boolean;
                      showTools?: boolean;
                      toolsConfig?: ToolsConfig;
                  }

                  Hierarchy (view full)

                  Properties

                  interface TocProps {
                      basemapSwitcherProps?: Omit<BasemapSwitcherProps, "mapId">;
                      className?: string;
                      data-testid?: string;
                      mapId: string;
                      showBasemapSwitcher?: boolean;
                      showTools?: boolean;
                      toolsConfig?: ToolsConfig;
                  }

                  Hierarchy (view full)

                  Properties

                  basemapSwitcherProps?: Omit<BasemapSwitcherProps, "mapId">

                  Properties for the embedded basemap switcher. Property "mapId" is not applied.

                  -
                  className?: string

                  Additional class name(s).

                  -
                  data-testid?: string

                  Used for testing.

                  -
                  mapId: string

                  The id of the map.

                  -
                  showBasemapSwitcher?: boolean

                  Defines whether the basemap switcher is shown in the toc. +

                  className?: string

                  Additional class name(s).

                  +
                  data-testid?: string

                  Used for testing.

                  +
                  mapId: string

                  The id of the map.

                  +
                  showBasemapSwitcher?: boolean

                  Defines whether the basemap switcher is shown in the toc. Defaults to true.

                  -
                  showTools?: boolean

                  Defines whether the tool component is shown in the toc. +

                  showTools?: boolean

                  Defines whether the tool component is shown in the toc. Defaults to false.

                  -
                  toolsConfig?: ToolsConfig

                  Properties for the embedded tool component.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +
                  toolsConfig?: ToolsConfig

                  Properties for the embedded tool component.

                  +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/interfaces/_open_pioneer_toc.ToolsConfig.html b/openlayers-base-packages/docs/interfaces/_open_pioneer_toc.ToolsConfig.html index 40ee70056..dba4e79db 100644 --- a/openlayers-base-packages/docs/interfaces/_open_pioneer_toc.ToolsConfig.html +++ b/openlayers-base-packages/docs/interfaces/_open_pioneer_toc.ToolsConfig.html @@ -1,5 +1,5 @@ ToolsConfig | Open Pioneer Packages

                  Props supported by the Tools component.

                  -
                  interface ToolsConfig {
                      showHideAllLayers?: boolean;
                  }

                  Properties

                  interface ToolsConfig {
                      showHideAllLayers?: boolean;
                  }

                  Properties

                  showHideAllLayers?: boolean

                  Optional property to show the hide all layers entry. Defaults to true.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/modules/_open_pioneer_map.html b/openlayers-base-packages/docs/modules/_open_pioneer_map.html index 47166fb98..2a1c68da8 100644 --- a/openlayers-base-packages/docs/modules/_open_pioneer_map.html +++ b/openlayers-base-packages/docs/modules/_open_pioneer_map.html @@ -1,4 +1,4 @@ -@open-pioneer/map - v0.3.1 | Open Pioneer Packages

                  Module @open-pioneer/map - v0.3.1

                  @open-pioneer/map

                  This package integrates OpenLayers maps into a Trails application. +@open-pioneer/map - v0.3.1 | Open Pioneer Packages

                  Module @open-pioneer/map - v0.3.1

                  @open-pioneer/map

                  This package integrates OpenLayers maps into an open pioneer trails application. APIs provided by this package can be used to configure, embed and access the map and its contents.

                  Usage

                  To use the map in your app, follow these two steps:

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.HealthCheckFunction.html b/openlayers-base-packages/docs/types/_open_pioneer_map.HealthCheckFunction.html index 484e8cbca..689382444 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.HealthCheckFunction.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.HealthCheckFunction.html @@ -1,2 +1,2 @@ HealthCheckFunction | Open Pioneer Packages
                  HealthCheckFunction: ((layer) => Promise<"loaded" | "error">)

                  Custom function to check the state of a layer and returning a "loaded" or "error".

                  -

                  Type declaration

                    • (layer): Promise<"loaded" | "error">
                    • Parameters

                      Returns Promise<"loaded" | "error">

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Type declaration

                    • (layer): Promise<"loaded" | "error">
                    • Parameters

                      Returns Promise<"loaded" | "error">

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.InitialViewConfig.html b/openlayers-base-packages/docs/types/_open_pioneer_map.InitialViewConfig.html index f9c5a61ac..dc61030b3 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.InitialViewConfig.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.InitialViewConfig.html @@ -1,2 +1,2 @@ InitialViewConfig | Open Pioneer Packages

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.LayerLoadState.html b/openlayers-base-packages/docs/types/_open_pioneer_map.LayerLoadState.html index 8ddb3dc65..b7f56403b 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.LayerLoadState.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.LayerLoadState.html @@ -1,2 +1,2 @@ LayerLoadState | Open Pioneer Packages
                  LayerLoadState: "not-loaded" | "loading" | "loaded" | "error"

                  The load state of a layer.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.MapAnchorPosition.html b/openlayers-base-packages/docs/types/_open_pioneer_map.MapAnchorPosition.html index 27f630f25..cebd13a21 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.MapAnchorPosition.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.MapAnchorPosition.html @@ -1 +1 @@ -MapAnchorPosition | Open Pioneer Packages
                  MapAnchorPosition: "top-left" | "top-right" | "bottom-left" | "bottom-right"

                  Generated using TypeDoc

                  \ No newline at end of file +MapAnchorPosition | Open Pioneer Packages
                  MapAnchorPosition: "top-left" | "top-right" | "bottom-left" | "bottom-right"

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.ProjectionDefinition.html b/openlayers-base-packages/docs/types/_open_pioneer_map.ProjectionDefinition.html index 440737780..6308bba36 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.ProjectionDefinition.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.ProjectionDefinition.html @@ -1 +1 @@ -ProjectionDefinition | Open Pioneer Packages

                  Generated using TypeDoc

                  \ No newline at end of file +ProjectionDefinition | Open Pioneer Packages

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.SimpleLayer.html b/openlayers-base-packages/docs/types/_open_pioneer_map.SimpleLayer.html index 3dbfe6ed5..fd6f0a754 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.SimpleLayer.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.SimpleLayer.html @@ -1,2 +1,2 @@ SimpleLayer | Open Pioneer Packages

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map.UseMapModelResult.html b/openlayers-base-packages/docs/types/_open_pioneer_map.UseMapModelResult.html index 6abe60f46..ebb0a5939 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map.UseMapModelResult.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map.UseMapModelResult.html @@ -1,2 +1,2 @@ UseMapModelResult | Open Pioneer Packages
                  UseMapModelResult: {
                      error?: Error;
                      kind: "loading" | "resolved" | "rejected";
                      map?: MapModel;
                  } | UseMapModelLoading | UseMapModelResolved | UseMapModelRejected

                  Return value of useMapModel.

                  -

                  Type declaration

                  • Optional error?: Error
                  • kind: "loading" | "resolved" | "rejected"
                  • Optional map?: MapModel

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Type declaration

                  • Optional error?: Error
                  • kind: "loading" | "resolved" | "rejected"
                  • Optional map?: MapModel

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.ZoomInProps.html b/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.ZoomInProps.html index 810415c1d..3f7ccca6d 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.ZoomInProps.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.ZoomInProps.html @@ -1 +1 @@ -ZoomInProps | Open Pioneer Packages

                  Generated using TypeDoc

                  \ No newline at end of file +ZoomInProps | Open Pioneer Packages

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.ZoomOutProps.html b/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.ZoomOutProps.html index 775fcda2d..1a2bd0c03 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.ZoomOutProps.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_map_navigation.ZoomOutProps.html @@ -1 +1 @@ -ZoomOutProps | Open Pioneer Packages

                  Generated using TypeDoc

                  \ No newline at end of file +ZoomOutProps | Open Pioneer Packages

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/types/_open_pioneer_react_utils.HeadingLevel.html b/openlayers-base-packages/docs/types/_open_pioneer_react_utils.HeadingLevel.html index 0846dbe2c..397db6477 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_react_utils.HeadingLevel.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_react_utils.HeadingLevel.html @@ -1,2 +1,2 @@ HeadingLevel | Open Pioneer Packages

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionKind.html b/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionKind.html index 03eaf3315..25aed1bc4 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionKind.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionKind.html @@ -3,4 +3,4 @@ may be added in the future.

                  Selection sources should check the type and throw an error for unsupported selection kinds in order to remain forwards compatible.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceEventBase.html b/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceEventBase.html index 7bd46650a..eaebf7c71 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceEventBase.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceEventBase.html @@ -1,2 +1,2 @@ SelectionSourceEventBase | Open Pioneer Packages
                  SelectionSourceEventBase: EventSource<SelectionSourceEvents>

                  Optional base type for selection source: the event emitter interface is not required.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceStatus.html b/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceStatus.html index 24dad80f9..2059c1293 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceStatus.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceStatus.html @@ -1,3 +1,3 @@ SelectionSourceStatus | Open Pioneer Packages
                  SelectionSourceStatus: "available" | "unavailable" | SelectionSourceStatusObject

                  The status of a selection source.

                  This is used to indicate whether the source is ready for selection.

                  -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceStatusObject.html b/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceStatusObject.html index c897c51dc..400c21c3d 100644 --- a/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceStatusObject.html +++ b/openlayers-base-packages/docs/types/_open_pioneer_selection.SelectionSourceStatusObject.html @@ -1,4 +1,4 @@ SelectionSourceStatusObject | Open Pioneer Packages
                  SelectionSourceStatusObject: {
                      kind: "available";
                  } | {
                      kind: "unavailable";
                      reason?: string;
                  }

                  Type declaration

                  • kind: "available"

                  Type declaration

                  • kind: "unavailable"
                  • Optional reason?: string

                    If the status of this source is unavailable, the reason for this can be stored here.

                    This will be displayed by the user interface.

                    If it is not defined, a default message will be displayed instead.

                    -

                  Generated using TypeDoc

                  \ No newline at end of file +

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/variables/_open_pioneer_map.SimpleLayer-1.html b/openlayers-base-packages/docs/variables/_open_pioneer_map.SimpleLayer-1.html index 60c9a199b..aa6bc3751 100644 --- a/openlayers-base-packages/docs/variables/_open_pioneer_map.SimpleLayer-1.html +++ b/openlayers-base-packages/docs/variables/_open_pioneer_map.SimpleLayer-1.html @@ -1 +1 @@ -SimpleLayer | Open Pioneer Packages

                  Generated using TypeDoc

                  \ No newline at end of file +SimpleLayer | Open Pioneer Packages

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/variables/_open_pioneer_map.WMSLayer-1.html b/openlayers-base-packages/docs/variables/_open_pioneer_map.WMSLayer-1.html index d1bde98a9..f07a55d20 100644 --- a/openlayers-base-packages/docs/variables/_open_pioneer_map.WMSLayer-1.html +++ b/openlayers-base-packages/docs/variables/_open_pioneer_map.WMSLayer-1.html @@ -1 +1 @@ -WMSLayer | Open Pioneer Packages

                  Generated using TypeDoc

                  \ No newline at end of file +WMSLayer | Open Pioneer Packages

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/variables/_open_pioneer_map.WMTSLayer-1.html b/openlayers-base-packages/docs/variables/_open_pioneer_map.WMTSLayer-1.html index 6b2ef3bc4..40fea83b1 100644 --- a/openlayers-base-packages/docs/variables/_open_pioneer_map.WMTSLayer-1.html +++ b/openlayers-base-packages/docs/variables/_open_pioneer_map.WMTSLayer-1.html @@ -1 +1 @@ -WMTSLayer | Open Pioneer Packages

                  Generated using TypeDoc

                  \ No newline at end of file +WMTSLayer | Open Pioneer Packages

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/docs/variables/_open_pioneer_theme.theme.html b/openlayers-base-packages/docs/variables/_open_pioneer_theme.theme.html index dcf306baf..9cc021e23 100644 --- a/openlayers-base-packages/docs/variables/_open_pioneer_theme.theme.html +++ b/openlayers-base-packages/docs/variables/_open_pioneer_theme.theme.html @@ -1 +1 @@ -theme | Open Pioneer Packages

                  Generated using TypeDoc

                  \ No newline at end of file +theme | Open Pioneer Packages

                  Generated using TypeDoc

                  \ No newline at end of file diff --git a/openlayers-base-packages/samples/experimental-sidebar/index.html b/openlayers-base-packages/samples/experimental-sidebar/index.html index 98dbbe950..7a01d8215 100644 --- a/openlayers-base-packages/samples/experimental-sidebar/index.html +++ b/openlayers-base-packages/samples/experimental-sidebar/index.html @@ -16,7 +16,7 @@ max-height: 100%; } - + diff --git a/openlayers-base-packages/samples/map-sample/index.html b/openlayers-base-packages/samples/map-sample/index.html index ad3940a2f..33dc98802 100644 --- a/openlayers-base-packages/samples/map-sample/index.html +++ b/openlayers-base-packages/samples/map-sample/index.html @@ -21,7 +21,7 @@ overflow: hidden; } - + diff --git a/openlayers-base-packages/samples/ogc-api-sample/index.html b/openlayers-base-packages/samples/ogc-api-sample/index.html index 3a66ddebb..fb955bc65 100644 --- a/openlayers-base-packages/samples/ogc-api-sample/index.html +++ b/openlayers-base-packages/samples/ogc-api-sample/index.html @@ -16,7 +16,7 @@ max-height: 100%; } - + diff --git a/openlayers-base-packages/samples/test-basemap-switcher/index.html b/openlayers-base-packages/samples/test-basemap-switcher/index.html index 94ad8bc05..8d51474ab 100644 --- a/openlayers-base-packages/samples/test-basemap-switcher/index.html +++ b/openlayers-base-packages/samples/test-basemap-switcher/index.html @@ -16,7 +16,7 @@ max-height: 100%; } - + diff --git a/openlayers-base-packages/samples/test-highlight-and-zoom/index.html b/openlayers-base-packages/samples/test-highlight-and-zoom/index.html index e0dd1366b..ee68aa521 100644 --- a/openlayers-base-packages/samples/test-highlight-and-zoom/index.html +++ b/openlayers-base-packages/samples/test-highlight-and-zoom/index.html @@ -16,7 +16,7 @@ max-height: 100%; } - + diff --git a/openlayers-base-packages/samples/test-menu-fix/index.html b/openlayers-base-packages/samples/test-menu-fix/index.html index 372b15450..2c3d51e51 100644 --- a/openlayers-base-packages/samples/test-menu-fix/index.html +++ b/openlayers-base-packages/samples/test-menu-fix/index.html @@ -11,7 +11,7 @@ margin: 0px; } - + diff --git a/openlayers-base-packages/samples/test-result-list/index.html b/openlayers-base-packages/samples/test-result-list/index.html index 320c0af48..2ebdbfecc 100644 --- a/openlayers-base-packages/samples/test-result-list/index.html +++ b/openlayers-base-packages/samples/test-result-list/index.html @@ -16,7 +16,7 @@ max-height: 100%; } - + diff --git a/openlayers-base-packages/samples/test-toc/index.html b/openlayers-base-packages/samples/test-toc/index.html index e2563d415..e6f5928b1 100644 --- a/openlayers-base-packages/samples/test-toc/index.html +++ b/openlayers-base-packages/samples/test-toc/index.html @@ -17,7 +17,7 @@ overflow: hidden; } - +