ol-wfst 4.4.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +191 -175
- package/dist/@types.d.ts +15 -1
- package/dist/@types.d.ts.map +1 -1
- package/dist/Geoserver.d.ts +6 -4
- package/dist/Geoserver.d.ts.map +1 -1
- package/dist/WfsLayer.d.ts +8 -2
- package/dist/WfsLayer.d.ts.map +1 -1
- package/dist/WmsLayer.d.ts +32 -2
- package/dist/WmsLayer.d.ts.map +1 -1
- package/dist/css/ol-wfst.bootstrap5.css +102 -90
- package/dist/css/ol-wfst.bootstrap5.min.css +1 -1
- package/dist/css/ol-wfst.css +563 -149
- package/dist/css/ol-wfst.min.css +1 -1
- package/dist/defaults.d.ts.map +1 -1
- package/dist/jsx-runtime.d.ts +4 -0
- package/dist/jsx-runtime.d.ts.map +1 -0
- package/dist/modules/EditControlChanges.d.ts +2 -1
- package/dist/modules/EditControlChanges.d.ts.map +1 -1
- package/dist/modules/EditFieldsModal.d.ts +23 -4
- package/dist/modules/EditFieldsModal.d.ts.map +1 -1
- package/dist/modules/EditOverlay.d.ts +1 -1
- package/dist/modules/EditOverlay.d.ts.map +1 -1
- package/dist/modules/ExtendLineOverlay.d.ts +12 -0
- package/dist/modules/ExtendLineOverlay.d.ts.map +1 -0
- package/dist/modules/LayersControl.d.ts +8 -1
- package/dist/modules/LayersControl.d.ts.map +1 -1
- package/dist/modules/QueryOverlay.d.ts +21 -0
- package/dist/modules/QueryOverlay.d.ts.map +1 -0
- package/dist/modules/base/BaseLayer.d.ts +7 -3
- package/dist/modules/base/BaseLayer.d.ts.map +1 -1
- package/dist/modules/base/WfsSource.d.ts.map +1 -1
- package/dist/modules/editLayer.d.ts.map +1 -1
- package/dist/modules/errors.d.ts +1 -1
- package/dist/modules/errors.d.ts.map +1 -1
- package/dist/modules/helpers.d.ts.map +1 -1
- package/dist/modules/i18n/en.d.ts.map +1 -1
- package/dist/modules/i18n/es.d.ts.map +1 -1
- package/dist/modules/i18n/index.d.ts.map +1 -1
- package/dist/modules/i18n/zh.d.ts.map +1 -1
- package/dist/modules/loading.d.ts.map +1 -1
- package/dist/modules/state.d.ts +9 -1
- package/dist/modules/state.d.ts.map +1 -1
- package/dist/modules/styleFunction.d.ts +36 -3
- package/dist/modules/styleFunction.d.ts.map +1 -1
- package/dist/ol-wfst.d.ts +251 -5
- package/dist/ol-wfst.d.ts.map +1 -1
- package/dist/ol-wfst.js +2008 -391
- package/dist/ol-wfst.js.map +1 -1
- package/dist/ol-wfst.min.js +3 -3
- package/dist/ol-wfst.min.js.map +1 -1
- package/lib/@types.d.ts +15 -1
- package/lib/@types.d.ts.map +1 -1
- package/lib/Geoserver.d.ts +6 -4
- package/lib/Geoserver.d.ts.map +1 -1
- package/lib/WfsLayer.d.ts +8 -2
- package/lib/WfsLayer.d.ts.map +1 -1
- package/lib/WmsLayer.d.ts +32 -2
- package/lib/WmsLayer.d.ts.map +1 -1
- package/lib/defaults.d.ts.map +1 -1
- package/lib/jsx-runtime.d.ts +4 -0
- package/lib/jsx-runtime.d.ts.map +1 -0
- package/lib/modules/EditControlChanges.d.ts +2 -1
- package/lib/modules/EditControlChanges.d.ts.map +1 -1
- package/lib/modules/EditFieldsModal.d.ts +23 -4
- package/lib/modules/EditFieldsModal.d.ts.map +1 -1
- package/lib/modules/EditOverlay.d.ts +1 -1
- package/lib/modules/EditOverlay.d.ts.map +1 -1
- package/lib/modules/ExtendLineOverlay.d.ts +12 -0
- package/lib/modules/ExtendLineOverlay.d.ts.map +1 -0
- package/lib/modules/LayersControl.d.ts +8 -1
- package/lib/modules/LayersControl.d.ts.map +1 -1
- package/lib/modules/QueryOverlay.d.ts +21 -0
- package/lib/modules/QueryOverlay.d.ts.map +1 -0
- package/lib/modules/base/BaseLayer.d.ts +7 -3
- package/lib/modules/base/BaseLayer.d.ts.map +1 -1
- package/lib/modules/base/WfsSource.d.ts.map +1 -1
- package/lib/modules/editLayer.d.ts.map +1 -1
- package/lib/modules/errors.d.ts +1 -1
- package/lib/modules/errors.d.ts.map +1 -1
- package/lib/modules/helpers.d.ts.map +1 -1
- package/lib/modules/i18n/en.d.ts.map +1 -1
- package/lib/modules/i18n/es.d.ts.map +1 -1
- package/lib/modules/i18n/index.d.ts.map +1 -1
- package/lib/modules/i18n/zh.d.ts.map +1 -1
- package/lib/modules/loading.d.ts.map +1 -1
- package/lib/modules/state.d.ts +9 -1
- package/lib/modules/state.d.ts.map +1 -1
- package/lib/modules/styleFunction.d.ts +36 -3
- package/lib/modules/styleFunction.d.ts.map +1 -1
- package/lib/ol-wfst.d.ts +251 -5
- package/lib/ol-wfst.d.ts.map +1 -1
- package/lib/ol-wfst.js +2013 -392
- package/lib/ol-wfst.js.map +1 -1
- package/lib/style/css/ol-gisify.css +563 -149
- package/lib/style/css/ol-wfst.bootstrap5.css +102 -90
- package/lib/style/scss/_variables.scss +2 -1
- package/lib/style/scss/ol-wfst.scss +728 -213
- package/package.json +3 -3
- package/dist/myPragma.d.ts +0 -2
- package/dist/myPragma.d.ts.map +0 -1
- package/lib/myPragma.d.ts +0 -2
- package/lib/myPragma.d.ts.map +0 -1
package/dist/css/ol-wfst.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ol-wfst--input-field-container{display:inline-block;margin-bottom:10px;padding:5px;width:49%}.ol-wfst--input-field-label{display:block;font-weight:500;margin-bottom:4px}.ol-wfst--input-field-input{border:1px solid #000;border-radius:3px;padding:5px;width:100%}.ol-wfst--edit-button-cnt{display:inline-block;margin:0 5px}.ol-wfst--edit-button{background:#fff;border:1px solid #b3b3b3;border-radius:50%;box-shadow:0 2px 8px rgba(0,0,0,.42);cursor:pointer;font-size:12px;height:38px;outline:0;padding:8px;width:38px}.ol-wfst--edit-button:hover{background:#f5f5f5}.ol-wfst--edit-button:active{background:#fafafa;transform:translateY(1px)}.ol-wfst--edit-button img{fill:#333;height:20px;width:20px}.ol-wfst--changes-control{background:#ff6161;border:1px solid #969696;border-radius:0 0 4px 4px;border-top:0;box-shadow:0 1px 4px rgba(0,0,0,.529);left:50%;max-width:290px;padding:10px;position:absolute;right:0;top:0;transform:translateX(-50%);width:90%}.ol-wfst--changes-control-el{text-align:center}.ol-wfst--changes-control-el button{margin:0 5px}.ol-wfst--changes-control-id{color:#fff;font-size:12px;margin-bottom:10px}.ol-wfst--tools-control{background-color:#fff;border:1px solid hsla(0,0%,66%,.733);border-radius:4px;bottom:10px;box-shadow:0 1px 4px rgba(0,0,0,.42);left:10px;position:absolute}.btn.btn-third{color:#d43f3a;float:left}.ol-wfst--layer-not-visible{font-style:italic;opacity:.5!important}.wfst--layer-control{padding:5px 10px;position:relative}.wfst--layer-control.ol-wfst--selected-on{background-color:rgba(240,223,0,.6)!important}.wfst--layer-control:active,.wfst--layer-control:hover{background-color:#f5f5f5}.wfst--layer-control input[type=radio]{display:none}.wfst--tools-control--select-layers .wfst--layer-control:not(.ol-wfst--selected-on) label{cursor:pointer}.wfst--tools-control--select-layers label{left:30px;position:absolute;right:0}.ol-wfst--tools-control-btn{background:#fff;border:1px solid silver;border-radius:4px;cursor:pointer;display:inline-block;height:32px;outline:0;text-align:center;vertical-align:middle;width:40px}.ol-wfst--tools-control-btn.wfst--active{background-color:#ffed00!important;opacity:1}.ol-wfst--tools-control-btn:active,.ol-wfst--tools-control-btn:hover{background-color:#f5f5f5;opacity:.95}.ol-wfst--tools-control-btn:active{transform:translateY(1px)}.ol-wfst--tools-control-btn img{height:20px;width:20px}.wfst--tools-control--head{background:#ddd;border-bottom:1px solid hsla(0,0%,66%,.733);border-radius:4px 4px 0 0;padding:10px}.wfst--tools-control--head>*{display:inline-block}.ol-wfst--tools-control-draw-cnt:not(:first-child){margin-left:6px}.ol-wfst--tools-control-btn-upload{padding:3px}.wfst--tools-control--select-draw{background:#f7f7f7;border:1px solid silver;border-left:0;border-radius:4px;border-radius:0 4px 4px 0;cursor:pointer;font-size:.9em;height:32px;opacity:.5;outline:0;padding:0 3px;pointer-events:none;vertical-align:middle}.ol-wfst--tools-control-btn-draw{border-radius:4px 0 0 4px;opacity:.7}.draw-mode .wfst--tools-control--select-draw{background:#fffab5;opacity:1;pointer-events:inherit}.wfst--tools-control--head label{cursor:pointer}#ol-wfst--upload{display:none;visibility:hidden}.ol-wfst--tools-control--loading{display:none;position:absolute;top:-25px}.ol-wfst--tools-control--loading.ol-wfst--tools-control--loading-show{display:block}.ol-wfst--tools-control-visible{display:inline-block}.ol-wfst--tools-control-visible img{height:14px;width:14px}.ol-wfst--tools-control-visible-btn{cursor:pointer;opacity:.6}.ol-wfst--tools-control-visible-btn:hover{opacity:.9}.wfst--layer-control{opacity:.7}.wfst--layer-control.ol-wfst--visible-on{opacity:1}.ol-wfst--visible-btn-on{display:none}.ol-wfst--visible-on .ol-wfst--visible-btn-on{display:block}.ol-wfst--visible-on .ol-wfst--visible-btn-off{display:none}.ol-wfst--visible-btn-off{display:block}
|
|
1
|
+
.ol-wfst--map{--ol-subtle-background-color:transparent}.ol-wfst--map .ol-control button{cursor:pointer}.ol-wfst--map .ol-control.ol-zoom{bottom:5em;left:inherit;right:.5em;top:inherit}.ol-wfst--map .ol-control.ol-wfst--fullscreen{bottom:18px;left:auto;right:.5em;top:auto}.ol-wfst--map .ol-control.ol-wfst--fullscreen button{align-items:center;background:#fff;border-radius:8px;display:-webkit-inline-flex;display:inline-flex;height:32px;justify-content:center;outline:0;padding:0;width:32px}.ol-wfst--map .ol-control.ol-wfst--fullscreen button svg{height:20px;pointer-events:none;width:20px}.ol-wfst--map .ol-control.ol-wfst--fullscreen button:active,.ol-wfst--map .ol-control.ol-wfst--fullscreen button:hover{opacity:.95}.ol-wfst--map .ol-control.ol-wfst--fullscreen button:active{transform:translateY(1px)}.ol-wfst--map .ol-box.ol-wfst--dragbox{background-color:rgba(255,200,0,.1);border:2px dashed #ffc800;border-radius:0}.ol-wfst--map .ol-wfst--edit-button-cnt{display:inline-block;margin:0 5px}.ol-wfst--map .ol-wfst--edit-button{background:#fff;border:1px solid #b3b3b3;border-radius:50%;box-shadow:0 2px 8px rgba(0,0,0,.42);cursor:pointer;font-size:12px;height:38px;outline:0;padding:8px;width:38px}.ol-wfst--map .ol-wfst--edit-button:hover{background:#f5f5f5}.ol-wfst--map .ol-wfst--edit-button:active{background:#fafafa;transform:translateY(1px)}.ol-wfst--map .ol-wfst--edit-button svg{fill:#333;height:20px;width:20px}.ol-wfst--map .ol-wfst--extend-button-cnt{display:inline-block}.ol-wfst--map .ol-wfst--extend-button-cnt .ol-wfst--extend-button{align-items:center;background:#fff;border:1px solid #b3b3b3;border-radius:50%;box-shadow:0 2px 8px rgba(0,0,0,.42);cursor:pointer;display:-webkit-flex;display:flex;height:24px;justify-content:center;outline:0;padding:0;width:24px}.ol-wfst--map .ol-wfst--extend-button-cnt .ol-wfst--extend-button:hover{background:#f5f5f5}.ol-wfst--map .ol-wfst--extend-button-cnt .ol-wfst--extend-button:active{background:#fafafa;transform:translateY(1px)}.ol-wfst--map .ol-wfst--extend-button-cnt .ol-wfst--extend-button svg{fill:#333;height:16px;width:16px}.ol-wfst--map .ol-wfst--changes-control{animation:ol-wfst--slide-down .28s ease-out;background:#ff6161;border:1px solid rgba(0,0,0,.18);border-radius:0 0 8px 8px;border-top:0;box-shadow:0 2px 6px rgba(0,0,0,.2),0 8px 24px rgba(0,0,0,.35);color:#fff;left:50%;max-width:320px;padding:12px 14px 14px;position:absolute;top:0;transform:translateX(-50%);width:90%;z-index:10}@keyframes ol-wfst--slide-down{0%{opacity:0;transform:translate(-50%,-10px)}to{opacity:1;transform:translate(-50%)}}.ol-wfst--map .ol-wfst--changes-control .ol-wfst--changes-control-el{align-items:center;display:-webkit-flex;display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.ol-wfst--map .ol-wfst--changes-control .ol-wfst--changes-control-el .ol-wfst--changes-control-id{align-items:center;border-bottom:1px solid hsla(0,0%,100%,.25);color:#fff;display:-webkit-flex;display:flex;flex-basis:100%;font-size:12px;font-weight:600;gap:8px;justify-content:center;letter-spacing:.4px;margin-bottom:8px;padding-bottom:10px;text-transform:uppercase}.ol-wfst--map .ol-wfst--changes-control .ol-wfst--changes-control-el .ol-wfst--changes-control-id b{align-items:center;display:-webkit-inline-flex;display:inline-flex;gap:6px}.ol-wfst--map .ol-wfst--changes-control .ol-wfst--changes-control-el .ol-wfst--changes-control-id b:before{animation:ol-wfst--pulse 1.6s infinite;background:currentColor;border-radius:50%;content:"";height:8px;width:8px}@keyframes ol-wfst--pulse{0%{box-shadow:0 0 0 0 hsla(0,0%,100%,.7)}70%{box-shadow:0 0 0 6px hsla(0,0%,100%,0)}to{box-shadow:0 0 0 0 hsla(0,0%,100%,0)}}.ol-wfst--map .ol-wfst--changes-control .ol-wfst--changes-control-el .ol-wfst--changes-control-id i{background:hsla(0,0%,100%,.22);border-radius:999px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;font-style:normal;font-weight:500;letter-spacing:0;max-width:180px;overflow:hidden;padding:2px 10px;text-overflow:ellipsis;text-transform:none;white-space:nowrap}.ol-wfst--map .ol-wfst--changes-control .ol-wfst--changes-control-el button{margin:0;transition:transform .12s ease,box-shadow .12s ease,filter .12s ease}.ol-wfst--map .ol-wfst--changes-control .ol-wfst--changes-control-el button:hover{box-shadow:0 3px 8px rgba(0,0,0,.25);filter:brightness(1.05)}.ol-wfst--map .ol-wfst--changes-control .ol-wfst--changes-control-el button:active{box-shadow:none;filter:brightness(.97);transform:translateY(-1px)}.ol-wfst--map .ol-wfst--changes-control .ol-wfst--changes-control-el button:first-of-type{margin-right:auto}.ol-wfst--map .ol-wfst--changes-control .ol-wfst--changes-control-el .btn-danger-outline{background:transparent;border:1px solid hsla(0,0%,100%,.55);color:hsla(0,0%,100%,.9)}.ol-wfst--map .ol-wfst--changes-control .ol-wfst--changes-control-el .btn-danger-outline:hover{background:hsla(0,0%,100%,.15);box-shadow:none}.ol-wfst--map .ol-wfst--changes-control .ol-wfst--changes-control-el .btn-danger-outline:active{background:hsla(0,0%,100%,.25)}.ol-wfst--map .ol-wfst--tools-control{left:.5em;position:absolute;top:.5em}.ol-wfst--map .ol-wfst--tools-control.ol-wfst--controls--hidden{display:none}.ol-wfst--map .ol-wfst--tools-control .ol-wfst--tools-control-btn{background-color:#fff;border:1px solid silver;border-radius:8px;cursor:pointer;display:inline-block;height:32px;outline:0;text-align:center;vertical-align:middle;width:40px}.ol-wfst--map .ol-wfst--tools-control .ol-wfst--tools-control-btn.wfst--active{background-color:#ffed00!important;opacity:1}.ol-wfst--map .ol-wfst--tools-control .ol-wfst--tools-control-btn:active,.ol-wfst--map .ol-wfst--tools-control .ol-wfst--tools-control-btn:hover{background-color:#f5f5f5;opacity:.95}.ol-wfst--map .ol-wfst--tools-control .ol-wfst--tools-control-btn:active{transform:translateY(1px)}.ol-wfst--map .ol-wfst--tools-control .ol-wfst--tools-control-btn svg{height:20px;width:20px}.ol-wfst--map .ol-wfst--tools-control .wfst--tools-control--head{background:#ddd;border:1px solid hsla(0,0%,66%,.733);border-radius:8px;box-shadow:0 1px 4px rgba(0,0,0,.42);display:-webkit-flex;display:flex;gap:6px;padding:10px;pointer-events:auto;position:absolute}.ol-wfst--map .ol-wfst--tools-control .wfst--tools-control--head label{cursor:pointer}.ol-wfst--map .ol-wfst--tools-control .wfst--tools-control--head>*{display:-webkit-flex;display:flex}.ol-wfst--map .ol-wfst--tools-control .ol-wfst--tools-control-select-cnt{font-size:0}.ol-wfst--map .ol-wfst--tools-control .ol-wfst--tools-control-select-cnt:not(:first-child){margin-left:6px}.ol-wfst--map .ol-wfst--tools-control .ol-wfst--tools-control-btn-select,.ol-wfst--map .ol-wfst--tools-control .ol-wfst--tools-control-btn-select-box,.ol-wfst--map .ol-wfst--tools-control .ol-wfst--tools-control-btn-select-freehand{border-radius:0;padding:0;width:34px}.ol-wfst--map .ol-wfst--tools-control .ol-wfst--tools-control-btn-select{border-radius:8px 0 0 8px}.ol-wfst--map .ol-wfst--tools-control .ol-wfst--tools-control-btn-select svg{height:auto;width:11px}.ol-wfst--map .ol-wfst--tools-control .ol-wfst--tools-control-btn-select-box{border-left:0}.ol-wfst--map .ol-wfst--tools-control .ol-wfst--tools-control-btn-select-freehand{border-left:0;border-radius:0 8px 8px 0}.ol-wfst--map .ol-wfst--tools-control .ol-wfst--tools-control-query-cnt .ol-wfst--tools-control-btn-query{border-radius:8px}.ol-wfst--map .ol-wfst--tools-control .ol-wfst--tools-control-query-cnt svg{height:16px;width:16px}.ol-wfst--map .ol-wfst--tools-control .ol-wfst--tools-control-btn-upload{padding:3px}.ol-wfst--map .ol-wfst--tools-control .wfst--tools-control--select-draw{background:#f7f7f7;border:1px solid silver;border-left:0;border-radius:8px;border-radius:0 8px 8px 0;cursor:pointer;font-size:.9em;height:32px;opacity:.5;outline:0;padding:0 3px;pointer-events:none;vertical-align:middle}.ol-wfst--map .ol-wfst--tools-control .ol-wfst--tools-control-btn-draw{border-radius:8px 0 0 8px;opacity:.7}.ol-wfst--map .ol-wfst--tools-control #ol-wfst--upload{display:none;visibility:hidden}.ol-wfst--map .ol-wfst--layers-control{bottom:10px;font-size:13px;left:10px;pointer-events:auto;position:absolute}.ol-wfst--map .ol-wfst--layers-control .ol-wfst--layer-not-visible{font-style:italic;opacity:.5!important}.ol-wfst--map .ol-wfst--layers-control .ol-wfst--layer-control-visible{display:inline-block;position:relative;z-index:999}.ol-wfst--map .ol-wfst--layers-control .ol-wfst--layer-control-visible svg{height:14px;width:14px}.ol-wfst--map .ol-wfst--layers-control .ol-wfst--layer-control-visible .ol-wfst--layer-control-visible -btn{cursor:pointer;opacity:.6}.ol-wfst--map .ol-wfst--layers-control .ol-wfst--layer-control-visible .ol-wfst--layer-control-visible -btn:hover{opacity:.9}.ol-wfst--map .ol-wfst--layers-control .wfst--tools-control--select-layers{background-color:#fff;border:1px solid hsla(0,0%,66%,.733);border-radius:8px;box-shadow:0 1px 4px rgba(0,0,0,.42);overflow:hidden}.ol-wfst--map .ol-wfst--layers-control .wfst--tools-control--select-layers .wfst--tools-control--select-layers-title{background-color:#ddd;border-bottom:1px solid hsla(0,0%,66%,.733);font-weight:700;padding:5px 10px}.ol-wfst--map .ol-wfst--layers-control .wfst--tools-control--select-layers .wfst--tools-control--select-layers-list{max-height:150px;overflow-y:auto}.ol-wfst--map .ol-wfst--layers-control .wfst--tools-control--select-layers .wfst--layer-control:not(.ol-wfst--selected-on) label{cursor:pointer}.ol-wfst--map .ol-wfst--layers-control .wfst--layer-control{display:-webkit-flex;display:flex;min-width:200px;opacity:.7;position:relative}.ol-wfst--map .ol-wfst--layers-control .wfst--layer-control label{display:-webkit-flex;display:flex;gap:6px;padding:5px 10px;width:100%}.ol-wfst--map .ol-wfst--layers-control .wfst--layer-control.ol-wfst--visible-on{opacity:1}.ol-wfst--map .ol-wfst--layers-control .wfst--layer-control.ol-wfst--selected-on{background-color:rgba(240,223,0,.6)!important}.ol-wfst--map .ol-wfst--layers-control .wfst--layer-control:active,.ol-wfst--map .ol-wfst--layers-control .wfst--layer-control:hover{background-color:#f5f5f5}.ol-wfst--map .ol-wfst--layers-control .ol-wfst--visible-btn-on,.ol-wfst--map .ol-wfst--layers-control .wfst--layer-control input[type=radio]{display:none}.ol-wfst--map .ol-wfst--layers-control .ol-wfst--visible-on .ol-wfst--visible-btn-on{display:block}.ol-wfst--map .ol-wfst--layers-control .ol-wfst--visible-on .ol-wfst--visible-btn-off{display:none}.ol-wfst--map .ol-wfst--layers-control .ol-wfst--visible-btn-off{display:block}.ol-wfst--map .draw-mode .wfst--tools-control--select-draw{background:#fffab5;opacity:1;pointer-events:inherit}.ol-wfst--map .ol-wfst--tools-control--loading{background:rgba(0,0,0,.5);border-radius:4px;box-shadow:0 0 4px rgba(0,0,0,.15);display:none;height:4px;overflow:hidden;position:absolute;top:-10px;width:100%}.ol-wfst--map .ol-wfst--tools-control--loading:before{animation:ol-wfst-loading-sweep 1.1s ease-in-out infinite;background:#ffed00;border-radius:inherit;content:"";height:100%;left:0;position:absolute;top:0;width:35%}@keyframes ol-wfst-loading-sweep{0%{transform:translateX(-100%)}to{transform:translateX(300%)}}.ol-wfst--map .ol-wfst--tools-control--loading.ol-wfst--tools-control--loading-show{display:block}.ol-wfst--map .ol-wfst--query-popup{background:#fff;border:1px solid #a9a9a9;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.42);color:#333;font-size:12px;max-width:280px;overflow:hidden;position:relative;width:260px}.ol-wfst--map .ol-wfst--query-popup .ol-wfst--query-popup-head{align-items:center;background:#f2f2f2;border-bottom:1px solid #d9d9d9;display:-webkit-flex;display:flex;justify-content:space-between;padding:6px 8px}.ol-wfst--map .ol-wfst--query-popup .ol-wfst--query-popup-title{font-size:12px;font-weight:600}.ol-wfst--map .ol-wfst--query-popup .ol-wfst--query-popup-close{background:transparent;border:0;color:#555;cursor:pointer;font-size:18px;line-height:1;outline:0;padding:0 2px}.ol-wfst--map .ol-wfst--query-popup .ol-wfst--query-popup-close:hover{color:#000}.ol-wfst--map .ol-wfst--query-popup .ol-wfst--query-popup-subtitle{align-items:center;border-bottom:1px solid #efefef;display:-webkit-flex;display:flex;gap:8px;justify-content:space-between;padding:6px 10px}.ol-wfst--map .ol-wfst--query-popup .ol-wfst--query-popup-subtitle b{font-weight:600}.ol-wfst--map .ol-wfst--query-popup .ol-wfst--query-popup-subtitle i{color:#777;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;font-style:normal;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ol-wfst--map .ol-wfst--query-popup .ol-wfst--query-popup-body{max-height:220px;overflow-y:auto;padding:4px 0}.ol-wfst--map .ol-wfst--query-popup .ol-wfst--query-popup-row{display:-webkit-flex;display:flex;gap:8px;padding:3px 10px;word-break:break-word}.ol-wfst--map .ol-wfst--query-popup .ol-wfst--query-popup-row:nth-child(odd){background:#fafafa}.ol-wfst--map .ol-wfst--query-popup .ol-wfst--query-popup-key{color:#555;flex:0 0 35%;font-weight:600;overflow:hidden;text-overflow:ellipsis}.ol-wfst--map .ol-wfst--query-popup .ol-wfst--query-popup-value{color:#222;flex:1}.modal .ol-wfst--edit-modal-notice{align-items:center;background:#fff8e1;border:1px solid #ffc107;border-radius:8px;color:#6b5300;display:-webkit-flex;display:flex;font-size:13px;font-weight:500;gap:8px;margin-bottom:12px;padding:10px 12px}.modal .ol-wfst--edit-modal-notice-txt{flex:1}.modal .ol-wfst--edit-modal-toolbar-btn{align-items:center;background:#fff;border:1px solid #b3b3b3;border-radius:8px;cursor:pointer;display:-webkit-inline-flex;display:inline-flex;flex:0 0 auto;height:26px;justify-content:center;outline:0;padding:0;width:26px}.modal .ol-wfst--edit-modal-toolbar-btn:hover{background:#f5f5f5}.modal .ol-wfst--edit-modal-toolbar-btn:active{background:#fafafa;transform:translateY(1px)}.modal .ol-wfst--edit-modal-toolbar-btn svg{height:16px;width:16px}.modal .modal-dialog.ol-wfst--edit-table-modal{--bs-modal-width:min(90vw,1400px);max-width:min(90vw,1400px);width:min(90vw,1400px)}.modal .modal-dialog .btn-danger:first-child{margin-right:auto}.modal .ol-wfst--edit-table-wrap{border:1px solid #ddd;border-radius:8px;max-height:60vh;overflow-x:auto;overflow-y:auto}.modal .ol-wfst--edit-table{border-collapse:collapse;font-size:13px;width:100%}.modal .ol-wfst--edit-table td,.modal .ol-wfst--edit-table th{border:1px solid #ddd;padding:4px 6px;text-align:left;vertical-align:middle;white-space:nowrap}.modal .ol-wfst--edit-table th{background:#f2f2f2;font-weight:600;position:-webkit-sticky;position:sticky;top:0;z-index:1}.modal .ol-wfst--edit-table .ol-wfst--input-field-input{background:transparent;border:0;border-radius:0;min-width:120px;padding:2px 4px}.modal .ol-wfst--edit-table .ol-wfst--input-field-input:focus{background:#f8fbff;outline:1px solid #86b7fe}.modal .ol-wfst--edit-table-fid,.modal .ol-wfst--edit-table-geom{color:#555;font-weight:600}.modal .ol-wfst--edit-table-geom{color:#777;font-size:12px;font-style:italic}.modal .ol-wfst--input-field-container{display:inline-block;margin-bottom:10px;padding:5px;width:49%}.modal .ol-wfst--input-field-label{display:block;font-weight:500;margin-bottom:4px}.modal .ol-wfst--input-field-input{border:1px solid #000;border-radius:3px;padding:5px;width:100%}.modal .ol-wfst--input-field-input.ol-wfst--input-multiple::-moz-placeholder{color:#888;font-style:italic}.modal .ol-wfst--input-field-input.ol-wfst--input-multiple::placeholder{color:#888;font-style:italic}
|
package/dist/defaults.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../src/defaults.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,eAAO,MAAM,iBAAiB,QAAO,
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../src/defaults.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,eAAO,MAAM,iBAAiB,QAAO,OAqBpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-runtime.d.ts","sourceRoot":"","sources":["../src/jsx-runtime.ts"],"names":[],"mappings":"AAyDA,wBAAgB,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,GACA,WAAW,CACnD;AAED,wBAAgB,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,GACD,WAAW,CACnD;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,KAAA,GACU,gBAAgB,CACrE"}
|
|
@@ -12,7 +12,8 @@ export default class EditControlChangesEl extends Control {
|
|
|
12
12
|
on: OnSignature<EventTypes, BaseEvent, EventsKey> & OnSignature<ChangesEventTypes, VectorSourceEvent, EventsKey> & OnSignature<ObjectEventTypes, ObjectEvent, EventsKey> & CombinedOnSignature<ChangesEventTypes | ObjectEventTypes | EventTypes, EventsKey>;
|
|
13
13
|
once: OnSignature<EventTypes, BaseEvent, EventsKey> & OnSignature<ChangesEventTypes, VectorSourceEvent, EventsKey> & OnSignature<ObjectEventTypes, ObjectEvent, EventsKey> & CombinedOnSignature<ChangesEventTypes | ObjectEventTypes | EventTypes, EventsKey>;
|
|
14
14
|
un: OnSignature<EventTypes, BaseEvent, void> & OnSignature<ChangesEventTypes, VectorSourceEvent, EventsKey> & OnSignature<ObjectEventTypes, ObjectEvent, void> & CombinedOnSignature<ChangesEventTypes | ObjectEventTypes | EventTypes, void>;
|
|
15
|
-
constructor(
|
|
15
|
+
constructor(features: Feature<Geometry>[]);
|
|
16
|
+
private _dispatch;
|
|
16
17
|
}
|
|
17
18
|
export {};
|
|
18
19
|
//# sourceMappingURL=EditControlChanges.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditControlChanges.d.ts","sourceRoot":"","sources":["../../src/modules/EditControlChanges.tsx"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,KAAK,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"EditControlChanges.d.ts","sourceRoot":"","sources":["../../src/modules/EditControlChanges.tsx"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,KAAK,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAIlE,KAAK,iBAAiB,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEvD,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,OAAO;IAC7C,EAAE,EAAE,WAAW,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC,GACrD,WAAW,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,SAAS,CAAC,GAC5D,WAAW,CAAC,gBAAgB,EAAE,WAAW,EAAE,SAAS,CAAC,GACrD,mBAAmB,CACf,iBAAiB,GAAG,gBAAgB,GAAG,UAAU,EACjD,SAAS,CACZ,CAAC;IAEE,IAAI,EAAE,WAAW,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC,GACvD,WAAW,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,SAAS,CAAC,GAC5D,WAAW,CAAC,gBAAgB,EAAE,WAAW,EAAE,SAAS,CAAC,GACrD,mBAAmB,CACf,iBAAiB,GAAG,gBAAgB,GAAG,UAAU,EACjD,SAAS,CACZ,CAAC;IAEE,EAAE,EAAE,WAAW,CAAC,UAAU,EAAE,SAAS,EAAE,IAAI,CAAC,GAChD,WAAW,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,SAAS,CAAC,GAC5D,WAAW,CAAC,gBAAgB,EAAE,WAAW,EAAE,IAAI,CAAC,GAChD,mBAAmB,CACf,iBAAiB,GAAG,gBAAgB,GAAG,UAAU,EACjD,IAAI,CACP,CAAC;gBAEM,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE;IA8CzC,OAAO,CAAC,SAAS;CAQpB"}
|
|
@@ -2,18 +2,37 @@ import Observable from 'ol/Observable.js';
|
|
|
2
2
|
import Feature from 'ol/Feature.js';
|
|
3
3
|
import Geometry from 'ol/geom/Geometry.js';
|
|
4
4
|
import Modal from 'modal-vanilla';
|
|
5
|
+
import { getStoredLayer } from './state';
|
|
5
6
|
import { Options } from '../ol-wfst';
|
|
7
|
+
import { IProperty } from '../@types';
|
|
6
8
|
/**
|
|
7
|
-
* Shows a fields form in a modal window to allow changes in the properties of
|
|
9
|
+
* Shows a fields form in a modal window to allow changes in the properties of
|
|
10
|
+
* one or several features. When editing multiple features, a "table mode"
|
|
11
|
+
* button renders one feature per row, spreadsheet-style, so each feature can be
|
|
12
|
+
* edited separately (like an Excel sheet). Otherwise a single form is shown
|
|
13
|
+
* where fields whose value differs across the selection show the "multiple
|
|
14
|
+
* values" placeholder and only the fields actually changed are applied to the
|
|
15
|
+
* whole selection.
|
|
8
16
|
*
|
|
9
|
-
* @param
|
|
17
|
+
* @param features
|
|
10
18
|
* @private
|
|
11
19
|
*/
|
|
12
20
|
export declare class EditFieldsModal extends Observable {
|
|
13
21
|
protected _options: Options;
|
|
14
22
|
protected _modal: Modal;
|
|
15
|
-
protected
|
|
23
|
+
protected _features: Feature[];
|
|
24
|
+
protected _tableMode: boolean;
|
|
25
|
+
protected _fieldList: IProperty[];
|
|
26
|
+
protected _layer: ReturnType<typeof getStoredLayer>;
|
|
16
27
|
constructor(options: Options);
|
|
17
|
-
show(
|
|
28
|
+
show(features: Feature<Geometry> | Feature<Geometry>[]): void;
|
|
29
|
+
protected _renderBody(): void;
|
|
30
|
+
protected _toggleTable(): void;
|
|
31
|
+
protected _renderForm(): HTMLElement;
|
|
32
|
+
protected _renderTable(): HTMLElement;
|
|
33
|
+
protected _inputType(typeXsd: string): string;
|
|
34
|
+
private _saveForm;
|
|
35
|
+
private _saveTable;
|
|
36
|
+
private _dispatch;
|
|
18
37
|
}
|
|
19
38
|
//# sourceMappingURL=EditFieldsModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditFieldsModal.d.ts","sourceRoot":"","sources":["../../src/modules/EditFieldsModal.tsx"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"EditFieldsModal.d.ts","sourceRoot":"","sources":["../../src/modules/EditFieldsModal.tsx"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAK3C,OAAO,KAAK,MAAM,eAAe,CAAC;AAElC,OAAO,EAA0B,cAAc,EAAE,MAAM,SAAS,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAMtC;;;;;;;;;;;GAWG;AACH,qBAAa,eAAgB,SAAQ,UAAU;IAC3C,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC;IACxB,SAAS,CAAC,SAAS,EAAE,OAAO,EAAE,CAAC;IAC/B,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,UAAU,EAAE,SAAS,EAAE,CAAC;IAClC,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;gBAExC,OAAO,EAAE,OAAO;IAwD5B,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,EAAE;IA+BtD,SAAS,CAAC,WAAW,IAAI,IAAI;IA8B7B,SAAS,CAAC,YAAY,IAAI,IAAI;IAS9B,SAAS,CAAC,WAAW,IAAI,WAAW;IAqFpC,SAAS,CAAC,YAAY,IAAI,WAAW;IAsFrC,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAgB7C,OAAO,CAAC,SAAS;IAiCjB,OAAO,CAAC,UAAU;IAwClB,OAAO,CAAC,SAAS;CAQpB"}
|
|
@@ -3,6 +3,6 @@ import Feature from 'ol/Feature.js';
|
|
|
3
3
|
import Overlay from 'ol/Overlay.js';
|
|
4
4
|
import { Coordinate } from 'ol/coordinate.js';
|
|
5
5
|
export default class EditOverlay extends Overlay {
|
|
6
|
-
constructor(feature
|
|
6
|
+
constructor(feature?: Feature<Geometry> | null, coordinate?: Coordinate, id?: string | number);
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=EditOverlay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditOverlay.d.ts","sourceRoot":"","sources":["../../src/modules/EditOverlay.tsx"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"EditOverlay.d.ts","sourceRoot":"","sources":["../../src/modules/EditOverlay.tsx"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAO9C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,OAAO;gBAExC,OAAO,GAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,IAAW,EACxC,UAAU,GAAE,UAAiB,EAC7B,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM;CA8C3B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Overlay from 'ol/Overlay.js';
|
|
2
|
+
import Geometry from 'ol/geom/Geometry.js';
|
|
3
|
+
import Feature from 'ol/Feature.js';
|
|
4
|
+
import { Coordinate } from 'ol/coordinate.js';
|
|
5
|
+
export type ExtendLineSide = 'start' | 'end';
|
|
6
|
+
export default class ExtendLineOverlay extends Overlay {
|
|
7
|
+
feature: Feature<Geometry>;
|
|
8
|
+
side: ExtendLineSide;
|
|
9
|
+
component: number;
|
|
10
|
+
constructor(feature: Feature<Geometry>, coordinate: Coordinate, side: ExtendLineSide, component: number, onClick: (side: ExtendLineSide) => void);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=ExtendLineOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtendLineOverlay.d.ts","sourceRoot":"","sources":["../../src/modules/ExtendLineOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAM9C,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,KAAK,CAAC;AAE7C,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,OAAO;IAClD,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3B,IAAI,EAAE,cAAc,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;gBAGd,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,cAAc,EACpB,SAAS,QAAI,EACb,OAAO,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI;CA0B9C"}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import Observable from 'ol/Observable.js';
|
|
2
|
-
import
|
|
2
|
+
import WfsLayer from '../WfsLayer.js';
|
|
3
|
+
import WmsLayer from '../WmsLayer.js';
|
|
4
|
+
import { SelectionMode } from './state';
|
|
3
5
|
import Uploads from './Uploads';
|
|
6
|
+
import type { Options } from '../ol-wfst';
|
|
4
7
|
/**
|
|
5
8
|
* Removes in the DOM the class of the tools
|
|
6
9
|
* @private
|
|
7
10
|
*/
|
|
8
11
|
export declare const resetStateButtons: () => void;
|
|
9
12
|
export declare const activateModeButtons: () => void;
|
|
13
|
+
export declare const activateQueryButton: () => void;
|
|
14
|
+
export declare const deactivateQueryButton: () => void;
|
|
10
15
|
export declare const activateDrawButton: () => void;
|
|
16
|
+
export declare const activateSelectModeButton: (mode: SelectionMode) => void;
|
|
17
|
+
export declare const deactivateSelectModeButton: () => void;
|
|
11
18
|
export default class LayersControl extends Observable {
|
|
12
19
|
protected _uploads: Uploads;
|
|
13
20
|
protected _uploadFormats: Options['uploadFormats'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayersControl.d.ts","sourceRoot":"","sources":["../../src/modules/LayersControl.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAE1C,OAAO,
|
|
1
|
+
{"version":3,"file":"LayersControl.d.ts","sourceRoot":"","sources":["../../src/modules/LayersControl.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAE1C,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAYtC,OAAO,EAIH,aAAa,EAChB,MAAM,SAAS,CAAC;AAEjB,OAAO,OAAO,MAAM,WAAW,CAAC;AAGhC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAO,IAOpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAM/B,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAK/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAO,IAKxC,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAK9B,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,MAAM,aAAa,SAoB3D,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAAO,IAS7C,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU;IACjD,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;gBAEvC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC,eAAe,CAAC;IAOrE;;;;OAIG;IACH,UAAU,CAAC,KAAK,EAAE,QAAQ,GAAG,QAAQ,GAAG,WAAW;IA0EnD;;;;;;OAMG;IACH,OAAO,CAAC,kBAAkB;IAiE1B,OAAO,CAAC,uBAAuB;IAa/B;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAiB3B,MAAM,IAAI,WAAW;CAkHxB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Geometry from 'ol/geom/Geometry.js';
|
|
2
|
+
import Feature from 'ol/Feature.js';
|
|
3
|
+
import Overlay from 'ol/Overlay.js';
|
|
4
|
+
import { Coordinate } from 'ol/coordinate.js';
|
|
5
|
+
/**
|
|
6
|
+
* Popup overlay that shows the attributes of a queried feature and its
|
|
7
|
+
* layer label. The geometry is highlighted separately on a dedicated layer.
|
|
8
|
+
*
|
|
9
|
+
* @extends {ol/Overlay~Overlay}
|
|
10
|
+
* @param feature
|
|
11
|
+
* @param coordinate
|
|
12
|
+
* @param layer
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
export default class QueryOverlay extends Overlay {
|
|
16
|
+
constructor(feature: Feature<Geometry>, coordinate: Coordinate, layer: {
|
|
17
|
+
getDescribeFeatureType: () => any;
|
|
18
|
+
get: (key: string) => any;
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=QueryOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryOverlay.d.ts","sourceRoot":"","sources":["../../src/modules/QueryOverlay.tsx"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAO9C;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,OAAO;gBAEzC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE;QAAE,sBAAsB,EAAE,MAAM,GAAG,CAAC;QAAC,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,GAAG,CAAA;KAAE;CAgE9E"}
|
|
@@ -10,9 +10,13 @@ import { TransactionType } from '../../@enums';
|
|
|
10
10
|
*/
|
|
11
11
|
export default class BaseLayer extends Layer {
|
|
12
12
|
/**
|
|
13
|
+
* Initialize the layer: request DescribeFeatureType and resolve when it
|
|
14
|
+
* finishes (whether successful or not).
|
|
15
|
+
*
|
|
13
16
|
* @private
|
|
17
|
+
* @returns Promise that resolves when the layer is initialized
|
|
14
18
|
*/
|
|
15
|
-
_init(): void
|
|
19
|
+
_init(): Promise<void>;
|
|
16
20
|
/**
|
|
17
21
|
* Request and store data layers obtained by DescribeFeatureType
|
|
18
22
|
*
|
|
@@ -34,10 +38,10 @@ export default class BaseLayer extends Layer {
|
|
|
34
38
|
insertFeatures(features: Array<Feature<Geometry>> | Feature<Geometry>): Promise<TransactionResponse | false>;
|
|
35
39
|
/**
|
|
36
40
|
* @public
|
|
37
|
-
* @param
|
|
41
|
+
* @param featureIds
|
|
38
42
|
* @returns
|
|
39
43
|
*/
|
|
40
|
-
maybeLockFeature(
|
|
44
|
+
maybeLockFeature(featureIds: string | number | Array<string | number>): Promise<string>;
|
|
41
45
|
/**
|
|
42
46
|
*
|
|
43
47
|
* @returns
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseLayer.d.ts","sourceRoot":"","sources":["../../../src/modules/base/BaseLayer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,MAAM,kBAAkB,CAAC;AAErC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAgB,eAAe,EAAE,MAAM,cAAc,CAAC;AAM7D;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,KAAK;IACxC
|
|
1
|
+
{"version":3,"file":"BaseLayer.d.ts","sourceRoot":"","sources":["../../../src/modules/base/BaseLayer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,MAAM,kBAAkB,CAAC;AAErC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAgB,eAAe,EAAE,MAAM,cAAc,CAAC;AAM7D;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,KAAK;IACxC;;;;;;OAMG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAe5B;;;;OAIG;IACG,+BAA+B,IAAI,OAAO,CAAC,IAAI,CAAC;IAyDtD;;;OAGG;IACH,eAAe,IAAI,OAAO;IAI1B;;;;;OAKG;IACG,gBAAgB,CAClB,IAAI,EAAE,eAAe,EACrB,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,GACvD,OAAO,CAAC,mBAAmB,GAAG,KAAK,CAAC;IASjC,cAAc,CAChB,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,GACvD,OAAO,CAAC,mBAAmB,GAAG,KAAK,CAAC;IAIvC;;;;OAIG;IACG,gBAAgB,CAClB,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,GACrD,OAAO,CAAC,MAAM,CAAC;IAYlB;;;;OAIG;IACH,YAAY,IAAI,SAAS;IAIzB;;;;OAIG;IACH,sBAAsB,IAAI,6BAA6B;CAG1D;AAED,oBAAY,iBAAiB;IACzB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,mBAAmB,wBAAwB;IAC3C,SAAS,cAAc;IACvB,SAAS,cAAc;CAC1B;AAED,MAAM,MAAM,mBAAmB,GACzB,eAAe,GACf,UAAU,iBAAiB,CAAC,mBAAmB,EAAE,GACjD,UAAU,iBAAiB,CAAC,SAAS,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WfsSource.d.ts","sourceRoot":"","sources":["../../../src/modules/base/WfsSource.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,eAAe,CAAC;AAGpC,OAAO,YAAY,EAAE,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAY;IACxC,SAAS,kBAKb;gBAES,OAAO,EAAE,gBAAgB;
|
|
1
|
+
{"version":3,"file":"WfsSource.d.ts","sourceRoot":"","sources":["../../../src/modules/base/WfsSource.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,eAAe,CAAC;AAGpC,OAAO,YAAY,EAAE,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAY;IACxC,SAAS,kBAKb;gBAES,OAAO,EAAE,gBAAgB;CAkFxC;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,SAAS,CAAC,OAAO,CAAC;IACxD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IAEtC;;OAEG;IACH,eAAe,CAAC,EAAE,kBAAkB,CAAC;IAErC;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;CACpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editLayer.d.ts","sourceRoot":"","sources":["../../src/modules/editLayer.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAO/C,eAAO,MAAM,YAAY,QAAO,
|
|
1
|
+
{"version":3,"file":"editLayer.d.ts","sourceRoot":"","sources":["../../src/modules/editLayer.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAO/C,eAAO,MAAM,YAAY,QAAO,WAAW,CAAC,YAAY,CAEvD,CAAC"}
|
package/dist/modules/errors.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Options } from '../ol-wfst';
|
|
2
2
|
import { IGeoserverDescribeFeatureType } from '../@types';
|
|
3
|
-
export declare const initModal: (opts: Options[
|
|
3
|
+
export declare const initModal: (opts: Options["modal"]) => void;
|
|
4
4
|
export declare const parseError: (geoserverResponse: IGeoserverDescribeFeatureType) => string;
|
|
5
5
|
/**
|
|
6
6
|
* Show modal with errors
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/modules/errors.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAsB,6BAA6B,EAAE,MAAM,WAAW,CAAC;AAM9E,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/modules/errors.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAsB,6BAA6B,EAAE,MAAM,WAAW,CAAC;AAM9E,eAAO,MAAM,SAAS,GAAI,MAAM,OAAO,CAAC,OAAO,CAAC,SAE/C,CAAC;AAEF,eAAO,MAAM,UAAU,GACnB,mBAAmB,6BAA6B,WASnD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAClB,KAAK,MAAM,EACX,gBAAe,KAAY,EAC3B,kBAAc,KACf,IAoBF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/modules/helpers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/modules/helpers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,WAAM,EAAE,GAAG,cAAO,QAgBlD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/modules/i18n/en.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,eAAO,MAAM,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/modules/i18n/en.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,eAAO,MAAM,EAAE,EAAE,IAqDhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../src/modules/i18n/es.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,eAAO,MAAM,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../src/modules/i18n/es.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,eAAO,MAAM,EAAE,EAAE,IAsDhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AAarB,eAAO,IAAI,IAAI,EAAE,IAAS,CAAC;AAE3B,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AAarB,eAAO,IAAI,IAAI,EAAE,IAAS,CAAC;AAE3B,eAAO,MAAM,OAAO,GAAI,aAAW,EAAE,aAAY,IAAW,KAAG,IAU9D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,GAAI,QAAQ,MAAM,EAAE,GAAG,MAAM,GAAG,KAAG,MAmBpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../src/modules/i18n/zh.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,eAAO,MAAM,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../src/modules/i18n/zh.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,eAAO,MAAM,EAAE,EAAE,IAoDhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loading.d.ts","sourceRoot":"","sources":["../../src/modules/loading.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,QAAO,
|
|
1
|
+
{"version":3,"file":"loading.d.ts","sourceRoot":"","sources":["../../src/modules/loading.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,QAAO,cAM9B,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAM,OAAc,SAM/C,CAAC"}
|
package/dist/modules/state.d.ts
CHANGED
|
@@ -5,10 +5,18 @@ import WmsLayer from '../WmsLayer';
|
|
|
5
5
|
import { IWfstLayersList } from '../@types';
|
|
6
6
|
export declare enum Modes {
|
|
7
7
|
Edit = "EDIT",
|
|
8
|
-
Draw = "DRAW"
|
|
8
|
+
Draw = "DRAW",
|
|
9
|
+
Query = "QUERY"
|
|
10
|
+
}
|
|
11
|
+
export declare enum SelectionMode {
|
|
12
|
+
Single = "SINGLE",
|
|
13
|
+
Box = "BOX",
|
|
14
|
+
Freehand = "FREEHAND"
|
|
9
15
|
}
|
|
10
16
|
export declare function activateMode(m?: Modes): void;
|
|
11
17
|
export declare function getMode(): any;
|
|
18
|
+
export declare function setSelectionMode(m: SelectionMode): void;
|
|
19
|
+
export declare function getSelectionMode(): SelectionMode;
|
|
12
20
|
export declare function setMap(m: Map): void;
|
|
13
21
|
export declare function getMap(): Map;
|
|
14
22
|
export declare function setActiveLayerToInsertEls(layer: WmsLayer | WfsLayer): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/modules/state.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,WAAW,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAM5C,oBAAY,KAAK;IACb,IAAI,SAAS;IACb,IAAI,SAAS;
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/modules/state.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,WAAW,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAM5C,oBAAY,KAAK;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;CAClB;AAED,oBAAY,aAAa;IACrB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,QAAQ,aAAa;CACxB;AAID,wBAAgB,YAAY,CAAC,CAAC,GAAE,KAAY,QAE3C;AAED,wBAAgB,OAAO,QAEtB;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,aAAa,QAEhD;AAED,wBAAgB,gBAAgB,IAAI,aAAa,CAEhD;AAKD,wBAAgB,MAAM,CAAC,CAAC,EAAE,GAAG,QAE5B;AAED,wBAAgB,MAAM,IAAI,GAAG,CAE5B;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,QAAQ,GAAG,QAAQ,QAEnE;AAED,wBAAgB,yBAAyB,IAAI,QAAQ,GAAG,QAAQ,CAE/D;AAED,wBAAgB,YAAY,CAAC,IAAI,KAAA,QAEhC;AAED,wBAAgB,kBAAkB,IAAI,eAAe,CAEpD;AAED,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAErE;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAEjE;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAEpE;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAE7D"}
|
|
@@ -1,13 +1,46 @@
|
|
|
1
|
-
import { Geometry } from 'ol/geom.js';
|
|
1
|
+
import { Geometry, MultiPoint } from 'ol/geom.js';
|
|
2
2
|
import { Style } from 'ol/style.js';
|
|
3
|
-
import Feature from 'ol/Feature.js';
|
|
3
|
+
import Feature, { FeatureLike } from 'ol/Feature.js';
|
|
4
|
+
/**
|
|
5
|
+
* Modern vertex handle mimicking the round "extend line" buttons shown at
|
|
6
|
+
* line endpoints: a soft halo for depth and a white disc with a subtle
|
|
7
|
+
* border. When `highlighted` is `true` (e.g. hovering a vertex with the
|
|
8
|
+
* Modify interaction) the handle gets bigger with a stronger halo and a
|
|
9
|
+
* darker border.
|
|
10
|
+
*
|
|
11
|
+
* @param highlighted Whether to render the bigger/highlighted state
|
|
12
|
+
* @param geometry Style geometry function to position the handles
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
export declare const editVertexStyles: (highlighted?: boolean, geometry?: (feature: FeatureLike) => Geometry) => Array<Style>;
|
|
16
|
+
/**
|
|
17
|
+
* Extract a `MultiPoint` with every vertex of the given feature geometry
|
|
18
|
+
* (polygons and multi-line strings are flattened). Returns `undefined` when
|
|
19
|
+
* the geometry has no coordinates.
|
|
20
|
+
*
|
|
21
|
+
* @param feature
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
24
|
+
export declare const getFeatureVertices: (feature: FeatureLike) => MultiPoint | undefined;
|
|
4
25
|
/**
|
|
5
26
|
* Master style that handles two modes on the Edit Layer:
|
|
6
27
|
* - one is the basic, showing only the vertices
|
|
7
28
|
* - and the other when modify is active, showing bigger vertices
|
|
8
29
|
*
|
|
30
|
+
* When `hovered` is `true`, a white/red halo is prepended to highlight the
|
|
31
|
+
* feature, indicating it can be selected on click.
|
|
32
|
+
*
|
|
33
|
+
* @param feature
|
|
34
|
+
* @param hovered
|
|
35
|
+
* @private
|
|
36
|
+
*/
|
|
37
|
+
export default function styleFunction(feature: Feature<Geometry>, hovered?: boolean): Array<Style>;
|
|
38
|
+
/**
|
|
39
|
+
* Style used to highlight a feature after a query, drawn on a dedicated
|
|
40
|
+
* highlight layer so the source layers keep their own rendering.
|
|
41
|
+
*
|
|
9
42
|
* @param feature
|
|
10
43
|
* @private
|
|
11
44
|
*/
|
|
12
|
-
export
|
|
45
|
+
export declare function queryStyleFunction(_feature: Feature<Geometry>): Array<Style>;
|
|
13
46
|
//# sourceMappingURL=styleFunction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styleFunction.d.ts","sourceRoot":"","sources":["../../src/modules/styleFunction.ts"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,
|
|
1
|
+
{"version":3,"file":"styleFunction.d.ts","sourceRoot":"","sources":["../../src/modules/styleFunction.ts"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,EAIR,UAAU,EAGb,MAAM,YAAY,CAAC;AACpB,OAAO,EAAuC,KAAK,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,OAAO,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAMrD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,GACzB,qBAAmB,EACnB,WAAW,CAAC,OAAO,EAAE,WAAW,KAAK,QAAQ,KAC9C,KAAK,CAAC,KAAK,CAkCb,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAC3B,SAAS,WAAW,KACrB,UAAU,GAAG,SAuBf,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CACjC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,OAAO,UAAQ,GAChB,KAAK,CAAC,KAAK,CAAC,CAwGd;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,CAsB5E"}
|