├── .eslintignore ├── .eslintrc ├── .gitattributes ├── .gitignore ├── .prettierignore ├── .prettierrc ├── .vscode └── settings.json ├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── dist ├── @enums.d.ts ├── @enums.d.ts.map ├── @types.d.ts ├── @types.d.ts.map ├── Geoserver.d.ts ├── Geoserver.d.ts.map ├── WfsLayer.d.ts ├── WfsLayer.d.ts.map ├── WmsLayer.d.ts ├── WmsLayer.d.ts.map ├── css │ ├── ol-wfst.bootstrap5.css │ ├── ol-wfst.bootstrap5.min.css │ ├── ol-wfst.css │ └── ol-wfst.min.css ├── defaults.d.ts ├── defaults.d.ts.map ├── index-umd.d.ts ├── index-umd.d.ts.map ├── modules │ ├── EditControlChanges.d.ts │ ├── EditControlChanges.d.ts.map │ ├── EditFieldsModal.d.ts │ ├── EditFieldsModal.d.ts.map │ ├── EditOverlay.d.ts │ ├── EditOverlay.d.ts.map │ ├── LayersControl.d.ts │ ├── LayersControl.d.ts.map │ ├── Uploads.d.ts │ ├── Uploads.d.ts.map │ ├── base │ │ ├── BaseLayer.d.ts │ │ ├── BaseLayer.d.ts.map │ │ ├── WfsSource.d.ts │ │ ├── WfsSource.d.ts.map │ │ ├── WmsSource.d.ts │ │ └── WmsSource.d.ts.map │ ├── editLayer.d.ts │ ├── editLayer.d.ts.map │ ├── errors.d.ts │ ├── errors.d.ts.map │ ├── helpers.d.ts │ ├── helpers.d.ts.map │ ├── i18n │ │ ├── en.d.ts │ │ ├── en.d.ts.map │ │ ├── es.d.ts │ │ ├── es.d.ts.map │ │ ├── index.d.ts │ │ ├── index.d.ts.map │ │ ├── zh.d.ts │ │ └── zh.d.ts.map │ ├── loading.d.ts │ ├── loading.d.ts.map │ ├── state.d.ts │ ├── state.d.ts.map │ ├── styleFunction.d.ts │ └── styleFunction.d.ts.map ├── myPragma.d.ts ├── myPragma.d.ts.map ├── ol-wfst.d.ts ├── ol-wfst.d.ts.map ├── ol-wfst.js ├── ol-wfst.js.map ├── ol-wfst.min.js └── ol-wfst.min.js.map ├── examples ├── basic.html ├── basic.js └── reset.css ├── lib ├── @enums.d.ts ├── @enums.d.ts.map ├── @types.d.ts ├── @types.d.ts.map ├── Geoserver.d.ts ├── Geoserver.d.ts.map ├── WfsLayer.d.ts ├── WfsLayer.d.ts.map ├── WmsLayer.d.ts ├── WmsLayer.d.ts.map ├── defaults.d.ts ├── defaults.d.ts.map ├── index-umd.d.ts ├── index-umd.d.ts.map ├── modules │ ├── EditControlChanges.d.ts │ ├── EditControlChanges.d.ts.map │ ├── EditFieldsModal.d.ts │ ├── EditFieldsModal.d.ts.map │ ├── EditOverlay.d.ts │ ├── EditOverlay.d.ts.map │ ├── LayersControl.d.ts │ ├── LayersControl.d.ts.map │ ├── Uploads.d.ts │ ├── Uploads.d.ts.map │ ├── base │ │ ├── BaseLayer.d.ts │ │ ├── BaseLayer.d.ts.map │ │ ├── WfsSource.d.ts │ │ ├── WfsSource.d.ts.map │ │ ├── WmsSource.d.ts │ │ └── WmsSource.d.ts.map │ ├── editLayer.d.ts │ ├── editLayer.d.ts.map │ ├── errors.d.ts │ ├── errors.d.ts.map │ ├── helpers.d.ts │ ├── helpers.d.ts.map │ ├── i18n │ │ ├── en.d.ts │ │ ├── en.d.ts.map │ │ ├── es.d.ts │ │ ├── es.d.ts.map │ │ ├── index.d.ts │ │ ├── index.d.ts.map │ │ ├── zh.d.ts │ │ └── zh.d.ts.map │ ├── loading.d.ts │ ├── loading.d.ts.map │ ├── state.d.ts │ ├── state.d.ts.map │ ├── styleFunction.d.ts │ └── styleFunction.d.ts.map ├── myPragma.d.ts ├── myPragma.d.ts.map ├── ol-wfst.d.ts ├── ol-wfst.d.ts.map ├── ol-wfst.js ├── ol-wfst.js.map └── style │ ├── css │ ├── ol-gisify.css │ └── ol-wfst.bootstrap5.css │ └── scss │ ├── -ol-wfst.bootstrap5.scss │ ├── _variables.scss │ └── ol-wfst.scss ├── package.json ├── postcss.config.cjs ├── rollup.config.dist.js ├── rollup.config.js ├── screenshots ├── example-1.jpg └── example-2.jpg ├── scripts └── external-links.js ├── src ├── @enums.ts ├── @types.ts ├── Geoserver.ts ├── WfsLayer.ts ├── WmsLayer.ts ├── assets │ ├── images │ │ ├── draw.svg │ │ ├── editFields.svg │ │ ├── editGeom.svg │ │ ├── select.svg │ │ ├── upload.svg │ │ ├── visibilityOff.svg │ │ └── visibilityOn.svg │ └── scss │ │ ├── -ol-wfst.bootstrap5.scss │ │ ├── _variables.scss │ │ └── ol-wfst.scss ├── custom.d.ts ├── defaults.ts ├── index-umd.ts ├── modules │ ├── EditControlChanges.tsx │ ├── EditFieldsModal.tsx │ ├── EditOverlay.tsx │ ├── LayersControl.tsx │ ├── Uploads.ts │ ├── base │ │ ├── BaseLayer.ts │ │ ├── WfsSource.ts │ │ └── WmsSource.ts │ ├── editLayer.ts │ ├── errors.ts │ ├── helpers.ts │ ├── i18n │ │ ├── en.ts │ │ ├── es.ts │ │ ├── index.ts │ │ └── zh.ts │ ├── loading.ts │ ├── state.ts │ └── styleFunction.ts ├── myPragma.ts └── ol-wfst.ts └── tsconfig.json /.eslintignore: -------------------------------------------------------------------------------- 1 | /node_modules/ -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "parser": "@typescript-eslint/parser", 3 | "plugins": [ 4 | "@typescript-eslint" 5 | ], 6 | "extends": [ 7 | // "openlayers", 8 | "eslint:recommended", 9 | "plugin:@typescript-eslint/recommended", 10 | "plugin:@typescript-eslint/recommended" 11 | ], 12 | "rules": { 13 | "@typescript-eslint/no-explicit-any": "off", 14 | "@typescript-eslint/ban-ts-comment": "off", 15 | "@typescript-eslint/no-unused-vars": [ 16 | "error", 17 | { 18 | "argsIgnorePattern": "^_" 19 | } 20 | ] 21 | }, 22 | "globals": { 23 | "ol": "readonly", 24 | "document": "writable" 25 | } 26 | } -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | dist/** linguist-detectable=false 2 | lib/** linguist-detectable=false -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .cache 3 | .rollup.cache 4 | *.tsbuildinfo 5 | package-lock.json -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /dist/* 3 | *.min.css -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "tabWidth": 4, 3 | "singleQuote": true, 4 | "trailingComma": "none", 5 | "quoteProps": "consistent", 6 | "bracketSpacing": true, 7 | "endOfLine": "crlf" 8 | } -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "editor.detectIndentation": false, 3 | "editor.tabSize": 4, 4 | "editor.insertSpaces": true, 5 | "files.eol": "\r\n", 6 | "files.autoSave": "afterDelay", 7 | "files.autoSaveDelay": 1000, 8 | "javascript.preferences.importModuleSpecifierEnding": "js", 9 | "typescript.preferences.importModuleSpecifierEnding": "js", 10 | "typescript.preferences.importModuleSpecifier": "relative", 11 | "javascript.preferences.importModuleSpecifier": "relative" 12 | } -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## v1.0.0 4 | * Module created 5 | 6 | ## v1.0.1 7 | * Improved widget controller: 8 | - Changed css style 9 | - Removed select tool 10 | - Added a visibility toggler on each layer 11 | 12 | ## v1.0.2 13 | * Added support for using different modes on each layer ('wfs' or 'wms') 14 | * Default value in layer mode is now 'wfs' 15 | * Extra Layer options can be set on each layer (styles, zindex, etc) 16 | * Improved loading indicator 17 | * Fixed the bug that did not show vertices in LineStrings 18 | 19 | ## v1.0.3 20 | * Specified the CRS in 'bbox' param 21 | 22 | ## v1.0.4 23 | * DescribeFeatureType request changed to version 1.1.0 24 | 25 | ## v1.0.5 26 | * Some minor improvements in the package configuration 27 | 28 | ## v1.0.6 29 | * Fixed bug: changed parameter typeNames to typeName on DescribeFeatureType requests 30 | 31 | ## v1.0.7 32 | * Fixed readme links 33 | 34 | ## v1.0.8 35 | * Fixed some css 36 | * Fixed bug on Open Layers 5 preventing select the features: getFeatureInfoUrl vs getGetFeatureInfoUrl 37 | * Fixed bug on Open Layers 5 when creating two Select on the same map 38 | 39 | ## v1.0.9 40 | * Fixed error notification on requesting to offlines geoservers 41 | * Fixed PeerDependencies 42 | 43 | ## v2.0.0 44 | * Improved css bootstrap 45 | * Added option "modal" to customize modals 46 | * Added option "i18n" to allow custom translations 47 | 48 | ## v3.0.0 49 | * Refactored code: class extends class ol.control.Control (breaking changes) 50 | * Added geoserverAdvanced to allow customizethe geoserver requests 51 | * Changed default projection to 'EPSG:3857' 52 | * Fixed types for recent versions of ol 53 | * Updated dependencies 54 | * Moved modal-vanilla to dependencies 55 | * Added events 56 | * Added Delete button on Edit Mode 57 | * css to scss 58 | 59 | ## v3.0.1 60 | * Fixed loading msg 61 | 62 | ## v3.0.2 63 | * Added Mandarin Chinese (zh) language 64 | * Fixed some english translations 65 | 66 | ## v3.0.3 67 | * Added _credentials_ option for fetch requests 68 | 69 | ## v3.0.5 70 | * Added public method to get the layers 71 | * Fix "loading" msg on init 72 | * Added event 'load' 73 | 74 | ## v3.0.6 75 | * Added event 'visible' 76 | 77 | ## v3.0.7 78 | * Improved error handling: 79 | * The original errors returned by the geoserver are now displayed 80 | * Only display one error modal per layer 81 | * Added extra geoserver options through the `geoserverOptions` attribute 82 | 83 | ## v4.0.0 84 | * Added Ol 7 compatibility 85 | * Overall refactoring 86 | * Improved README 87 | * Added events 88 | * Changed License 89 | 90 | ## v4.0.1 91 | * Created `setCustomParam` method on layers and removed from the sources 92 | 93 | ## v4.0.2 94 | * Add option to pass `undefined` or `null` values on the `setCustomParam` method on wfs layers to delete the param 95 | 96 | ## v4.0.3 97 | * Moved modal-vanilla to peer dependencies 98 | 99 | ## v4.0.4 100 | * Updated dependencies 101 | 102 | ## v4.0.5 103 | * Moved ts-mixer to prod dependencies 104 | 105 | ## v4.0.6 106 | * Updated dependencies 107 | * Added new event 'sourceready' (Ol 7.2.0) 108 | * Removed "browser" attribute from package.json 109 | * Improved error handling 110 | 111 | ## v4.1.0 112 | * Added ".js" extension on imports to work better with webpack 5 default's config 113 | * Lib is builded with es2017 target (downgraded from esnext) 114 | * Removed babel deps 115 | * Added header to dist files 116 | * Fixed example missing css 117 | 118 | ## v4.1.1 119 | * Fix `load` event dispatched before time 120 | * Changed default `getCapabilities` version to `2.0.0` 121 | * Added `ol-wfs-capabilities` dependency to parse `2.0.0` capabilities 122 | * Added `getParsedCapabilities` geoserver method (only for version `2.0.0`) 123 | * Limit bootstrap version 124 | 125 | ## v4.2.0 126 | * *IMPORTANT*: Improved the geometry accuracy obtained at WMS layers: the geometry returned by the WMS `getFeatureInfo` is now replaced by a (probably) more accurate version returned by the WFS `getFeature`. 127 | * Fix missing credentials and headers configuration in some Requests 128 | * Updated to Ol8 129 | * Updated to Bootstrap 5.3.0 130 | * Updated mulitple dev dependencies 131 | 132 | ## v4.3.0 133 | * Fixed bug when layernames includes workspaces 134 | * Fixed bug when draw mode is on and another layer is selected 135 | * Updated to Ol9 (fixed some types) 136 | * Some scss refactoring and minor improvements 137 | * Fixed cql_filter example on string values 138 | * Fixed delete button inside the fields modal 139 | 140 | ## v4.4.0 141 | * Added method `beforeShowFieldsModal` and example to customize the fields in the modal 142 | * Improved support for `xsd:date` and `xsd:double` type fields 143 | * Added some missing types 144 | * Converted some files to tsx 145 | * Fix unnecesary `getFeature` requests when there is no element selected -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2024 Gastón Zalba 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /dist/@enums.d.ts: -------------------------------------------------------------------------------- 1 | export declare enum GeometryType { 2 | Point = "Point", 3 | LineString = "LineString", 4 | LinearRing = "LinearRing", 5 | Polygon = "Polygon", 6 | MultiPoint = "MultiPoint", 7 | MultiLineString = "MultiLineString", 8 | MultiPolygon = "MultiPolygon", 9 | GeometryCollection = "GeometryCollection", 10 | Circle = "Circle" 11 | } 12 | export declare enum TransactionType { 13 | Insert = "insert", 14 | Delete = "delete", 15 | Update = "update" 16 | } 17 | //# sourceMappingURL=@enums.d.ts.map -------------------------------------------------------------------------------- /dist/@enums.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"@enums.d.ts","sourceRoot":"","sources":["../src/@enums.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACpB,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,eAAe,oBAAoB;IACnC,YAAY,iBAAiB;IAC7B,kBAAkB,uBAAuB;IACzC,MAAM,WAAW;CACpB;AAED,oBAAY,eAAe;IACvB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;CACpB"} -------------------------------------------------------------------------------- /dist/@types.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"@types.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AC;QACrB,WAAW,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;CACL"} -------------------------------------------------------------------------------- /dist/Geoserver.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"Geoserver.d.ts","sourceRoot":"","sources":["../src/Geoserver.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,KAAK,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAElE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,kBAAkB,MAAM,+BAA+B,CAAC;AAC/D,OAAO,OAAO,MAAM,eAAe,CAAC;AAEpC,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAC3C,OAAO,GAAG,MAAM,kBAAkB,CAAC;AACnC,OAAO,GAAG,MAAM,kBAAkB,CAAC;AAEnC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAcvD,OAAO,EAAgB,eAAe,EAAE,MAAM,UAAU,CAAC;AAQzD;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,UAAU;IAC7C,SAAS,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IAErC,SAAS,CAAC,cAAc,EAAE,MAAM,CAAC;IACjC,SAAS,CAAC,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;IACpD,SAAS,CAAC,eAAe,EAAE,KAAK,CAA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jC,QAAQ,aAAa;CACxB;AAED,MAAM,MAAM,mBAAmB,GACzB,UAAU,iBAAiB,CAAC,YAAY,EAAE,GAC1C,UAAU,iBAAiB,CAAC,mBAAmB,EAAE,GACjD,UAAU,iBAAiB,CAAC,GAAG,EAAE,GACjC,UAAU,iBAAiB,CAAC,OAAO,EAAE,GACrC,UAAU,iBAAiB,CAAC,WAAW,EAAE,GACzC,UAAU,iBAAiB,CAAC,QAAQ,EAAE,GACtC,UAAU,iBAAiB,CAAC,cAAc,EAAE,GAC5C,UAAU,iBAAiB,CAAC,cAAc,EAAE,GAC5C,UAAU,iBAAiB,CAAC,sBAAsB,EAAE,GACpD,UAAU,iBAAiB,CAAC,cAAc,EAAE,GAC5C,UAAU,iBAAiB,CAAC,QAAQ,EAAE,CAAC"} -------------------------------------------------------------------------------- /dist/WfsLayer.d.ts: -------------------------------------------------------------------------------- 1 | import VectorLayer from 'ol/layer/Vector.js'; 2 | import BaseEvent from 'ol/events/Event.js'; 3 | import { CombinedOnSignature, EventTypes, OnSignature } from 'ol/Observable.js'; 4 | import { EventsKey } from 'ol/events.js'; 5 | import { LayerRenderEventTypes } from 'ol/render/EventType.js'; 6 | import { BaseLayerObjectEventTypes } from 'ol/layer/Base.js'; 7 | import { ObjectEvent } from 'ol/Object.js'; 8 | import RenderEvent from 'ol/render/Event.js'; 9 | import BaseLayer, { BaseLayerEventTypes } from './modules/base/BaseLayer'; 10 | import WfsSource from './modules/base/WfsSource'; 11 | import { LayerOptions } from './ol-wfst'; 12 | declare const WfsLayer_base: import("ts-mixer/dist/types/types").Class, typeof BaseLayer & { 13 | new (options?: import("ol/layer/BaseVector").Options): VectorLayer; 14 | }>; 15 | /** 16 | * Layer to retrieve WFS features from geoservers 17 | * https://docs.geoserver.org/stable/en/user/services/wfs/reference.html 18 | * 19 | * @fires layerRendered 20 | * @extends {ol/layer/Vector~VectorLayer} 21 | * @param options 22 | */ 23 | export default class WfsLayer extends WfsLayer_base { 24 | private _loadingCount; 25 | private _loadedCount; 26 | beforeTransactFeature: LayerOptions['beforeTransactFeature']; 27 | beforeShowFieldsModal: LayerOptions['beforeShowFieldsModal']; 28 | on: OnSignature & OnSignature & OnSignature & CombinedOnSignature; 29 | once: OnSignature & OnSignature & OnSignature & CombinedOnSignature; 30 | un: OnSignature & OnSignature & OnSignature & CombinedOnSignature; 31 | constructor(options: LayerOptions); 32 | /** 33 | * @public 34 | */ 35 | refresh(): void; 36 | /** 37 | * Use this to update Geoserver Wms Vendors (https://docs.geoserver.org/latest/en/user/services/wms/vendor.html) 38 | * and other arguements (https://docs.geoserver.org/stable/en/user/services/wms/reference.html#getmap) 39 | * in all the getMap requests. 40 | * 41 | * Example: you can use this to change the style of the WMS, add a custom sld, set a cql_filter, etc. 42 | * 43 | * @public 44 | * @param paramName 45 | * @param value Use `undefined` or `null` to remove the param 46 | * @param refresh 47 | */ 48 | setCustomParam(paramName: string, value?: string, refresh?: boolean): URLSearchParams; 49 | } 50 | export {}; 51 | //# sourceMappingURL=WfsLayer.d.ts.map -------------------------------------------------------------------------------- /dist/WfsLayer.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"WfsLayer.d.ts","sourceRoot":"","sources":["../src/WfsLayer.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAI7C,OAAO,SAAS,EAAE,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,C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AAmB,GACnB,yBAAyB,GACzB,eAAe,GACf,aAAa,GACb,qBAAqB,EACvB,IAAI,CACP,CAAC;gBAEM,OAAO,EAAE,YAAY;IAsDjC;;OAEG;IACH,OAAO;IAMP;;;;;;;;;;;OAWG;IACH,cAAc,CACV,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,MAAa,EACpB,OAAO,UAAO,GACf,eAAe;CAerB"} -------------------------------------------------------------------------------- /dist/WmsLayer.d.ts: -------------------------------------------------------------------------------- 1 | import MapBrowserEvent from 'ol/MapBrowserEvent.js'; 2 | import TileLayer from 'ol/layer/Tile.js'; 3 | import Geometry from 'ol/geom/Geometry.js'; 4 | import Feature from 'ol/Feature.js'; 5 | import BaseEvent from 'ol/events/Event.js'; 6 | import { CombinedOnSignature, EventTypes, OnSignature } from 'ol/Observable.js'; 7 | import { EventsKey } from 'ol/events.js'; 8 | import { LayerRenderEventTypes } from 'ol/render/EventType.js'; 9 | import { BaseLayerObjectEventTypes } from 'ol/layer/Base.js'; 10 | import { ObjectEvent } from 'ol/Object.js'; 11 | import RenderEvent from 'ol/render/Event.js'; 12 | import WmsSource from './modules/base/WmsSource'; 13 | import BaseLayer, { BaseLayerEventTypes } from './modules/base/BaseLayer'; 14 | import { LayerOptions } from './ol-wfst'; 15 | declare const WmsLayer_base: import("ts-mixer/dist/types/types").Class, typeof BaseLayer & { 16 | new (options?: import("ol/layer/BaseTile").Options): TileLayer; 17 | }>; 18 | /** 19 | * Layer to retrieve WMS information from geoservers 20 | * https://docs.geoserver.org/stable/en/user/services/wms/reference.html 21 | * 22 | * @fires layerRendered 23 | * @extends {ol/layer/Tile~TileLayer} 24 | * @param options 25 | */ 26 | export default class WmsLayer extends WmsLayer_base { 27 | private _loadingCount; 28 | private _loadedCount; 29 | beforeTransactFeature: LayerOptions['beforeTransactFeature']; 30 | beforeShowFieldsModal: LayerOptions['beforeShowFieldsModal']; 31 | private _formatGeoJSON; 32 | on: OnSignature & OnSignature & OnSignature & CombinedOnSignature; 33 | once: OnSignature & OnSignature & OnSignature & CombinedOnSignature; 34 | un: OnSignature & OnSignature & OnSignature & CombinedOnSignature; 35 | constructor(options: LayerOptions); 36 | /** 37 | * Get the features on the click area 38 | * @param evt 39 | * @returns 40 | * @private 41 | */ 42 | _getFeaturesByClickEvent(evt: MapBrowserEvent): Promise[]>; 43 | private _parseFeaturesFromResponse; 44 | /** 45 | * Return the full accuracy geometry to replace the feature from GetFEatureInfo 46 | * @param featuresId 47 | * @returns 48 | */ 49 | private _getFullResGeometryById; 50 | /** 51 | * @public 52 | */ 53 | refresh(): void; 54 | /** 55 | * Use this to update Geoserver Wfs Vendors (https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html) 56 | * and other arguements (https://docs.geoserver.org/stable/en/user/services/wfs/reference.html) 57 | * in all the getFeature requests. 58 | * 59 | * Example: you can use this to set a cql_filter, limit the numbers of features, etc. 60 | * 61 | * @public 62 | * @param paramName 63 | * @param value 64 | * @param refresh 65 | */ 66 | setCustomParam(paramName: string, value?: string, refresh?: boolean): URLSearchParams; 67 | } 68 | export {}; 69 | //# sourceMappingURL=WmsLayer.d.ts.map -------------------------------------------------------------------------------- /dist/WmsLayer.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"WmsLayer.d.ts","sourceRoot":"","sources":["../src/WmsLayer.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,uBAAuB,CAAC;AACpD,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,OAAO,MAAM,eAAe,CAAC;AAEpC,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,yBAAyB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a,GACb,eAAe,GACf,gBAAgB,GAChB,+BAA+B,GAC/B,qBAAqB,EACvB,SAAS,CACZ,CAAC;IAEE,EAAE,EAAE,WAAW,CAAC,UAAU,EAAE,SAAS,EAAE,IAAI,CAAC,GAChD,WAAW,CACL,mBAAmB,GACnB,yBAAyB,GACzB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,+BAA+B,EACjC,WAAW,EACX,IAAI,CACP,GACD,WAAW,CAAC,qBAAqB,EAAE,WAAW,EAAE,IAAI,CAAC,GACrD,mBAAmB,CACb,UAAU,GACV,mBAAmB,GACnB,yBAAyB,GACzB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,+BAA+B,GAC/B,qBAAqB,EACvB,IAAI,CACP,CAAC;gBAEM,OAAO,EAAE,YAAY;IAqDjC;;;;;OAKG;IACG,wBAAwB,CAC1B,GAAG,EAAE,eAAe,CAAC,UAAU,CAAC,GACjC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;IAkE/B,OAAO,CAAC,0BAA0B;IAIlC;;;;OAIG;IACH,OAAO,CAAC,uBAAuB,CAqC7B;IAEF;;OAEG;IACH,OAAO;IAYP;;;;;;;;;;;OAWG;IACH,cAAc,CACV,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,MAAa,EACpB,OAAO,UAAO,GACf,eAAe;CAarB"} -------------------------------------------------------------------------------- /dist/css/ol-wfst.css: -------------------------------------------------------------------------------- 1 | .ol-wfst--input-field-container { 2 | display: inline-block; 3 | width: 49%; 4 | padding: 5px; 5 | margin-bottom: 10px; 6 | } 7 | 8 | .ol-wfst--input-field-label { 9 | display: block; 10 | font-weight: 500; 11 | margin-bottom: 4px; 12 | } 13 | 14 | .ol-wfst--input-field-input { 15 | width: 100%; 16 | padding: 5px; 17 | border: 1px solid black; 18 | border-radius: 3px; 19 | } 20 | 21 | .ol-wfst--edit-button-cnt { 22 | display: inline-block; 23 | margin: 0 5px; 24 | } 25 | 26 | .ol-wfst--edit-button { 27 | outline: 0; 28 | padding: 8px; 29 | height: 38px; 30 | width: 38px; 31 | font-size: 12px; 32 | background: #ffffff; 33 | border: 1px solid #b3b3b3; 34 | border-radius: 50%; 35 | box-shadow: 0 2px 8px rgba(0, 0, 0, 0.42); 36 | cursor: pointer; 37 | } 38 | .ol-wfst--edit-button:hover { 39 | background: #f5f5f5; 40 | } 41 | .ol-wfst--edit-button:active { 42 | background: #fafafa; 43 | transform: translateY(1px); 44 | } 45 | .ol-wfst--edit-button img { 46 | fill: #333; 47 | width: 20px; 48 | height: 20px; 49 | } 50 | 51 | .ol-wfst--changes-control { 52 | position: absolute; 53 | left: 50%; 54 | top: 0; 55 | right: 0; 56 | transform: translateX(-50%); 57 | max-width: 290px; 58 | width: 90%; 59 | background: #ff6161; 60 | border: 1px solid #969696; 61 | border-top: 0; 62 | box-shadow: 0 1px 4px rgba(0, 0, 0, 0.529); 63 | border-radius: 0 0 4px 4px; 64 | padding: 10px; 65 | } 66 | 67 | .ol-wfst--changes-control-el { 68 | text-align: center; 69 | } 70 | .ol-wfst--changes-control-el button { 71 | margin: 0 5px; 72 | } 73 | 74 | .ol-wfst--changes-control-id { 75 | margin-bottom: 10px; 76 | font-size: 12px; 77 | color: #fff; 78 | } 79 | 80 | .ol-wfst--tools-control { 81 | position: absolute; 82 | left: 10px; 83 | bottom: 10px; 84 | background-color: #fff; 85 | box-shadow: 0 1px 4px rgba(0, 0, 0, 0.42); 86 | border: 1px solid rgba(169, 169, 169, 0.7333333333); 87 | border-radius: 4px; 88 | } 89 | 90 | .btn.btn-third { 91 | float: left; 92 | color: #d43f3a; 93 | } 94 | 95 | .ol-wfst--layer-not-visible { 96 | opacity: 0.5 !important; 97 | } 98 | 99 | .ol-wfst--layer-not-visible { 100 | font-style: italic; 101 | } 102 | 103 | .wfst--layer-control { 104 | position: relative; 105 | padding: 5px 10px; 106 | } 107 | .wfst--layer-control.ol-wfst--selected-on { 108 | background-color: rgba(240, 223, 0, 0.6) !important; 109 | } 110 | .wfst--layer-control:hover, .wfst--layer-control:active { 111 | background-color: #f5f5f5; 112 | } 113 | .wfst--layer-control input[type=radio] { 114 | display: none; 115 | } 116 | 117 | .wfst--tools-control--select-layers .wfst--layer-control:not(.ol-wfst--selected-on) label { 118 | cursor: pointer; 119 | } 120 | .wfst--tools-control--select-layers label { 121 | position: absolute; 122 | left: 30px; 123 | right: 0; 124 | } 125 | 126 | .ol-wfst--tools-control-btn { 127 | background: #ffffff; 128 | border-radius: 4px; 129 | outline: 0; 130 | width: 40px; 131 | height: 32px; 132 | display: inline-block; 133 | text-align: center; 134 | vertical-align: middle; 135 | cursor: pointer; 136 | border: 1px solid #c0c0c0; 137 | } 138 | .ol-wfst--tools-control-btn.wfst--active { 139 | background-color: #ffed00 !important; 140 | } 141 | .ol-wfst--tools-control-btn.wfst--active { 142 | opacity: 1; 143 | } 144 | .ol-wfst--tools-control-btn:hover, .ol-wfst--tools-control-btn:active { 145 | background-color: #f5f5f5; 146 | opacity: 0.95; 147 | } 148 | .ol-wfst--tools-control-btn:active { 149 | transform: translateY(1px); 150 | } 151 | .ol-wfst--tools-control-btn img { 152 | width: 20px; 153 | height: 20px; 154 | } 155 | 156 | .wfst--tools-control--head { 157 | background: #dddddd; 158 | padding: 10px; 159 | border-bottom: 1px solid rgba(169, 169, 169, 0.7333333333); 160 | border-radius: 4px 4px 0 0; 161 | } 162 | .wfst--tools-control--head > * { 163 | display: inline-block; 164 | } 165 | 166 | .ol-wfst--tools-control-draw-cnt:not(:first-child) { 167 | margin-left: 6px; 168 | } 169 | 170 | .ol-wfst--tools-control-btn-upload { 171 | padding: 3px; 172 | } 173 | 174 | .wfst--tools-control--select-draw { 175 | outline: 0; 176 | border: 1px solid #c0c0c0; 177 | border-radius: 4px; 178 | padding: 0 3px; 179 | height: 32px; 180 | background: #f7f7f7; 181 | cursor: pointer; 182 | pointer-events: none; 183 | opacity: 0.5; 184 | vertical-align: middle; 185 | font-size: 0.9em; 186 | border-left: 0; 187 | border-radius: 0 4px 4px 0; 188 | } 189 | 190 | .ol-wfst--tools-control-btn-draw { 191 | border-radius: 4px 0 0 4px; 192 | opacity: 0.7; 193 | } 194 | 195 | .draw-mode .wfst--tools-control--select-draw { 196 | pointer-events: inherit; 197 | opacity: 1; 198 | background: #fffab5; 199 | } 200 | 201 | .wfst--tools-control--head label { 202 | cursor: pointer; 203 | } 204 | 205 | #ol-wfst--upload { 206 | display: none; 207 | visibility: hidden; 208 | } 209 | 210 | .ol-wfst--tools-control--loading { 211 | display: none; 212 | position: absolute; 213 | top: -25px; 214 | } 215 | 216 | .ol-wfst--tools-control--loading.ol-wfst--tools-control--loading-show { 217 | display: block; 218 | } 219 | 220 | .ol-wfst--tools-control-visible { 221 | display: inline-block; 222 | } 223 | 224 | .ol-wfst--tools-control-visible img { 225 | width: 14px; 226 | height: 14px; 227 | } 228 | 229 | .ol-wfst--tools-control-visible-btn { 230 | opacity: 0.6; 231 | cursor: pointer; 232 | } 233 | 234 | .ol-wfst--tools-control-visible-btn:hover { 235 | opacity: 0.9; 236 | } 237 | 238 | .wfst--layer-control { 239 | opacity: 0.7; 240 | } 241 | .wfst--layer-control.ol-wfst--visible-on { 242 | opacity: 1; 243 | } 244 | 245 | .ol-wfst--visible-btn-on { 246 | display: none; 247 | } 248 | 249 | .ol-wfst--visible-on .ol-wfst--visible-btn-on { 250 | display: block; 251 | } 252 | .ol-wfst--visible-on .ol-wfst--visible-btn-off { 253 | display: none; 254 | } 255 | 256 | .ol-wfst--visible-btn-off { 257 | display: block; 258 | } -------------------------------------------------------------------------------- /dist/css/ol-wfst.min.css: -------------------------------------------------------------------------------- 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} -------------------------------------------------------------------------------- /dist/defaults.d.ts: -------------------------------------------------------------------------------- 1 | import { Options } from './ol-wfst'; 2 | export declare const DEFAULT_LANGUAGE = "en"; 3 | export declare const getDefaultOptions: () => Options; 4 | //# sourceMappingURL=defaults.d.ts.map -------------------------------------------------------------------------------- /dist/defaults.d.ts.map: -------------------------------------------------------------------------------- 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,OAoBpC,CAAC"} -------------------------------------------------------------------------------- /dist/index-umd.d.ts: -------------------------------------------------------------------------------- 1 | import Wfst from './ol-wfst'; 2 | export default Wfst; 3 | //# sourceMappingURL=index-umd.d.ts.map -------------------------------------------------------------------------------- /dist/index-umd.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index-umd.d.ts","sourceRoot":"","sources":["../src/index-umd.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAY7B,eAAe,IAAI,CAAC"} -------------------------------------------------------------------------------- /dist/modules/EditControlChanges.d.ts: -------------------------------------------------------------------------------- 1 | import Feature from 'ol/Feature.js'; 2 | import Geometry from 'ol/geom/Geometry.js'; 3 | import Control from 'ol/control/Control.js'; 4 | import { VectorSourceEvent } from 'ol/source/Vector.js'; 5 | import { CombinedOnSignature, EventTypes, OnSignature } from 'ol/Observable.js'; 6 | import BaseEvent from 'ol/events/Event.js'; 7 | import { EventsKey } from 'ol/events.js'; 8 | import { ObjectEvent } from 'ol/Object.js'; 9 | import { Types as ObjectEventTypes } from 'ol/ObjectEventType.js'; 10 | type ChangesEventTypes = 'cancel' | 'apply' | 'delete'; 11 | export default class EditControlChangesEl extends Control { 12 | on: OnSignature & OnSignature & OnSignature & CombinedOnSignature; 13 | once: OnSignature & OnSignature & OnSignature & CombinedOnSignature; 14 | un: OnSignature & OnSignature & OnSignature & CombinedOnSignature; 15 | constructor(feature: Feature); 16 | } 17 | export {}; 18 | //# sourceMappingURL=EditControlChanges.d.ts.map -------------------------------------------------------------------------------- /dist/modules/EditControlChanges.d.ts.map: -------------------------------------------------------------------------------- 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,OA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------------------------------------------------------------- /dist/modules/EditFieldsModal.d.ts: -------------------------------------------------------------------------------- 1 | import Observable from 'ol/Observable.js'; 2 | import Feature from 'ol/Feature.js'; 3 | import Geometry from 'ol/geom/Geometry.js'; 4 | import Modal from 'modal-vanilla'; 5 | import { Options } from '../ol-wfst'; 6 | /** 7 | * Shows a fields form in a modal window to allow changes in the properties of the feature. 8 | * 9 | * @param feature 10 | * @private 11 | */ 12 | export declare class EditFieldsModal extends Observable { 13 | protected _options: Options; 14 | protected _modal: Modal; 15 | protected _feature: Feature; 16 | constructor(options: Options); 17 | show(feature: Feature): void; 18 | } 19 | //# sourceMappingURL=EditFieldsModal.d.ts.map -------------------------------------------------------------------------------- /dist/modules/EditFieldsModal.d.ts.map: -------------------------------------------------------------------------------- 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;AAI3C,OAAO,KAAK,MAAM,eAAe,CAAC;AAGlC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAKrC;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,UAAU;IAC3C,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC;IACxB,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC;gBAEhB,OAAO,EAAE,OAAO;IAiE5B,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC;CA2FlC"} -------------------------------------------------------------------------------- /dist/modules/EditOverlay.d.ts: -------------------------------------------------------------------------------- 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 | export default class EditOverlay extends Overlay { 6 | constructor(feature: Feature, coordinate?: Coordinate); 7 | } 8 | //# sourceMappingURL=EditOverlay.d.ts.map -------------------------------------------------------------------------------- /dist/modules/EditOverlay.d.ts.map: -------------------------------------------------------------------------------- 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;AAS9C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,OAAO;gBAChC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAE,UAAiB;CAgDxE"} -------------------------------------------------------------------------------- /dist/modules/LayersControl.d.ts: -------------------------------------------------------------------------------- 1 | import Observable from 'ol/Observable.js'; 2 | import { Options, WfsLayer, WmsLayer } from '../ol-wfst'; 3 | import Uploads from './Uploads'; 4 | /** 5 | * Removes in the DOM the class of the tools 6 | * @private 7 | */ 8 | export declare const resetStateButtons: () => void; 9 | export declare const activateModeButtons: () => void; 10 | export declare const activateDrawButton: () => void; 11 | export default class LayersControl extends Observable { 12 | protected _uploads: Uploads; 13 | protected _uploadFormats: Options['uploadFormats']; 14 | constructor(uploads: Uploads, uploadFormats: Options['uploadFormats']); 15 | /** 16 | * 17 | * @param layer 18 | * @public 19 | */ 20 | addLayerEl(layer: WfsLayer | WmsLayer): HTMLElement; 21 | /** 22 | * Update geom Types availibles to select for this layer 23 | * 24 | * @param layerName 25 | * @param geomDrawTypeSelected 26 | * @private 27 | */ 28 | private _changeStateSelect; 29 | private _visibilityClickHandler; 30 | /** 31 | * Called when a layer is selected in the widget 32 | * @param evt 33 | * @param layer 34 | */ 35 | private _layerChangeHandler; 36 | render(): HTMLElement; 37 | } 38 | //# sourceMappingURL=LayersControl.d.ts.map -------------------------------------------------------------------------------- /dist/modules/LayersControl.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"LayersControl.d.ts","sourceRoot":"","sources":["../../src/modules/LayersControl.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAczD,OAAO,OAAO,MAAM,WAAW,CAAC;AAKhC;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAO,IAOpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAK/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAK9B,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;IAwEnD;;;;;;OAMG;IACH,OAAO,CAAC,kBAAkB;IAiE1B,OAAO,CAAC,uBAAuB;IAa/B;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAiB3B,MAAM,IAAI,WAAW;CAiExB"} -------------------------------------------------------------------------------- /dist/modules/Uploads.d.ts: -------------------------------------------------------------------------------- 1 | import { Geometry } from 'ol/geom.js'; 2 | import Feature from 'ol/Feature.js'; 3 | import Observable from 'ol/Observable.js'; 4 | import GeoJSON from 'ol/format/GeoJSON.js'; 5 | import KML from 'ol/format/KML.js'; 6 | import WFS from 'ol/format/WFS.js'; 7 | import { Options } from '../ol-wfst'; 8 | export default class Uploads extends Observable { 9 | protected _options: Options; 10 | protected _formatWFS: WFS; 11 | protected _formatGeoJSON: GeoJSON; 12 | protected _formatKml: KML; 13 | protected _xs: XMLSerializer; 14 | protected _processUpload: Options['processUpload']; 15 | constructor(options: Options); 16 | /** 17 | * Parse and check geometry of uploaded files 18 | * 19 | * @param evt 20 | * @public 21 | */ 22 | process(evt: Event): Promise; 23 | /** 24 | * Read data file 25 | * @param file 26 | * @public 27 | */ 28 | _fileReader(file: File): Promise; 29 | /** 30 | * Attemp to change the geometry feature to the layer 31 | * @param feature 32 | * @private 33 | */ 34 | _fixGeometry(feature: Feature): Feature; 35 | /** 36 | * Check if the feature has the same geometry as the target layer 37 | * @param feature 38 | * @private 39 | */ 40 | _checkGeometry(feature: Feature): boolean; 41 | /** 42 | * Confirm modal before transact to the GeoServer the features in the file 43 | * 44 | * @param content 45 | * @param featuresToInsert 46 | * @private 47 | */ 48 | _initModal(content: string, featuresToInsert: Array>): void; 49 | } 50 | //# sourceMappingURL=Uploads.d.ts.map -------------------------------------------------------------------------------- /dist/modules/Uploads.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"Uploads.d.ts","sourceRoot":"","sources":["../../src/modules/Uploads.ts"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,EAOX,MAAM,YAAY,CAAC;AACpB,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAC3C,OAAO,GAAG,MAAM,kBAAkB,CAAC;AACnC,OAAO,GAAG,MAAM,kBAAkB,CAAC;AAOnC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAQrC,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,UAAU;IAC3C,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC;IAG5B,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC;IAC1B,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC;IAClC,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC;IAC1B,SAAS,CAAC,GAAG,EAAE,aAAa,CAAC;IAE7B,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;gBAEvC,OAAO,EAAE,OAAO;IAkB5B;;;;;OAKG;IACG,OAAO,CAAC,GAAG,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAyFxC;;;;OAIG;IACG,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;IAiB9C;;;;OAIG;IACH,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC;IAgD3D;;;;OAIG;IACH,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO;IAenD;;;;;;OAMG;IACH,UAAU,CACN,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAC3C,IAAI;CAuCV"} -------------------------------------------------------------------------------- /dist/modules/base/BaseLayer.d.ts: -------------------------------------------------------------------------------- 1 | import Feature from 'ol/Feature.js'; 2 | import Geometry from 'ol/geom/Geometry.js'; 3 | import { TransactionResponse } from 'ol/format/WFS.js'; 4 | import Layer from 'ol/layer/Base.js'; 5 | import Geoserver from '../../Geoserver'; 6 | import { IGeoserverDescribeFeatureType } from '../../@types'; 7 | import { TransactionType } from '../../@enums'; 8 | /** 9 | * Base class from which all layer types are derived. 10 | */ 11 | export default class BaseLayer extends Layer { 12 | /** 13 | * @private 14 | */ 15 | _init(): void; 16 | /** 17 | * Request and store data layers obtained by DescribeFeatureType 18 | * 19 | * @public 20 | */ 21 | getAndUpdateDescribeFeatureType(): Promise; 22 | /** 23 | * @public 24 | * @returns 25 | */ 26 | isVisibleByZoom(): boolean; 27 | /** 28 | * 29 | * @param mode 30 | * @param features 31 | * @public 32 | */ 33 | transactFeatures(mode: TransactionType, features: Array> | Feature): Promise; 34 | insertFeatures(features: Array> | Feature): Promise; 35 | /** 36 | * @public 37 | * @param featureId 38 | * @returns 39 | */ 40 | maybeLockFeature(featureId: string | number): Promise; 41 | /** 42 | * 43 | * @returns 44 | * @public 45 | */ 46 | getGeoserver(): Geoserver; 47 | /** 48 | * 49 | * @returns 50 | * @public 51 | */ 52 | getDescribeFeatureType(): IGeoserverDescribeFeatureType; 53 | } 54 | export declare enum BaseLayerProperty { 55 | NAME = "name", 56 | LABEL = "label", 57 | DESCRIBEFEATURETYPE = "describeFeatureType", 58 | ISVISIBLE = "isVisible", 59 | GEOSERVER = "geoserver" 60 | } 61 | export type BaseLayerEventTypes = 'layerRendered' | `change:${BaseLayerProperty.DESCRIBEFEATURETYPE}` | `change:${BaseLayerProperty.ISVISIBLE}`; 62 | //# sourceMappingURL=BaseLayer.d.ts.map -------------------------------------------------------------------------------- /dist/modules/base/BaseLayer.d.ts.map: -------------------------------------------------------------------------------- 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;;OAEG;IACH,KAAK,IAAI,IAAI;IAYb;;;;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,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAYnE;;;;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"} -------------------------------------------------------------------------------- /dist/modules/base/WfsSource.d.ts: -------------------------------------------------------------------------------- 1 | import Feature from 'ol/Feature.js'; 2 | import VectorSource, { Options as VSOptions } from 'ol/source/Vector.js'; 3 | import { WfsGeoserverVendor } from '../../@types'; 4 | import { GeoServerAdvanced } from '../../Geoserver'; 5 | /** 6 | * Layer source to retrieve WFS features from geoservers 7 | * https://docs.geoserver.org/stable/en/user/services/wfs/reference.html 8 | * 9 | * @extends {ol/source/Vector~VectorSource} 10 | * @param options 11 | */ 12 | export default class WfsSource extends VectorSource { 13 | urlParams: URLSearchParams; 14 | constructor(options: WfsSourceOptions); 15 | } 16 | /** 17 | * **_[interface]_** - Parameters to create a WfsSource 18 | * 19 | * @public 20 | */ 21 | export interface WfsSourceOptions extends VSOptions { 22 | /** 23 | * Layer name in the GeoServer 24 | */ 25 | name: string; 26 | /** 27 | * Url for OWS services. This endpoint will recive the WFS, WFST and WMS requests 28 | */ 29 | geoserverUrl: string; 30 | /** 31 | * Advanced options for geoserver requests 32 | */ 33 | geoServerAdvanced?: GeoServerAdvanced; 34 | /** 35 | * 36 | */ 37 | geoserverVendor?: WfsGeoserverVendor; 38 | /** 39 | * Url headers for GeoServer requests. You can use it to add Authorization credentials 40 | * https://developer.mozilla.org/en-US/docs/Web/API/Request/headers 41 | */ 42 | headers?: HeadersInit; 43 | /** 44 | * Credentials for fetch requests 45 | * https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials 46 | */ 47 | credentials?: RequestCredentials; 48 | } 49 | //# sourceMappingURL=WfsSource.d.ts.map -------------------------------------------------------------------------------- /dist/modules/base/WfsSource.d.ts.map: -------------------------------------------------------------------------------- 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;CAoFxC;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"} -------------------------------------------------------------------------------- /dist/modules/base/WmsSource.d.ts: -------------------------------------------------------------------------------- 1 | import TileWMS, { Options as TSOptions } from 'ol/source/TileWMS.js'; 2 | import { WmsGeoserverVendor } from '../../@types'; 3 | import { GeoServerAdvanced } from '../../Geoserver'; 4 | /** 5 | * Layer source to retrieve WMS information from geoservers 6 | * https://docs.geoserver.org/stable/en/user/services/wms/reference.html 7 | * 8 | * @extends {ol/source/TieWMS~TileWMS} 9 | * @param options 10 | */ 11 | export default class WmsSource extends TileWMS { 12 | constructor(options: WmsSourceOptions); 13 | } 14 | /** 15 | * **_[interface]_** - Parameters to create a WmsSource 16 | * 17 | * @public 18 | */ 19 | export interface WmsSourceOptions extends Omit { 20 | /** 21 | * Layer name in the GeoServer 22 | */ 23 | name: string; 24 | /** 25 | * Url for OWS services. This endpoint will recive the WFS, WFST and WMS requests 26 | */ 27 | geoserverUrl: string; 28 | /** 29 | * Advanced options for geoserver requests 30 | */ 31 | geoServerAdvanced?: GeoServerAdvanced; 32 | /** 33 | * 34 | */ 35 | geoserverVendor?: WmsGeoserverVendor; 36 | /** 37 | * Url headers for GeoServer requests. You can use it to add Authorization credentials 38 | * https://developer.mozilla.org/en-US/docs/Web/API/Request/headers 39 | */ 40 | headers?: HeadersInit; 41 | /** 42 | * Credentials for fetch requests 43 | * https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials 44 | */ 45 | credentials?: RequestCredentials; 46 | } 47 | //# sourceMappingURL=WmsSource.d.ts.map -------------------------------------------------------------------------------- /dist/modules/base/WmsSource.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"WmsSource.d.ts","sourceRoot":"","sources":["../../../src/modules/base/WmsSource.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,OAAO;gBAC9B,OAAO,EAAE,gBAAgB;CAmDxC;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC;IAC/D;;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"} -------------------------------------------------------------------------------- /dist/modules/editLayer.d.ts: -------------------------------------------------------------------------------- 1 | import VectorLayer from 'ol/layer/Vector.js'; 2 | import VectorSource from 'ol/source/Vector.js'; 3 | export declare const getEditLayer: () => VectorLayer; 4 | //# sourceMappingURL=editLayer.d.ts.map -------------------------------------------------------------------------------- /dist/modules/editLayer.d.ts.map: -------------------------------------------------------------------------------- 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,YAAY,YAAY,CAEvD,CAAC"} -------------------------------------------------------------------------------- /dist/modules/errors.d.ts: -------------------------------------------------------------------------------- 1 | import { Options } from '../ol-wfst'; 2 | import { IGeoserverDescribeFeatureType } from '../@types'; 3 | export declare const initModal: (opts: Options['modal']) => void; 4 | export declare const parseError: (geoserverResponse: IGeoserverDescribeFeatureType) => string; 5 | /** 6 | * Show modal with errors 7 | * 8 | * @param msg 9 | * @private 10 | */ 11 | export declare const showError: (msg: string, originalError?: Error, layerName?: string) => void; 12 | //# sourceMappingURL=errors.d.ts.map -------------------------------------------------------------------------------- /dist/modules/errors.d.ts.map: -------------------------------------------------------------------------------- 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,SAAU,OAAO,CAAC,OAAO,CAAC,SAE/C,CAAC;AAEF,eAAO,MAAM,UAAU,sBACA,6BAA6B,WASnD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,QACb,MAAM,kBACI,KAAK,yBAErB,IAoBF,CAAC"} -------------------------------------------------------------------------------- /dist/modules/helpers.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @param target 3 | * @param sources 4 | * @returns 5 | */ 6 | export declare const deepObjectAssign: (target: any, ...sources: any[]) => any; 7 | //# sourceMappingURL=helpers.d.ts.map -------------------------------------------------------------------------------- /dist/modules/helpers.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/modules/helpers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,yCAgB5B,CAAC"} -------------------------------------------------------------------------------- /dist/modules/i18n/en.d.ts: -------------------------------------------------------------------------------- 1 | import { I18n } from '../../ol-wfst'; 2 | export declare const en: I18n; 3 | //# sourceMappingURL=en.d.ts.map -------------------------------------------------------------------------------- /dist/modules/i18n/en.d.ts.map: -------------------------------------------------------------------------------- 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,IAsChB,CAAC"} -------------------------------------------------------------------------------- /dist/modules/i18n/es.d.ts: -------------------------------------------------------------------------------- 1 | import { I18n } from '../../ol-wfst'; 2 | export declare const es: I18n; 3 | //# sourceMappingURL=es.d.ts.map -------------------------------------------------------------------------------- /dist/modules/i18n/es.d.ts.map: -------------------------------------------------------------------------------- 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,IAuChB,CAAC"} -------------------------------------------------------------------------------- /dist/modules/i18n/index.d.ts: -------------------------------------------------------------------------------- 1 | import { I18n } from '../../@types'; 2 | export * from './es'; 3 | export * from './en'; 4 | export * from './zh'; 5 | export declare let I18N: I18n; 6 | export declare const setLang: (lang?: string, customI18n?: I18n) => void; 7 | /** 8 | * /** 9 | * For translations thas has a variable "{}"" to be replaced inside 10 | * @param string 11 | * @param args 12 | * @returns 13 | */ 14 | export declare const I18N_: (string: string, ...args: any) => string; 15 | //# sourceMappingURL=index.d.ts.map -------------------------------------------------------------------------------- /dist/modules/i18n/index.d.ts.map: -------------------------------------------------------------------------------- 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,+BAA6B,IAAI,KAAU,IAU9D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,WAAY,MAAM,WAAW,GAAG,KAAG,MAepD,CAAC"} -------------------------------------------------------------------------------- /dist/modules/i18n/zh.d.ts: -------------------------------------------------------------------------------- 1 | import { I18n } from '../../ol-wfst'; 2 | export declare const zh: I18n; 3 | //# sourceMappingURL=zh.d.ts.map -------------------------------------------------------------------------------- /dist/modules/i18n/zh.d.ts.map: -------------------------------------------------------------------------------- 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,IAsChB,CAAC"} -------------------------------------------------------------------------------- /dist/modules/loading.d.ts: -------------------------------------------------------------------------------- 1 | export declare const initLoading: () => HTMLDivElement; 2 | export declare const showLoading: (bool?: boolean) => void; 3 | //# sourceMappingURL=loading.d.ts.map -------------------------------------------------------------------------------- /dist/modules/loading.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"loading.d.ts","sourceRoot":"","sources":["../../src/modules/loading.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,QAAO,cAK9B,CAAC;AAEF,eAAO,MAAM,WAAW,UAAU,OAAO,SAMxC,CAAC"} -------------------------------------------------------------------------------- /dist/modules/state.d.ts: -------------------------------------------------------------------------------- 1 | import Map from 'ol/Map.js'; 2 | import { FeatureLike } from 'ol/Feature.js'; 3 | import WfsLayer from '../WfsLayer'; 4 | import WmsLayer from '../WmsLayer'; 5 | import { IWfstLayersList } from '../@types'; 6 | export declare enum Modes { 7 | Edit = "EDIT", 8 | Draw = "DRAW" 9 | } 10 | export declare function activateMode(m?: Modes): void; 11 | export declare function getMode(): any; 12 | export declare function setMap(m: Map): void; 13 | export declare function getMap(): Map; 14 | export declare function setActiveLayerToInsertEls(layer: WmsLayer | WfsLayer): void; 15 | export declare function getActiveLayerToInsertEls(): WmsLayer | WfsLayer; 16 | export declare function setMapLayers(data: any): void; 17 | export declare function getStoredMapLayers(): IWfstLayersList; 18 | export declare function getStoredLayer(layerName: string): WfsLayer | WmsLayer; 19 | export declare function addFeatureToEditedList(feature: FeatureLike): void; 20 | export declare function removeFeatureFromEditList(feature: FeatureLike): void; 21 | export declare function isFeatureEdited(feature: FeatureLike): boolean; 22 | //# sourceMappingURL=state.d.ts.map -------------------------------------------------------------------------------- /dist/modules/state.d.ts.map: -------------------------------------------------------------------------------- 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;CAChB;AAED,wBAAgB,YAAY,CAAC,CAAC,GAAE,KAAY,QAE3C;AAED,wBAAgB,OAAO,QAEtB;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"} -------------------------------------------------------------------------------- /dist/modules/styleFunction.d.ts: -------------------------------------------------------------------------------- 1 | import { Geometry } from 'ol/geom.js'; 2 | import { Style } from 'ol/style.js'; 3 | import Feature from 'ol/Feature.js'; 4 | /** 5 | * Master style that handles two modes on the Edit Layer: 6 | * - one is the basic, showing only the vertices 7 | * - and the other when modify is active, showing bigger vertices 8 | * 9 | * @param feature 10 | * @private 11 | */ 12 | export default function styleFunction(feature: Feature): Array 49 | 50 | 51 | 52 |
53 | 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /examples/reset.css: -------------------------------------------------------------------------------- 1 | /* http://meyerweb.com/eric/tools/css/reset/ 2 | v2.0 | 20110126 3 | License: none (public domain) 4 | */ 5 | 6 | html, body, div, span, applet, object, iframe, 7 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 8 | a, abbr, acronym, address, big, cite, code, 9 | del, dfn, em, img, ins, kbd, q, s, samp, 10 | small, strike, strong, sub, sup, tt, var, 11 | b, u, i, center, 12 | dl, dt, dd, ol, ul, li, 13 | fieldset, form, label, legend, 14 | table, caption, tbody, tfoot, thead, tr, th, td, 15 | article, aside, canvas, details, embed, 16 | figure, figcaption, footer, header, hgroup, 17 | menu, nav, output, ruby, section, summary, 18 | time, mark, audio, video { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | font-size: 100%; 23 | font: inherit; 24 | vertical-align: baseline; 25 | } 26 | html, 27 | body { 28 | height: 100%; 29 | padding: 0; 30 | margin: 0; 31 | font-family: sans-serif; 32 | } 33 | body { 34 | margin: 0; 35 | font-size: 1rem; 36 | font-weight: 400; 37 | line-height: 1.5; 38 | color: #212529; 39 | background-color: #fff; 40 | -webkit-text-size-adjust: 100%; 41 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); 42 | } 43 | 44 | /* HTML5 display-role reset for older browsers */ 45 | article, aside, details, figcaption, figure, 46 | footer, header, hgroup, menu, nav, section { 47 | display: block; 48 | } 49 | body { 50 | line-height: 1; 51 | } 52 | ol, ul { 53 | list-style: none; 54 | } 55 | blockquote, q { 56 | quotes: none; 57 | } 58 | blockquote:before, blockquote:after, 59 | q:before, q:after { 60 | content: ''; 61 | content: none; 62 | } 63 | table { 64 | border-collapse: collapse; 65 | border-spacing: 0; 66 | } 67 | 68 | *, *::before, *::after { 69 | box-sizing: border-box; 70 | } 71 | -------------------------------------------------------------------------------- /lib/@enums.d.ts: -------------------------------------------------------------------------------- 1 | export declare enum GeometryType { 2 | Point = "Point", 3 | LineString = "LineString", 4 | LinearRing = "LinearRing", 5 | Polygon = "Polygon", 6 | MultiPoint = "MultiPoint", 7 | MultiLineString = "MultiLineString", 8 | MultiPolygon = "MultiPolygon", 9 | GeometryCollection = "GeometryCollection", 10 | Circle = "Circle" 11 | } 12 | export declare enum TransactionType { 13 | Insert = "insert", 14 | Delete = "delete", 15 | Update = "update" 16 | } 17 | //# sourceMappingURL=@enums.d.ts.map -------------------------------------------------------------------------------- /lib/@enums.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"@enums.d.ts","sourceRoot":"","sources":["../src/@enums.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACpB,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,eAAe,oBAAoB;IACnC,YAAY,iBAAiB;IAC7B,kBAAkB,uBAAuB;IACzC,MAAM,WAAW;CACpB;AAED,oBAAY,eAAe;IACvB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;CACpB"} -------------------------------------------------------------------------------- /lib/@types.d.ts: -------------------------------------------------------------------------------- 1 | import { GeometryType } from './@enums'; 2 | import WfsLayer from './WfsLayer'; 3 | import WmsLayer from './WmsLayer'; 4 | /** 5 | * @public 6 | */ 7 | export interface BaseGeoserverVendor { 8 | /** 9 | * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#cql-filter 10 | */ 11 | cql_filter?: string; 12 | /** 13 | * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#sortBy 14 | */ 15 | sortBy?: string; 16 | /** 17 | * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#featureid 18 | */ 19 | featureid?: string; 20 | /** 21 | * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#filter 22 | */ 23 | filter?: string; 24 | /** 25 | * WMS: https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#format-options 26 | * WFS: https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html#format-options 27 | */ 28 | format_options?: string; 29 | /** 30 | * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#maxfeatures-and-startindex 31 | */ 32 | maxFeatures?: string | number; 33 | /** 34 | * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#maxfeatures-and-startindex 35 | */ 36 | startIndex?: string | number; 37 | /** 38 | * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#propertyname 39 | */ 40 | propertyname?: string; 41 | /** 42 | * Add any other param 43 | */ 44 | [key: string]: any; 45 | } 46 | /** 47 | * **_[interface]_** - WFS geoserver options 48 | * https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html 49 | * @public 50 | * 51 | */ 52 | export interface WfsGeoserverVendor extends BaseGeoserverVendor { 53 | /** 54 | * https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html#xml-request-validation 55 | */ 56 | strict?: boolean; 57 | } 58 | /** 59 | * **_[interface]_** - WMS geoserver options 60 | * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html 61 | * @public 62 | */ 63 | export interface WmsGeoserverVendor extends BaseGeoserverVendor { 64 | /** 65 | * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#buffer 66 | */ 67 | buffer?: string | number; 68 | /** 69 | * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#env 70 | */ 71 | env?: string; 72 | /** 73 | * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#clip 74 | */ 75 | clip?: string; 76 | /** 77 | * Styles in which layers are to be rendered. 78 | * Value is a comma-separated list of style names, or empty if default styling is required. 79 | * Style names may be empty in the list, to use default layer styling. 80 | */ 81 | styles?: string; 82 | /** 83 | * Whether the map background should be transparent. Values are true or false. Default is false 84 | */ 85 | transparent?: boolean; 86 | /** 87 | * Background color for the map image. Value is in the form RRGGBB. Default is FFFFFF (white). 88 | */ 89 | bgcolor?: string; 90 | /** 91 | * Time value or range for map data. 92 | * See [Time Support in GeoServer WMS](https://docs.geoserver.org/stable/en/user/services/wms/time.html#wms-time) for more information. 93 | */ 94 | time?: string; 95 | /** 96 | * A URL referencing a [StyledLayerDescriptor](https://docs.geoserver.org/stable/en/user/styling/index.html#styling) 97 | * XML file which controls or enhances map layers and styling 98 | */ 99 | sld?: string; 100 | /** 101 | * A URL-encoded StyledLayerDescriptor XML document which controls or enhances map layers and styling 102 | */ 103 | sld_body?: string; 104 | } 105 | export interface ExceptionGeoserver { 106 | code: string; 107 | locator: string; 108 | text: string; 109 | } 110 | /** 111 | * **_[interface]_** - Geoserver original layer properties response on DescribeFeature request 112 | * @public 113 | */ 114 | export interface IProperty { 115 | name: string; 116 | nillable: boolean; 117 | maxOccurs: number; 118 | minOccurs: number; 119 | type: string; 120 | localType: string; 121 | } 122 | /** 123 | * **_[interface]_** - Geoserver original response on DescribeFeature request 124 | * @public 125 | */ 126 | export interface IGeoserverDescribeFeatureType { 127 | exceptions?: ExceptionGeoserver[]; 128 | elementFormDefault: string; 129 | targetNamespace: string; 130 | targetPrefix: string; 131 | featureTypes: Array<{ 132 | typeName: string; 133 | properties: Array; 134 | }>; 135 | /** 136 | * DescribeFeature request parsed 137 | */ 138 | _parsed: { 139 | namespace: string; 140 | properties: Array; 141 | geomType: GeometryType; 142 | geomField: string; 143 | }; 144 | } 145 | /** 146 | * **_[interface]_** 147 | * @private 148 | */ 149 | export interface IWfstLayersList { 150 | [key: string]: WfsLayer | WmsLayer; 151 | } 152 | /** 153 | * **_[interface]_** 154 | * @private 155 | */ 156 | export interface IGeoserverOptions { 157 | hasTransaction?: boolean; 158 | hasLockFeature?: boolean; 159 | useLockFeature?: boolean; 160 | } 161 | /** 162 | * **_[interface]_** - Custom Language specified when creating a WFST instance 163 | * @public 164 | */ 165 | export interface I18n { 166 | /** Labels section */ 167 | labels?: { 168 | select?: string; 169 | addElement?: string; 170 | editElement?: string; 171 | save?: string; 172 | delete?: string; 173 | cancel?: string; 174 | apply?: string; 175 | upload?: string; 176 | editMode?: string; 177 | confirmDelete?: string; 178 | geomTypeNotSupported?: string; 179 | editFields?: string; 180 | editGeom?: string; 181 | selectDrawType?: string; 182 | uploadToLayer?: string; 183 | uploadFeatures?: string; 184 | validFeatures?: string; 185 | invalidFeatures?: string; 186 | loading?: string; 187 | toggleVisibility?: string; 188 | close?: string; 189 | }; 190 | /** Errors section */ 191 | errors?: { 192 | capabilities?: string; 193 | wfst?: string; 194 | layer?: string; 195 | layerNotFound?: string; 196 | layerNotVisible?: string; 197 | noValidGeometry?: string; 198 | geoserver?: string; 199 | badFormat?: string; 200 | badFile?: string; 201 | lockFeature?: string; 202 | transaction?: string; 203 | getFeatures?: string; 204 | }; 205 | } 206 | //# sourceMappingURL=@types.d.ts.map -------------------------------------------------------------------------------- /lib/@types.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"@types.d.ts","sourceRoot":"","sources":["../src/@types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE9B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE7B;;OAEG;IACH,YAAY,CAAC,EAAE,MA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AAa,CAAC,EAAE,MAAM,CAAC;QACvB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,qBAAqB;IACrB,MAAM,CAAC,EAAE;QACL,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;CACL"} -------------------------------------------------------------------------------- /lib/Geoserver.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"Geoserver.d.ts","sourceRoot":"","sources":["../src/Geoserver.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,KAAK,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAElE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,kBAAkB,MAAM,+BAA+B,CAAC;AAC/D,OAAO,OAAO,MAAM,eAAe,CAAC;AAEpC,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAC3C,OAAO,GAAG,MAAM,kBAAkB,CAAC;AACnC,OAAO,GAAG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AAC,EAAE,MAAM,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,iBAAiB,CAAC,EAAE;QAEhB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAGzB,MAAM,CAAC,EAAE,MAAM,CAAC;QAGhB,aAAa,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC;CACL;AAED,oBAAY,iBAAiB;IACzB,YAAY,iBAAiB;IAC7B,mBAAmB,uBAAuB;IAC1C,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,sBAAsB,2BAA2B;IACjD,cAAc,mBAAmB;IACjC,QAAQ,aAAa;CACxB;AAED,MAAM,MAAM,mBAAmB,GACzB,UAAU,iBAAiB,CAAC,YAAY,EAAE,GAC1C,UAAU,iBAAiB,CAAC,mBAAmB,EAAE,GACjD,UAAU,iBAAiB,CAAC,GAAG,EAAE,GACjC,UAAU,iBAAiB,CAAC,OAAO,EAAE,GACrC,UAAU,iBAAiB,CAAC,WAAW,EAAE,GACzC,UAAU,iBAAiB,CAAC,QAAQ,EAAE,GACtC,UAAU,iBAAiB,CAAC,cAAc,EAAE,GAC5C,UAAU,iBAAiB,CAAC,cAAc,EAAE,GAC5C,UAAU,iBAAiB,CAAC,sBAAsB,EAAE,GACpD,UAAU,iBAAiB,CAAC,cAAc,EAAE,GAC5C,UAAU,iBAAiB,CAAC,QAAQ,EAAE,CAAC"} -------------------------------------------------------------------------------- /lib/WfsLayer.d.ts: -------------------------------------------------------------------------------- 1 | import VectorLayer from 'ol/layer/Vector.js'; 2 | import BaseEvent from 'ol/events/Event.js'; 3 | import { CombinedOnSignature, EventTypes, OnSignature } from 'ol/Observable.js'; 4 | import { EventsKey } from 'ol/events.js'; 5 | import { LayerRenderEventTypes } from 'ol/render/EventType.js'; 6 | import { BaseLayerObjectEventTypes } from 'ol/layer/Base.js'; 7 | import { ObjectEvent } from 'ol/Object.js'; 8 | import RenderEvent from 'ol/render/Event.js'; 9 | import BaseLayer, { BaseLayerEventTypes } from './modules/base/BaseLayer'; 10 | import WfsSource from './modules/base/WfsSource'; 11 | import { LayerOptions } from './ol-wfst'; 12 | declare const WfsLayer_base: import("ts-mixer/dist/types/types").Class, typeof BaseLayer & { 13 | new (options?: import("ol/layer/BaseVector").Options): VectorLayer; 14 | }>; 15 | /** 16 | * Layer to retrieve WFS features from geoservers 17 | * https://docs.geoserver.org/stable/en/user/services/wfs/reference.html 18 | * 19 | * @fires layerRendered 20 | * @extends {ol/layer/Vector~VectorLayer} 21 | * @param options 22 | */ 23 | export default class WfsLayer extends WfsLayer_base { 24 | private _loadingCount; 25 | private _loadedCount; 26 | beforeTransactFeature: LayerOptions['beforeTransactFeature']; 27 | beforeShowFieldsModal: LayerOptions['beforeShowFieldsModal']; 28 | on: OnSignature & OnSignature & OnSignature & CombinedOnSignature; 29 | once: OnSignature & OnSignature & OnSignature & CombinedOnSignature; 30 | un: OnSignature & OnSignature & OnSignature & CombinedOnSignature; 31 | constructor(options: LayerOptions); 32 | /** 33 | * @public 34 | */ 35 | refresh(): void; 36 | /** 37 | * Use this to update Geoserver Wms Vendors (https://docs.geoserver.org/latest/en/user/services/wms/vendor.html) 38 | * and other arguements (https://docs.geoserver.org/stable/en/user/services/wms/reference.html#getmap) 39 | * in all the getMap requests. 40 | * 41 | * Example: you can use this to change the style of the WMS, add a custom sld, set a cql_filter, etc. 42 | * 43 | * @public 44 | * @param paramName 45 | * @param value Use `undefined` or `null` to remove the param 46 | * @param refresh 47 | */ 48 | setCustomParam(paramName: string, value?: string, refresh?: boolean): URLSearchParams; 49 | } 50 | export {}; 51 | //# sourceMappingURL=WfsLayer.d.ts.map -------------------------------------------------------------------------------- /lib/WfsLayer.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"WfsLayer.d.ts","sourceRoot":"","sources":["../src/WfsLayer.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAI7C,OAAO,SAAS,EAAE,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;;;;AAIzC;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,aAAwC;IAC1E,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,YAAY,CAAK;IAElB,qBAAqB,EAAE,YAAY,CAAC,uBAAuB,CAAC,CAAC;IAC7D,qBAAqB,EAAE,YAAY,CAAC,uBAAuB,CAAC,CAAC;IAE5D,EAAE,EAAE,WAAW,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC,GACrD,WAAW,CACL,mBAAmB,GACnB,yBAAyB,GACzB,eAAe,GACf,aAAa,EACf,WAAW,EACX,SAAS,CACZ,GACD,WAAW,CAAC,qBAAqB,EAAE,WAAW,EAAE,SAAS,CAAC,GAC1D,mBAAmB,CACb,UAAU,GACV,mBAAmB,GACnB,yBAAyB,GACzB,eAAe,GACf,aAAa,GACb,qBAAqB,EACvB,SAAS,CACZ,CAAC;IAEE,IAAI,EAAE,WAAW,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC,GACvD,WAAW,CACL,mBAAmB,GACnB,yBAAyB,GACzB,eAAe,GACf,aAAa,EACf,WAAW,EACX,SAAS,CACZ,GACD,WAAW,CAAC,qBAAqB,EAAE,WAAW,EAAE,SAAS,CAAC,GAC1D,mBAAmB,CACb,UAAU,GACV,mBAAmB,GACnB,yBAAyB,GACzB,eAAe,GACf,aAAa,GACb,qBAAqB,EACvB,SAAS,CACZ,CAAC;IAEE,EAAE,EAAE,WAAW,CAAC,UAAU,EAAE,SAAS,EAAE,IAAI,CAAC,GAChD,WAAW,CACL,mBAAmB,GACnB,yBAAyB,GACzB,eAAe,GACf,aAAa,EACf,WAAW,EACX,IAAI,CACP,GACD,WAAW,CAAC,qBAAqB,EAAE,WAAW,EAAE,IAAI,CAAC,GACrD,mBAAmB,CACb,UAAU,GACV,mBAAmB,GACnB,yBAAyB,GACzB,eAAe,GACf,aAAa,GACb,qBAAqB,EACvB,IAAI,CACP,CAAC;gBAEM,OAAO,EAAE,YAAY;IAsDjC;;OAEG;IACH,OAAO;IAMP;;;;;;;;;;;OAWG;IACH,cAAc,CACV,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,MAAa,EACpB,OAAO,UAAO,GACf,eAAe;CAerB"} -------------------------------------------------------------------------------- /lib/WmsLayer.d.ts: -------------------------------------------------------------------------------- 1 | import MapBrowserEvent from 'ol/MapBrowserEvent.js'; 2 | import TileLayer from 'ol/layer/Tile.js'; 3 | import Geometry from 'ol/geom/Geometry.js'; 4 | import Feature from 'ol/Feature.js'; 5 | import BaseEvent from 'ol/events/Event.js'; 6 | import { CombinedOnSignature, EventTypes, OnSignature } from 'ol/Observable.js'; 7 | import { EventsKey } from 'ol/events.js'; 8 | import { LayerRenderEventTypes } from 'ol/render/EventType.js'; 9 | import { BaseLayerObjectEventTypes } from 'ol/layer/Base.js'; 10 | import { ObjectEvent } from 'ol/Object.js'; 11 | import RenderEvent from 'ol/render/Event.js'; 12 | import WmsSource from './modules/base/WmsSource'; 13 | import BaseLayer, { BaseLayerEventTypes } from './modules/base/BaseLayer'; 14 | import { LayerOptions } from './ol-wfst'; 15 | declare const WmsLayer_base: import("ts-mixer/dist/types/types").Class, typeof BaseLayer & { 16 | new (options?: import("ol/layer/BaseTile").Options): TileLayer; 17 | }>; 18 | /** 19 | * Layer to retrieve WMS information from geoservers 20 | * https://docs.geoserver.org/stable/en/user/services/wms/reference.html 21 | * 22 | * @fires layerRendered 23 | * @extends {ol/layer/Tile~TileLayer} 24 | * @param options 25 | */ 26 | export default class WmsLayer extends WmsLayer_base { 27 | private _loadingCount; 28 | private _loadedCount; 29 | beforeTransactFeature: LayerOptions['beforeTransactFeature']; 30 | beforeShowFieldsModal: LayerOptions['beforeShowFieldsModal']; 31 | private _formatGeoJSON; 32 | on: OnSignature & OnSignature & OnSignature & CombinedOnSignature; 33 | once: OnSignature & OnSignature & OnSignature & CombinedOnSignature; 34 | un: OnSignature & OnSignature & OnSignature & CombinedOnSignature; 35 | constructor(options: LayerOptions); 36 | /** 37 | * Get the features on the click area 38 | * @param evt 39 | * @returns 40 | * @private 41 | */ 42 | _getFeaturesByClickEvent(evt: MapBrowserEvent): Promise[]>; 43 | private _parseFeaturesFromResponse; 44 | /** 45 | * Return the full accuracy geometry to replace the feature from GetFEatureInfo 46 | * @param featuresId 47 | * @returns 48 | */ 49 | private _getFullResGeometryById; 50 | /** 51 | * @public 52 | */ 53 | refresh(): void; 54 | /** 55 | * Use this to update Geoserver Wfs Vendors (https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html) 56 | * and other arguements (https://docs.geoserver.org/stable/en/user/services/wfs/reference.html) 57 | * in all the getFeature requests. 58 | * 59 | * Example: you can use this to set a cql_filter, limit the numbers of features, etc. 60 | * 61 | * @public 62 | * @param paramName 63 | * @param value 64 | * @param refresh 65 | */ 66 | setCustomParam(paramName: string, value?: string, refresh?: boolean): URLSearchParams; 67 | } 68 | export {}; 69 | //# sourceMappingURL=WmsLayer.d.ts.map -------------------------------------------------------------------------------- /lib/WmsLayer.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"WmsLayer.d.ts","sourceRoot":"","sources":["../src/WmsLayer.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,uBAAuB,CAAC;AACpD,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,OAAO,MAAM,eAAe,CAAC;AAEpC,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAI7C,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,SAAS,EAAE,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;;;;AAOzC;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,aAAsC;IACxE,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,YAAY,CAAK;IAElB,qBAAqB,EAAE,YAAY,CAAC,uBAAuB,CAAC,CAAC;IAC7D,qBAAqB,EAAE,YAAY,CAAC,uBAAuB,CAAC,CAAC;IAGpE,OAAO,CAAC,cAAc,CAAU;IAExB,EAAE,EAAE,WAAW,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC,GACrD,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C;IAkE/B,OAAO,CAAC,0BAA0B;IAIlC;;;;OAIG;IACH,OAAO,CAAC,uBAAuB,CAqC7B;IAEF;;OAEG;IACH,OAAO;IAYP;;;;;;;;;;;OAWG;IACH,cAAc,CACV,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,MAAa,EACpB,OAAO,UAAO,GACf,eAAe;CAarB"} -------------------------------------------------------------------------------- /lib/defaults.d.ts: -------------------------------------------------------------------------------- 1 | import { Options } from './ol-wfst'; 2 | export declare const DEFAULT_LANGUAGE = "en"; 3 | export declare const getDefaultOptions: () => Options; 4 | //# sourceMappingURL=defaults.d.ts.map -------------------------------------------------------------------------------- /lib/defaults.d.ts.map: -------------------------------------------------------------------------------- 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,OAoBpC,CAAC"} -------------------------------------------------------------------------------- /lib/index-umd.d.ts: -------------------------------------------------------------------------------- 1 | import Wfst from './ol-wfst'; 2 | export default Wfst; 3 | //# sourceMappingURL=index-umd.d.ts.map -------------------------------------------------------------------------------- /lib/index-umd.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index-umd.d.ts","sourceRoot":"","sources":["../src/index-umd.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAY7B,eAAe,IAAI,CAAC"} -------------------------------------------------------------------------------- /lib/modules/EditControlChanges.d.ts: -------------------------------------------------------------------------------- 1 | import Feature from 'ol/Feature.js'; 2 | import Geometry from 'ol/geom/Geometry.js'; 3 | import Control from 'ol/control/Control.js'; 4 | import { VectorSourceEvent } from 'ol/source/Vector.js'; 5 | import { CombinedOnSignature, EventTypes, OnSignature } from 'ol/Observable.js'; 6 | import BaseEvent from 'ol/events/Event.js'; 7 | import { EventsKey } from 'ol/events.js'; 8 | import { ObjectEvent } from 'ol/Object.js'; 9 | import { Types as ObjectEventTypes } from 'ol/ObjectEventType.js'; 10 | type ChangesEventTypes = 'cancel' | 'apply' | 'delete'; 11 | export default class EditControlChangesEl extends Control { 12 | on: OnSignature & OnSignature & OnSignature & CombinedOnSignature; 13 | once: OnSignature & OnSignature & OnSignature & CombinedOnSignature; 14 | un: OnSignature & OnSignature & OnSignature & CombinedOnSignature; 15 | constructor(feature: Feature); 16 | } 17 | export {}; 18 | //# sourceMappingURL=EditControlChanges.d.ts.map -------------------------------------------------------------------------------- /lib/modules/EditControlChanges.d.ts.map: -------------------------------------------------------------------------------- 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;AAMlE,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,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC;CA+CzC"} -------------------------------------------------------------------------------- /lib/modules/EditFieldsModal.d.ts: -------------------------------------------------------------------------------- 1 | import Observable from 'ol/Observable.js'; 2 | import Feature from 'ol/Feature.js'; 3 | import Geometry from 'ol/geom/Geometry.js'; 4 | import Modal from 'modal-vanilla'; 5 | import { Options } from '../ol-wfst'; 6 | /** 7 | * Shows a fields form in a modal window to allow changes in the properties of the feature. 8 | * 9 | * @param feature 10 | * @private 11 | */ 12 | export declare class EditFieldsModal extends Observable { 13 | protected _options: Options; 14 | protected _modal: Modal; 15 | protected _feature: Feature; 16 | constructor(options: Options); 17 | show(feature: Feature): void; 18 | } 19 | //# sourceMappingURL=EditFieldsModal.d.ts.map -------------------------------------------------------------------------------- /lib/modules/EditFieldsModal.d.ts.map: -------------------------------------------------------------------------------- 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;AAI3C,OAAO,KAAK,MAAM,eAAe,CAAC;AAGlC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAKrC;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,UAAU;IAC3C,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC;IACxB,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC;gBAEhB,OAAO,EAAE,OAAO;IAiE5B,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC;CA2FlC"} -------------------------------------------------------------------------------- /lib/modules/EditOverlay.d.ts: -------------------------------------------------------------------------------- 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 | export default class EditOverlay extends Overlay { 6 | constructor(feature: Feature, coordinate?: Coordinate); 7 | } 8 | //# sourceMappingURL=EditOverlay.d.ts.map -------------------------------------------------------------------------------- /lib/modules/EditOverlay.d.ts.map: -------------------------------------------------------------------------------- 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;AAS9C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,OAAO;gBAChC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAE,UAAiB;CAgDxE"} -------------------------------------------------------------------------------- /lib/modules/LayersControl.d.ts: -------------------------------------------------------------------------------- 1 | import Observable from 'ol/Observable.js'; 2 | import { Options, WfsLayer, WmsLayer } from '../ol-wfst'; 3 | import Uploads from './Uploads'; 4 | /** 5 | * Removes in the DOM the class of the tools 6 | * @private 7 | */ 8 | export declare const resetStateButtons: () => void; 9 | export declare const activateModeButtons: () => void; 10 | export declare const activateDrawButton: () => void; 11 | export default class LayersControl extends Observable { 12 | protected _uploads: Uploads; 13 | protected _uploadFormats: Options['uploadFormats']; 14 | constructor(uploads: Uploads, uploadFormats: Options['uploadFormats']); 15 | /** 16 | * 17 | * @param layer 18 | * @public 19 | */ 20 | addLayerEl(layer: WfsLayer | WmsLayer): HTMLElement; 21 | /** 22 | * Update geom Types availibles to select for this layer 23 | * 24 | * @param layerName 25 | * @param geomDrawTypeSelected 26 | * @private 27 | */ 28 | private _changeStateSelect; 29 | private _visibilityClickHandler; 30 | /** 31 | * Called when a layer is selected in the widget 32 | * @param evt 33 | * @param layer 34 | */ 35 | private _layerChangeHandler; 36 | render(): HTMLElement; 37 | } 38 | //# sourceMappingURL=LayersControl.d.ts.map -------------------------------------------------------------------------------- /lib/modules/LayersControl.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"LayersControl.d.ts","sourceRoot":"","sources":["../../src/modules/LayersControl.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAczD,OAAO,OAAO,MAAM,WAAW,CAAC;AAKhC;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAO,IAOpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAK/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAK9B,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;IAwEnD;;;;;;OAMG;IACH,OAAO,CAAC,kBAAkB;IAiE1B,OAAO,CAAC,uBAAuB;IAa/B;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAiB3B,MAAM,IAAI,WAAW;CAiExB"} -------------------------------------------------------------------------------- /lib/modules/Uploads.d.ts: -------------------------------------------------------------------------------- 1 | import { Geometry } from 'ol/geom.js'; 2 | import Feature from 'ol/Feature.js'; 3 | import Observable from 'ol/Observable.js'; 4 | import GeoJSON from 'ol/format/GeoJSON.js'; 5 | import KML from 'ol/format/KML.js'; 6 | import WFS from 'ol/format/WFS.js'; 7 | import { Options } from '../ol-wfst'; 8 | export default class Uploads extends Observable { 9 | protected _options: Options; 10 | protected _formatWFS: WFS; 11 | protected _formatGeoJSON: GeoJSON; 12 | protected _formatKml: KML; 13 | protected _xs: XMLSerializer; 14 | protected _processUpload: Options['processUpload']; 15 | constructor(options: Options); 16 | /** 17 | * Parse and check geometry of uploaded files 18 | * 19 | * @param evt 20 | * @public 21 | */ 22 | process(evt: Event): Promise; 23 | /** 24 | * Read data file 25 | * @param file 26 | * @public 27 | */ 28 | _fileReader(file: File): Promise; 29 | /** 30 | * Attemp to change the geometry feature to the layer 31 | * @param feature 32 | * @private 33 | */ 34 | _fixGeometry(feature: Feature): Feature; 35 | /** 36 | * Check if the feature has the same geometry as the target layer 37 | * @param feature 38 | * @private 39 | */ 40 | _checkGeometry(feature: Feature): boolean; 41 | /** 42 | * Confirm modal before transact to the GeoServer the features in the file 43 | * 44 | * @param content 45 | * @param featuresToInsert 46 | * @private 47 | */ 48 | _initModal(content: string, featuresToInsert: Array>): void; 49 | } 50 | //# sourceMappingURL=Uploads.d.ts.map -------------------------------------------------------------------------------- /lib/modules/Uploads.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"Uploads.d.ts","sourceRoot":"","sources":["../../src/modules/Uploads.ts"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,EAOX,MAAM,YAAY,CAAC;AACpB,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAC3C,OAAO,GAAG,MAAM,kBAAkB,CAAC;AACnC,OAAO,GAAG,MAAM,kBAAkB,CAAC;AAOnC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAQrC,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,UAAU;IAC3C,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC;IAG5B,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC;IAC1B,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC;IAClC,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC;IAC1B,SAAS,CAAC,GAAG,EAAE,aAAa,CAAC;IAE7B,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;gBAEvC,OAAO,EAAE,OAAO;IAkB5B;;;;;OAKG;IACG,OAAO,CAAC,GAAG,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAyFxC;;;;OAIG;IACG,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;IAiB9C;;;;OAIG;IACH,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC;IAgD3D;;;;OAIG;IACH,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO;IAenD;;;;;;OAMG;IACH,UAAU,CACN,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAC3C,IAAI;CAuCV"} -------------------------------------------------------------------------------- /lib/modules/base/BaseLayer.d.ts: -------------------------------------------------------------------------------- 1 | import Feature from 'ol/Feature.js'; 2 | import Geometry from 'ol/geom/Geometry.js'; 3 | import { TransactionResponse } from 'ol/format/WFS.js'; 4 | import Layer from 'ol/layer/Base.js'; 5 | import Geoserver from '../../Geoserver'; 6 | import { IGeoserverDescribeFeatureType } from '../../@types'; 7 | import { TransactionType } from '../../@enums'; 8 | /** 9 | * Base class from which all layer types are derived. 10 | */ 11 | export default class BaseLayer extends Layer { 12 | /** 13 | * @private 14 | */ 15 | _init(): void; 16 | /** 17 | * Request and store data layers obtained by DescribeFeatureType 18 | * 19 | * @public 20 | */ 21 | getAndUpdateDescribeFeatureType(): Promise; 22 | /** 23 | * @public 24 | * @returns 25 | */ 26 | isVisibleByZoom(): boolean; 27 | /** 28 | * 29 | * @param mode 30 | * @param features 31 | * @public 32 | */ 33 | transactFeatures(mode: TransactionType, features: Array> | Feature): Promise; 34 | insertFeatures(features: Array> | Feature): Promise; 35 | /** 36 | * @public 37 | * @param featureId 38 | * @returns 39 | */ 40 | maybeLockFeature(featureId: string | number): Promise; 41 | /** 42 | * 43 | * @returns 44 | * @public 45 | */ 46 | getGeoserver(): Geoserver; 47 | /** 48 | * 49 | * @returns 50 | * @public 51 | */ 52 | getDescribeFeatureType(): IGeoserverDescribeFeatureType; 53 | } 54 | export declare enum BaseLayerProperty { 55 | NAME = "name", 56 | LABEL = "label", 57 | DESCRIBEFEATURETYPE = "describeFeatureType", 58 | ISVISIBLE = "isVisible", 59 | GEOSERVER = "geoserver" 60 | } 61 | export type BaseLayerEventTypes = 'layerRendered' | `change:${BaseLayerProperty.DESCRIBEFEATURETYPE}` | `change:${BaseLayerProperty.ISVISIBLE}`; 62 | //# sourceMappingURL=BaseLayer.d.ts.map -------------------------------------------------------------------------------- /lib/modules/base/BaseLayer.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"BaseLayer.d.ts","sourceRoot":"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B,eAAe,GACf,UAAU,iBAAiB,CAAC,mBAAmB,EAAE,GACjD,UAAU,iBAAiB,CAAC,SAAS,EAAE,CAAC"} -------------------------------------------------------------------------------- /lib/modules/base/WfsSource.d.ts: -------------------------------------------------------------------------------- 1 | import Feature from 'ol/Feature.js'; 2 | import VectorSource, { Options as VSOptions } from 'ol/source/Vector.js'; 3 | import { WfsGeoserverVendor } from '../../@types'; 4 | import { GeoServerAdvanced } from '../../Geoserver'; 5 | /** 6 | * Layer source to retrieve WFS features from geoservers 7 | * https://docs.geoserver.org/stable/en/user/services/wfs/reference.html 8 | * 9 | * @extends {ol/source/Vector~VectorSource} 10 | * @param options 11 | */ 12 | export default class WfsSource extends VectorSource { 13 | urlParams: URLSearchParams; 14 | constructor(options: WfsSourceOptions); 15 | } 16 | /** 17 | * **_[interface]_** - Parameters to create a WfsSource 18 | * 19 | * @public 20 | */ 21 | export interface WfsSourceOptions extends VSOptions { 22 | /** 23 | * Layer name in the GeoServer 24 | */ 25 | name: string; 26 | /** 27 | * Url for OWS services. This endpoint will recive the WFS, WFST and WMS requests 28 | */ 29 | geoserverUrl: string; 30 | /** 31 | * Advanced options for geoserver requests 32 | */ 33 | geoServerAdvanced?: GeoServerAdvanced; 34 | /** 35 | * 36 | */ 37 | geoserverVendor?: WfsGeoserverVendor; 38 | /** 39 | * Url headers for GeoServer requests. You can use it to add Authorization credentials 40 | * https://developer.mozilla.org/en-US/docs/Web/API/Request/headers 41 | */ 42 | headers?: HeadersInit; 43 | /** 44 | * Credentials for fetch requests 45 | * https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials 46 | */ 47 | credentials?: RequestCredentials; 48 | } 49 | //# sourceMappingURL=WfsSource.d.ts.map -------------------------------------------------------------------------------- /lib/modules/base/WfsSource.d.ts.map: -------------------------------------------------------------------------------- 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;CAoFxC;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"} -------------------------------------------------------------------------------- /lib/modules/base/WmsSource.d.ts: -------------------------------------------------------------------------------- 1 | import TileWMS, { Options as TSOptions } from 'ol/source/TileWMS.js'; 2 | import { WmsGeoserverVendor } from '../../@types'; 3 | import { GeoServerAdvanced } from '../../Geoserver'; 4 | /** 5 | * Layer source to retrieve WMS information from geoservers 6 | * https://docs.geoserver.org/stable/en/user/services/wms/reference.html 7 | * 8 | * @extends {ol/source/TieWMS~TileWMS} 9 | * @param options 10 | */ 11 | export default class WmsSource extends TileWMS { 12 | constructor(options: WmsSourceOptions); 13 | } 14 | /** 15 | * **_[interface]_** - Parameters to create a WmsSource 16 | * 17 | * @public 18 | */ 19 | export interface WmsSourceOptions extends Omit { 20 | /** 21 | * Layer name in the GeoServer 22 | */ 23 | name: string; 24 | /** 25 | * Url for OWS services. This endpoint will recive the WFS, WFST and WMS requests 26 | */ 27 | geoserverUrl: string; 28 | /** 29 | * Advanced options for geoserver requests 30 | */ 31 | geoServerAdvanced?: GeoServerAdvanced; 32 | /** 33 | * 34 | */ 35 | geoserverVendor?: WmsGeoserverVendor; 36 | /** 37 | * Url headers for GeoServer requests. You can use it to add Authorization credentials 38 | * https://developer.mozilla.org/en-US/docs/Web/API/Request/headers 39 | */ 40 | headers?: HeadersInit; 41 | /** 42 | * Credentials for fetch requests 43 | * https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials 44 | */ 45 | credentials?: RequestCredentials; 46 | } 47 | //# sourceMappingURL=WmsSource.d.ts.map -------------------------------------------------------------------------------- /lib/modules/base/WmsSource.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"WmsSource.d.ts","sourceRoot":"","sources":["../../../src/modules/base/WmsSource.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,OAAO;gBAC9B,OAAO,EAAE,gBAAgB;CAmDxC;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC;IAC/D;;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"} -------------------------------------------------------------------------------- /lib/modules/editLayer.d.ts: -------------------------------------------------------------------------------- 1 | import VectorLayer from 'ol/layer/Vector.js'; 2 | import VectorSource from 'ol/source/Vector.js'; 3 | export declare const getEditLayer: () => VectorLayer; 4 | //# sourceMappingURL=editLayer.d.ts.map -------------------------------------------------------------------------------- /lib/modules/editLayer.d.ts.map: -------------------------------------------------------------------------------- 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,YAAY,YAAY,CAEvD,CAAC"} -------------------------------------------------------------------------------- /lib/modules/errors.d.ts: -------------------------------------------------------------------------------- 1 | import { Options } from '../ol-wfst'; 2 | import { IGeoserverDescribeFeatureType } from '../@types'; 3 | export declare const initModal: (opts: Options['modal']) => void; 4 | export declare const parseError: (geoserverResponse: IGeoserverDescribeFeatureType) => string; 5 | /** 6 | * Show modal with errors 7 | * 8 | * @param msg 9 | * @private 10 | */ 11 | export declare const showError: (msg: string, originalError?: Error, layerName?: string) => void; 12 | //# sourceMappingURL=errors.d.ts.map -------------------------------------------------------------------------------- /lib/modules/errors.d.ts.map: -------------------------------------------------------------------------------- 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,SAAU,OAAO,CAAC,OAAO,CAAC,SAE/C,CAAC;AAEF,eAAO,MAAM,UAAU,sBACA,6BAA6B,WASnD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,QACb,MAAM,kBACI,KAAK,yBAErB,IAoBF,CAAC"} -------------------------------------------------------------------------------- /lib/modules/helpers.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @param target 3 | * @param sources 4 | * @returns 5 | */ 6 | export declare const deepObjectAssign: (target: any, ...sources: any[]) => any; 7 | //# sourceMappingURL=helpers.d.ts.map -------------------------------------------------------------------------------- /lib/modules/helpers.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/modules/helpers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,yCAgB5B,CAAC"} -------------------------------------------------------------------------------- /lib/modules/i18n/en.d.ts: -------------------------------------------------------------------------------- 1 | import { I18n } from '../../ol-wfst'; 2 | export declare const en: I18n; 3 | //# sourceMappingURL=en.d.ts.map -------------------------------------------------------------------------------- /lib/modules/i18n/en.d.ts.map: -------------------------------------------------------------------------------- 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,IAsChB,CAAC"} -------------------------------------------------------------------------------- /lib/modules/i18n/es.d.ts: -------------------------------------------------------------------------------- 1 | import { I18n } from '../../ol-wfst'; 2 | export declare const es: I18n; 3 | //# sourceMappingURL=es.d.ts.map -------------------------------------------------------------------------------- /lib/modules/i18n/es.d.ts.map: -------------------------------------------------------------------------------- 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,IAuChB,CAAC"} -------------------------------------------------------------------------------- /lib/modules/i18n/index.d.ts: -------------------------------------------------------------------------------- 1 | import { I18n } from '../../@types'; 2 | export * from './es'; 3 | export * from './en'; 4 | export * from './zh'; 5 | export declare let I18N: I18n; 6 | export declare const setLang: (lang?: string, customI18n?: I18n) => void; 7 | /** 8 | * /** 9 | * For translations thas has a variable "{}"" to be replaced inside 10 | * @param string 11 | * @param args 12 | * @returns 13 | */ 14 | export declare const I18N_: (string: string, ...args: any) => string; 15 | //# sourceMappingURL=index.d.ts.map -------------------------------------------------------------------------------- /lib/modules/i18n/index.d.ts.map: -------------------------------------------------------------------------------- 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,+BAA6B,IAAI,KAAU,IAU9D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,WAAY,MAAM,WAAW,GAAG,KAAG,MAepD,CAAC"} -------------------------------------------------------------------------------- /lib/modules/i18n/zh.d.ts: -------------------------------------------------------------------------------- 1 | import { I18n } from '../../ol-wfst'; 2 | export declare const zh: I18n; 3 | //# sourceMappingURL=zh.d.ts.map -------------------------------------------------------------------------------- /lib/modules/i18n/zh.d.ts.map: -------------------------------------------------------------------------------- 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,IAsChB,CAAC"} -------------------------------------------------------------------------------- /lib/modules/loading.d.ts: -------------------------------------------------------------------------------- 1 | export declare const initLoading: () => HTMLDivElement; 2 | export declare const showLoading: (bool?: boolean) => void; 3 | //# sourceMappingURL=loading.d.ts.map -------------------------------------------------------------------------------- /lib/modules/loading.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"loading.d.ts","sourceRoot":"","sources":["../../src/modules/loading.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,QAAO,cAK9B,CAAC;AAEF,eAAO,MAAM,WAAW,UAAU,OAAO,SAMxC,CAAC"} -------------------------------------------------------------------------------- /lib/modules/state.d.ts: -------------------------------------------------------------------------------- 1 | import Map from 'ol/Map.js'; 2 | import { FeatureLike } from 'ol/Feature.js'; 3 | import WfsLayer from '../WfsLayer'; 4 | import WmsLayer from '../WmsLayer'; 5 | import { IWfstLayersList } from '../@types'; 6 | export declare enum Modes { 7 | Edit = "EDIT", 8 | Draw = "DRAW" 9 | } 10 | export declare function activateMode(m?: Modes): void; 11 | export declare function getMode(): any; 12 | export declare function setMap(m: Map): void; 13 | export declare function getMap(): Map; 14 | export declare function setActiveLayerToInsertEls(layer: WmsLayer | WfsLayer): void; 15 | export declare function getActiveLayerToInsertEls(): WmsLayer | WfsLayer; 16 | export declare function setMapLayers(data: any): void; 17 | export declare function getStoredMapLayers(): IWfstLayersList; 18 | export declare function getStoredLayer(layerName: string): WfsLayer | WmsLayer; 19 | export declare function addFeatureToEditedList(feature: FeatureLike): void; 20 | export declare function removeFeatureFromEditList(feature: FeatureLike): void; 21 | export declare function isFeatureEdited(feature: FeatureLike): boolean; 22 | //# sourceMappingURL=state.d.ts.map -------------------------------------------------------------------------------- /lib/modules/state.d.ts.map: -------------------------------------------------------------------------------- 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;CAChB;AAED,wBAAgB,YAAY,CAAC,CAAC,GAAE,KAAY,QAE3C;AAED,wBAAgB,OAAO,QAEtB;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"} -------------------------------------------------------------------------------- /lib/modules/styleFunction.d.ts: -------------------------------------------------------------------------------- 1 | import { Geometry } from 'ol/geom.js'; 2 | import { Style } from 'ol/style.js'; 3 | import Feature from 'ol/Feature.js'; 4 | /** 5 | * Master style that handles two modes on the Edit Layer: 6 | * - one is the basic, showing only the vertices 7 | * - and the other when modify is active, showing bigger vertices 8 | * 9 | * @param feature 10 | * @private 11 | */ 12 | export default function styleFunction(feature: Feature): Array