@eox/layercontrol 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eox-layercontrol.js +16 -3
- package/dist/eox-layercontrol.umd.cjs +2 -2
- package/package.json +2 -2
- package/src/helpers/update-url.js +9 -1
- package/types/layercontrol/src/helpers/update-url.d.ts.map +1 -1
- package/types/map/src/custom/layers/MapboxStyle.d.ts +13 -0
- package/types/map/src/custom/layers/MapboxStyle.d.ts.map +1 -0
- package/types/map/src/custom/sources/Cluster.d.ts +20 -0
- package/types/map/src/custom/sources/Cluster.d.ts.map +1 -0
- package/types/map/src/helpers/add-new-feature.d.ts.map +1 -1
- package/types/map/src/helpers/cluster-explode.d.ts +38 -0
- package/types/map/src/helpers/cluster-explode.d.ts.map +1 -0
- package/types/map/src/helpers/generate.d.ts.map +1 -1
- package/types/map/src/helpers/index.d.ts +1 -0
- package/types/map/src/helpers/parse-feature.d.ts.map +1 -1
- package/types/map/src/helpers/parse-text.d.ts +1 -2
- package/types/map/src/helpers/parse-text.d.ts.map +1 -1
- package/types/map/src/helpers/select.d.ts +1 -1
- package/types/map/src/helpers/select.d.ts.map +1 -1
- package/types/map/src/helpers/tile-grid.d.ts +3 -7
- package/types/map/src/helpers/tile-grid.d.ts.map +1 -1
- package/types/map/src/layers.d.ts +15 -6
- package/types/map/src/layers.d.ts.map +1 -1
- package/types/map/src/types.d.ts +14 -1
- package/types/map/src/types.d.ts.map +1 -1
package/dist/eox-layercontrol.js
CHANGED
|
@@ -1328,7 +1328,9 @@ function xa(r, e) {
|
|
|
1328
1328
|
Object.entries(e).forEach(([a, l]) => {
|
|
1329
1329
|
typeof l == "object" && !Array.isArray(l) && l !== null ? Object.keys(l).forEach((s) => {
|
|
1330
1330
|
t.set(s, l[s]);
|
|
1331
|
-
}) : t.
|
|
1331
|
+
}) : Array.isArray(l) ? (t.delete(a), l.forEach((s) => {
|
|
1332
|
+
t.append(a, s);
|
|
1333
|
+
})) : t.set(a, l);
|
|
1332
1334
|
});
|
|
1333
1335
|
const i = r.split("?")[0], o = t.toString();
|
|
1334
1336
|
return `${i}?${o}`;
|
|
@@ -4862,8 +4864,19 @@ const yl = (r, e) => {
|
|
|
4862
4864
|
}
|
|
4863
4865
|
}, xl = (r) => {
|
|
4864
4866
|
let e;
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
+
if (typeof r == "string") {
|
|
4868
|
+
const t = (i) => (
|
|
4869
|
+
/** @type {HTMLElement} */
|
|
4870
|
+
i.querySelector(r)
|
|
4871
|
+
);
|
|
4872
|
+
if (e = t(document), !e) {
|
|
4873
|
+
const i = document.querySelectorAll("html *");
|
|
4874
|
+
for (let o = 0; o < i.length && !(i[o].shadowRoot && (e = t(i[o].shadowRoot), e)); o++)
|
|
4875
|
+
;
|
|
4876
|
+
}
|
|
4877
|
+
} else
|
|
4878
|
+
e = r;
|
|
4879
|
+
return e;
|
|
4867
4880
|
}, qi = (r) => {
|
|
4868
4881
|
const e = xl(r.for);
|
|
4869
4882
|
return e && /** @type {import("@eox/map").EOxMap} */
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
* @description WMS service Capabilities > JSON, based on openlayers
|
|
38
38
|
* @license BSD-2-Clause
|
|
39
39
|
* @preserve
|
|
40
|
-
*/var S=r=>r!==void 0,Mi=(r,e,t)=>e in r?r[e]:r[e]=t;const $t={ELEMENT:1,TEXT:3,CDATA_SECTION:4};class Sn{constructor(e){this._parser=new e}toDocument(e){return this._parser.parseFromString(e,"application/xml")}getAllTextContent(e,t){return Ut(e,t).join("")}}function Ut(r,e){return Vi(r,e,[]).join("")}function Vi(r,e,t){if(r.nodeType===$t.CDATA_SECTION||r.nodeType===$t.TEXT)e?t.push(String(r.nodeValue).replace(/(\r\n|\r|\n)/g,"")):t.push(r.nodeValue);else{var i;for(i=r.firstChild;i;i=i.nextSibling)Vi(i,e,t)}return t}function zn(r,e,t,i){for(var o=En(e);o;o=An(o)){var n=o.namespaceURI||null,a=r[n];if(S(a)){var l=a[o.localName];S(l)&&l.call(i,o,t)}}}function En(r){let e=r.firstElementChild||r.firstChild;for(;e&&e.nodeType!==$t.ELEMENT;)e=e.nextSibling;return e}function An(r){let e=r.nextElementSibling||r.nextSibling;for(;e&&e.nodeType!==$t.ELEMENT;)e=e.nextSibling;return e}function ie(r,e,t){return Cn(r,e,t)}function Cn(r,e,t){var i=S(t)?t:{},o,n;for(o=0,n=r.length;o<n;++o)i[r[o]]=e;return i}function Ii(r,e){return function(t,i){var o=r.call(S(e)?e:this,t,i);if(S(o)){var n=i[i.length-1];n.push(o)}}}function ee(r,e,t,i,o){return i.push(r),zn(e,t,i,o),i.pop()}function v(r,e,t){return function(i,o){let n=r.call(S(t)?t:this,i,o);if(S(n)){var a=o[o.length-1],l=S(e)?e:i.localName;a[l]=n}}}function pe(r,e,t){return function(i,o){var n=r.call(S(t)?t:this,i,o);if(S(n)){var a=o[o.length-1],l=S(e)?e:i.localName,s=Mi(a,l,[]);s.push(n)}}}const Tn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function Ln(r){return r.replace(Tn,"")}function Ge(r){const e=/^\s*(true|1)|(false|0)\s*$/.exec(r);if(e)return S(e[1])||!1}function lt(r){return Ce(Ut(r,!1))}function Ce(r){const e=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(r);if(e)return parseFloat(e[1])}function Br(r){return jt(Ut(r,!1))}function jt(r){const e=/^\s*(\d+)\s*$/.exec(r);if(e)return parseInt(e[1],10)}function C(r){return Ln(Ut(r,!1))}const Dn="http://www.w3.org/1999/xlink";function Ur(r){return r.getAttributeNS(Dn,"href")}function Pn(r,e){return ee({},aa,r,e)}function Ni(r){return[Ce(r.getAttribute("minx")),Ce(r.getAttribute("miny")),Ce(r.getAttribute("maxx")),Ce(r.getAttribute("maxy"))]}function Rn(r,e){const t=Ni(r),i=[Ce(r.getAttribute("resx")),Ce(r.getAttribute("resy"))];return{crs:r.getAttribute("CRS")||r.getAttribute("SRS"),extent:t,res:i}}function On(r,e){const t=Ni(r);if(!(!S(t[0])||!S(t[1])||!S(t[2])||!S(t[3])))return t}function Hn(r,e){const t=parseFloat(r.getAttribute("min")),i=parseFloat(r.getAttribute("max"));return{min:t,max:i}}function Mn(r,e){const t=ee({},la,r,e);if(!S(t))return;const i=t.westBoundLongitude,o=t.southBoundLatitude,n=t.eastBoundLongitude,a=t.northBoundLatitude;if(!(!S(i)||!S(o)||!S(n)||!S(a)))return[i,o,n,a]}function Vn(r,e){return ee({},ea,r,e)}function In(r,e){return ee({},ta,r,e)}function Nn(r,e){return ee({},ra,r,e)}function Bn(r,e){return ee({},ia,r,e)}function Un(r,e){return ee({},oa,r,e)}function jn(r,e){return ee([],na,r,e)}function qn(r,e){const t=Ge(r.getAttribute("queryable"));return ee({queryable:S(t)?t:!1},ji,r,e)}function Fn(r,e){var t=e[e.length-1];const i=ee({},ji,r,e);if(!S(i))return;let o=Ge(r.getAttribute("queryable"));S(o)||(o=t.queryable),i.queryable=S(o)?o:!1;let n=jt(r.getAttribute("cascaded"));S(n)||(n=t.cascaded),i.cascaded=n;let a=Ge(r.getAttribute("opaque"));S(a)||(a=t.opaque),i.opaque=S(a)?a:!1;let l=Ge(r.getAttribute("noSubsets"));S(l)||(l=t.noSubsets),i.noSubsets=S(l)?l:!1;let s=Ce(r.getAttribute("fixedWidth"));S(s)||(s=t.fixedWidth),i.fixedWidth=s;let c=Ce(r.getAttribute("fixedHeight"));S(c)||(c=t.fixedHeight),i.fixedHeight=c;const u=["Style","CRS","AuthorityURL"];for(let m=0,h=u.length;m<h;m++){const f=u[m],y=t[f];if(S(y)){let V=Mi(i,f,[]);V=V.concat(y),i[f]=V}}const d=["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"];for(let m=0,h=d.length;m<h;m++){const f=d[m],y=i[f];if(!S(y)){const V=t[f];i[f]=V}}return i}function Xn(r,e){return{name:r.getAttribute("name"),units:r.getAttribute("units"),unitSymbol:r.getAttribute("unitSymbol"),default:r.getAttribute("default"),multipleValues:Ge(r.getAttribute("multipleValues")),nearestValue:Ge(r.getAttribute("nearestValue")),current:Ge(r.getAttribute("current")),values:C(r)}}function Te(r,e){return ee({},ma,r,e)}function Zn(r,e){return ee({},sa,r,e)}function Yn(r,e){return ee({},da,r,e)}function Wn(r,e){return ee({},ua,r,e)}function jr(r,e){return ee({},ca,r,e)}function Bi(r,e){var t=Te(r,e);if(S(t)){const i=[jt(r.getAttribute("width")),jt(r.getAttribute("height"))];return t.size=i,t}}function Gn(r,e){var t=Te(r,e);if(S(t))return t.name=r.getAttribute("name"),t}function Jn(r,e){var t=Te(r,e);if(S(t))return t.type=r.getAttribute("type"),t}function Kn(r,e){return ee({},pa,r,e)}function Ui(r,e){return ee([],ha,r,e)}const oe=[null,"http://www.opengis.net/wms"],Qn=ie(oe,{Service:v(In),Capability:v(Vn)}),ea=ie(oe,{Request:v(Zn),Exception:v(jn),Layer:v(qn)}),ta=ie(oe,{Name:v(C),Title:v(C),Abstract:v(C),KeywordList:v(Ui),OnlineResource:v(Ur),ContactInformation:v(Nn),Fees:v(C),AccessConstraints:v(C),LayerLimit:v(Br),MaxWidth:v(Br),MaxHeight:v(Br)}),ra=ie(oe,{ContactPersonPrimary:v(Bn),ContactPosition:v(C),ContactAddress:v(Un),ContactVoiceTelephone:v(C),ContactFacsimileTelephone:v(C),ContactElectronicMailAddress:v(C)}),ia=ie(oe,{ContactPerson:v(C),ContactOrganization:v(C)}),oa=ie(oe,{AddressType:v(C),Address:v(C),City:v(C),StateOrProvince:v(C),PostCode:v(C),Country:v(C)}),na=ie(oe,{Format:Ii(C)}),ji=ie(oe,{Name:v(C),Title:v(C),Abstract:v(C),KeywordList:v(Ui),CRS:pe(C),SRS:pe(C),EX_GeographicBoundingBox:v(Mn),LatLonBoundingBox:v(On),BoundingBox:pe(Rn),Dimension:pe(Xn),Attribution:v(Pn),AuthorityURL:pe(Gn),Identifier:pe(C),MetadataURL:pe(Jn),DataURL:pe(Te),FeatureListURL:pe(Te),Style:pe(Kn),MinScaleDenominator:v(lt),MaxScaleDenominator:v(lt),ScaleHint:v(Hn),Layer:pe(Fn)}),aa=ie(oe,{Title:v(C),OnlineResource:v(Ur),LogoURL:v(Bi)}),la=ie(oe,{westBoundLongitude:v(lt),eastBoundLongitude:v(lt),southBoundLatitude:v(lt),northBoundLatitude:v(lt)}),sa=ie(oe,{GetCapabilities:v(jr),GetMap:v(jr),GetFeatureInfo:v(jr)}),ca=ie(oe,{Format:pe(C),DCPType:pe(Yn)}),da=ie(oe,{HTTP:v(Wn)}),ua=ie(oe,{Get:v(Te),Post:v(Te)}),pa=ie(oe,{Name:v(C),Title:v(C),Abstract:v(C),LegendURL:pe(Bi),StyleSheetURL:v(Te),StyleURL:v(Te)}),ma=ie(oe,{Format:v(C),OnlineResource:v(Ur)}),ha=ie(oe,{Keyword:Ii(C)});class fa{constructor(e,t){!t&&typeof window<"u"&&(t=window.DOMParser),this.version=void 0,this._parser=new Sn(t),this._data=e}data(e){return this._data=e,this}toJSON(e){return e=e||this._data,this.parse(e)}parse(e){return this.readFromDocument(this._parser.toDocument(e))}readFromDocument(e){for(let t=e.firstChild;t;t=t.nextSibling)if(t.nodeType==$t.ELEMENT)return this.readFromNode(t);return null}readFromNode(e){return this.version=e.getAttribute("version"),ee({version:this.version},Qn,e,[])||null}}async function ga(r){let e=new URL(r),t=e.searchParams;t.set("SERVICE","WMS"),t.set("REQUEST","GetCapabilities");let i=e.toString();const o=await fetch(i);if(o.ok){const n=await o.text();return new fa(n).toJSON()}else throw new Error(`Error: ${o.status}`)}function qr(r){const e=/\b(?:wms|ows)\b/i,t=/{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;return e.test(r)?"TileWMS":t.test(r)?"XYZ":!1}function ba(r){const t=/^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(r),i=qr(r);return!!(r&&t&&i)}function qi(r){return r.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": ').replace(/,\s*}/g,"}").replace(/,\s*]/g,"]").replace(/\s*(\{|}|\[|\]|,)\s*/g,"$1").replaceAll('": //',"://")}function ya(r){try{return JSON.parse(qi(r)),!!r}catch{return!1}}function va(r,e){const t=new URL(r).searchParams;Object.entries(e).forEach(([a,l])=>{typeof l=="object"&&!Array.isArray(l)&&l!==null?Object.keys(l).forEach(s=>{t.set(s,l[s])}):t.set(a,l)});const i=r.split("?")[0],o=t.toString();return`${i}?${o}`}/**!
|
|
40
|
+
*/var S=r=>r!==void 0,Mi=(r,e,t)=>e in r?r[e]:r[e]=t;const $t={ELEMENT:1,TEXT:3,CDATA_SECTION:4};class Sn{constructor(e){this._parser=new e}toDocument(e){return this._parser.parseFromString(e,"application/xml")}getAllTextContent(e,t){return Ut(e,t).join("")}}function Ut(r,e){return Vi(r,e,[]).join("")}function Vi(r,e,t){if(r.nodeType===$t.CDATA_SECTION||r.nodeType===$t.TEXT)e?t.push(String(r.nodeValue).replace(/(\r\n|\r|\n)/g,"")):t.push(r.nodeValue);else{var i;for(i=r.firstChild;i;i=i.nextSibling)Vi(i,e,t)}return t}function zn(r,e,t,i){for(var o=En(e);o;o=An(o)){var n=o.namespaceURI||null,a=r[n];if(S(a)){var l=a[o.localName];S(l)&&l.call(i,o,t)}}}function En(r){let e=r.firstElementChild||r.firstChild;for(;e&&e.nodeType!==$t.ELEMENT;)e=e.nextSibling;return e}function An(r){let e=r.nextElementSibling||r.nextSibling;for(;e&&e.nodeType!==$t.ELEMENT;)e=e.nextSibling;return e}function ie(r,e,t){return Cn(r,e,t)}function Cn(r,e,t){var i=S(t)?t:{},o,n;for(o=0,n=r.length;o<n;++o)i[r[o]]=e;return i}function Ii(r,e){return function(t,i){var o=r.call(S(e)?e:this,t,i);if(S(o)){var n=i[i.length-1];n.push(o)}}}function ee(r,e,t,i,o){return i.push(r),zn(e,t,i,o),i.pop()}function v(r,e,t){return function(i,o){let n=r.call(S(t)?t:this,i,o);if(S(n)){var a=o[o.length-1],l=S(e)?e:i.localName;a[l]=n}}}function pe(r,e,t){return function(i,o){var n=r.call(S(t)?t:this,i,o);if(S(n)){var a=o[o.length-1],l=S(e)?e:i.localName,s=Mi(a,l,[]);s.push(n)}}}const Tn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function Ln(r){return r.replace(Tn,"")}function Ge(r){const e=/^\s*(true|1)|(false|0)\s*$/.exec(r);if(e)return S(e[1])||!1}function lt(r){return Ce(Ut(r,!1))}function Ce(r){const e=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(r);if(e)return parseFloat(e[1])}function Br(r){return jt(Ut(r,!1))}function jt(r){const e=/^\s*(\d+)\s*$/.exec(r);if(e)return parseInt(e[1],10)}function C(r){return Ln(Ut(r,!1))}const Dn="http://www.w3.org/1999/xlink";function Ur(r){return r.getAttributeNS(Dn,"href")}function Pn(r,e){return ee({},aa,r,e)}function Ni(r){return[Ce(r.getAttribute("minx")),Ce(r.getAttribute("miny")),Ce(r.getAttribute("maxx")),Ce(r.getAttribute("maxy"))]}function Rn(r,e){const t=Ni(r),i=[Ce(r.getAttribute("resx")),Ce(r.getAttribute("resy"))];return{crs:r.getAttribute("CRS")||r.getAttribute("SRS"),extent:t,res:i}}function On(r,e){const t=Ni(r);if(!(!S(t[0])||!S(t[1])||!S(t[2])||!S(t[3])))return t}function Hn(r,e){const t=parseFloat(r.getAttribute("min")),i=parseFloat(r.getAttribute("max"));return{min:t,max:i}}function Mn(r,e){const t=ee({},la,r,e);if(!S(t))return;const i=t.westBoundLongitude,o=t.southBoundLatitude,n=t.eastBoundLongitude,a=t.northBoundLatitude;if(!(!S(i)||!S(o)||!S(n)||!S(a)))return[i,o,n,a]}function Vn(r,e){return ee({},ea,r,e)}function In(r,e){return ee({},ta,r,e)}function Nn(r,e){return ee({},ra,r,e)}function Bn(r,e){return ee({},ia,r,e)}function Un(r,e){return ee({},oa,r,e)}function jn(r,e){return ee([],na,r,e)}function qn(r,e){const t=Ge(r.getAttribute("queryable"));return ee({queryable:S(t)?t:!1},ji,r,e)}function Fn(r,e){var t=e[e.length-1];const i=ee({},ji,r,e);if(!S(i))return;let o=Ge(r.getAttribute("queryable"));S(o)||(o=t.queryable),i.queryable=S(o)?o:!1;let n=jt(r.getAttribute("cascaded"));S(n)||(n=t.cascaded),i.cascaded=n;let a=Ge(r.getAttribute("opaque"));S(a)||(a=t.opaque),i.opaque=S(a)?a:!1;let l=Ge(r.getAttribute("noSubsets"));S(l)||(l=t.noSubsets),i.noSubsets=S(l)?l:!1;let s=Ce(r.getAttribute("fixedWidth"));S(s)||(s=t.fixedWidth),i.fixedWidth=s;let c=Ce(r.getAttribute("fixedHeight"));S(c)||(c=t.fixedHeight),i.fixedHeight=c;const u=["Style","CRS","AuthorityURL"];for(let m=0,h=u.length;m<h;m++){const f=u[m],y=t[f];if(S(y)){let V=Mi(i,f,[]);V=V.concat(y),i[f]=V}}const d=["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"];for(let m=0,h=d.length;m<h;m++){const f=d[m],y=i[f];if(!S(y)){const V=t[f];i[f]=V}}return i}function Xn(r,e){return{name:r.getAttribute("name"),units:r.getAttribute("units"),unitSymbol:r.getAttribute("unitSymbol"),default:r.getAttribute("default"),multipleValues:Ge(r.getAttribute("multipleValues")),nearestValue:Ge(r.getAttribute("nearestValue")),current:Ge(r.getAttribute("current")),values:C(r)}}function Te(r,e){return ee({},ma,r,e)}function Zn(r,e){return ee({},sa,r,e)}function Yn(r,e){return ee({},da,r,e)}function Wn(r,e){return ee({},ua,r,e)}function jr(r,e){return ee({},ca,r,e)}function Bi(r,e){var t=Te(r,e);if(S(t)){const i=[jt(r.getAttribute("width")),jt(r.getAttribute("height"))];return t.size=i,t}}function Gn(r,e){var t=Te(r,e);if(S(t))return t.name=r.getAttribute("name"),t}function Jn(r,e){var t=Te(r,e);if(S(t))return t.type=r.getAttribute("type"),t}function Kn(r,e){return ee({},pa,r,e)}function Ui(r,e){return ee([],ha,r,e)}const oe=[null,"http://www.opengis.net/wms"],Qn=ie(oe,{Service:v(In),Capability:v(Vn)}),ea=ie(oe,{Request:v(Zn),Exception:v(jn),Layer:v(qn)}),ta=ie(oe,{Name:v(C),Title:v(C),Abstract:v(C),KeywordList:v(Ui),OnlineResource:v(Ur),ContactInformation:v(Nn),Fees:v(C),AccessConstraints:v(C),LayerLimit:v(Br),MaxWidth:v(Br),MaxHeight:v(Br)}),ra=ie(oe,{ContactPersonPrimary:v(Bn),ContactPosition:v(C),ContactAddress:v(Un),ContactVoiceTelephone:v(C),ContactFacsimileTelephone:v(C),ContactElectronicMailAddress:v(C)}),ia=ie(oe,{ContactPerson:v(C),ContactOrganization:v(C)}),oa=ie(oe,{AddressType:v(C),Address:v(C),City:v(C),StateOrProvince:v(C),PostCode:v(C),Country:v(C)}),na=ie(oe,{Format:Ii(C)}),ji=ie(oe,{Name:v(C),Title:v(C),Abstract:v(C),KeywordList:v(Ui),CRS:pe(C),SRS:pe(C),EX_GeographicBoundingBox:v(Mn),LatLonBoundingBox:v(On),BoundingBox:pe(Rn),Dimension:pe(Xn),Attribution:v(Pn),AuthorityURL:pe(Gn),Identifier:pe(C),MetadataURL:pe(Jn),DataURL:pe(Te),FeatureListURL:pe(Te),Style:pe(Kn),MinScaleDenominator:v(lt),MaxScaleDenominator:v(lt),ScaleHint:v(Hn),Layer:pe(Fn)}),aa=ie(oe,{Title:v(C),OnlineResource:v(Ur),LogoURL:v(Bi)}),la=ie(oe,{westBoundLongitude:v(lt),eastBoundLongitude:v(lt),southBoundLatitude:v(lt),northBoundLatitude:v(lt)}),sa=ie(oe,{GetCapabilities:v(jr),GetMap:v(jr),GetFeatureInfo:v(jr)}),ca=ie(oe,{Format:pe(C),DCPType:pe(Yn)}),da=ie(oe,{HTTP:v(Wn)}),ua=ie(oe,{Get:v(Te),Post:v(Te)}),pa=ie(oe,{Name:v(C),Title:v(C),Abstract:v(C),LegendURL:pe(Bi),StyleSheetURL:v(Te),StyleURL:v(Te)}),ma=ie(oe,{Format:v(C),OnlineResource:v(Ur)}),ha=ie(oe,{Keyword:Ii(C)});class fa{constructor(e,t){!t&&typeof window<"u"&&(t=window.DOMParser),this.version=void 0,this._parser=new Sn(t),this._data=e}data(e){return this._data=e,this}toJSON(e){return e=e||this._data,this.parse(e)}parse(e){return this.readFromDocument(this._parser.toDocument(e))}readFromDocument(e){for(let t=e.firstChild;t;t=t.nextSibling)if(t.nodeType==$t.ELEMENT)return this.readFromNode(t);return null}readFromNode(e){return this.version=e.getAttribute("version"),ee({version:this.version},Qn,e,[])||null}}async function ga(r){let e=new URL(r),t=e.searchParams;t.set("SERVICE","WMS"),t.set("REQUEST","GetCapabilities");let i=e.toString();const o=await fetch(i);if(o.ok){const n=await o.text();return new fa(n).toJSON()}else throw new Error(`Error: ${o.status}`)}function qr(r){const e=/\b(?:wms|ows)\b/i,t=/{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;return e.test(r)?"TileWMS":t.test(r)?"XYZ":!1}function ba(r){const t=/^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(r),i=qr(r);return!!(r&&t&&i)}function qi(r){return r.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": ').replace(/,\s*}/g,"}").replace(/,\s*]/g,"]").replace(/\s*(\{|}|\[|\]|,)\s*/g,"$1").replaceAll('": //',"://")}function ya(r){try{return JSON.parse(qi(r)),!!r}catch{return!1}}function va(r,e){const t=new URL(r).searchParams;Object.entries(e).forEach(([a,l])=>{typeof l=="object"&&!Array.isArray(l)&&l!==null?Object.keys(l).forEach(s=>{t.set(s,l[s])}):Array.isArray(l)?(t.delete(a),l.forEach(s=>{t.append(a,s)})):t.set(a,l)});const i=r.split("?")[0],o=t.toString();return`${i}?${o}`}/**!
|
|
41
41
|
* Sortable 1.15.6
|
|
42
42
|
* @author RubaXa <trash@rubaxa.org>
|
|
43
43
|
* @author owenm <owen23355@gmail.com>
|
|
@@ -999,7 +999,7 @@
|
|
|
999
999
|
letter-spacing: .0313rem;
|
|
1000
1000
|
}
|
|
1001
1001
|
${t}
|
|
1002
|
-
`,document.head.appendChild(i)}},vl=r=>{let e;
|
|
1002
|
+
`,document.head.appendChild(i)}},vl=r=>{let e;if(typeof r=="string"){const t=i=>i.querySelector(r);if(e=t(document),!e){const i=document.querySelectorAll("html *");for(let o=0;o<i.length&&!(i[o].shadowRoot&&(e=t(i[o].shadowRoot),e));o++);}}else e=r;return e},No=r=>{const e=vl(r.for);return e&&e.map!==r.map&&(r.map=e.map),e};yl();class mi extends ce{constructor(){super();L(this,ft);L(this,qe);L(this,Er,`
|
|
1003
1003
|
${ar}
|
|
1004
1004
|
:host, :root {
|
|
1005
1005
|
--padding: 0.5rem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eox/layercontrol",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@eox/map": "*",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"watch": "vite build --watch"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@eox/elements-utils": "^1.
|
|
40
|
+
"@eox/elements-utils": "^1.1.0",
|
|
41
41
|
"@eox/ui": "^0.3.6",
|
|
42
42
|
"color-legend-element": "^1.3.0",
|
|
43
43
|
"lit": "^3.2.0",
|
|
@@ -16,7 +16,15 @@ export default function updateUrl(url, values) {
|
|
|
16
16
|
Object.keys(value).forEach((k) => {
|
|
17
17
|
searchParams.set(k, value[k]);
|
|
18
18
|
});
|
|
19
|
-
} else
|
|
19
|
+
} else if (Array.isArray(value)) {
|
|
20
|
+
searchParams.delete(key);
|
|
21
|
+
value.forEach((v) => {
|
|
22
|
+
searchParams.append(key, v);
|
|
23
|
+
});
|
|
24
|
+
} else {
|
|
25
|
+
// Set the key-value pair as a search parameter
|
|
26
|
+
searchParams.set(key, value);
|
|
27
|
+
}
|
|
20
28
|
});
|
|
21
29
|
|
|
22
30
|
// Extract the URL without query parameters
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-url.d.ts","sourceRoot":"","sources":["../../../../src/helpers/update-url.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,
|
|
1
|
+
{"version":3,"file":"update-url.d.ts","sourceRoot":"","sources":["../../../../src/helpers/update-url.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,oEAgCC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default MapboxStyle;
|
|
2
|
+
declare class MapboxStyle extends LayerGroup {
|
|
3
|
+
constructor(options?: {});
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param {*} mapboxStyle mapbox style definition
|
|
7
|
+
* @param {import("ol-mapbox-style/dist/apply").Options} applyOptions ol-mapbox-style apply options
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
applyMapboxStyle(mapboxStyle: any, applyOptions: import("ol-mapbox-style/dist/apply").Options): Promise<LayerGroup | import("ol").Map>;
|
|
11
|
+
}
|
|
12
|
+
import LayerGroup from "ol/layer/Group";
|
|
13
|
+
//# sourceMappingURL=MapboxStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapboxStyle.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/layers/MapboxStyle.js"],"names":[],"mappings":";AAGA;IACE,0BAQC;IAED;;;;;OAKG;IACH,8BAJW,GAAC,gBACD,OAAO,4BAA4B,EAAE,OAAO,0CAKtD;CACF;uBAvBsB,gBAAgB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default EOxCluster;
|
|
2
|
+
export type ClusterOptions = import("../../types").EOxClusterOptions;
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import("../../types").EOxClusterOptions} ClusterOptions
|
|
5
|
+
*/
|
|
6
|
+
declare class EOxCluster extends Cluster<Feature<import("ol/geom").Geometry>> {
|
|
7
|
+
static defaultCreateCluster(point: any, features: any): Feature<any>;
|
|
8
|
+
/**
|
|
9
|
+
* @param {import("ol/Feature").FeatureLike} feature
|
|
10
|
+
* @returns {import("ol/geom/Point").default}
|
|
11
|
+
*/
|
|
12
|
+
static defaultGeometryFunction(feature: import("ol/Feature").FeatureLike): import("ol/geom/Point").default;
|
|
13
|
+
/**
|
|
14
|
+
* @param {ClusterOptions} options
|
|
15
|
+
*/
|
|
16
|
+
constructor(options?: ClusterOptions);
|
|
17
|
+
}
|
|
18
|
+
import { Feature } from "ol";
|
|
19
|
+
import { Cluster } from "ol/source";
|
|
20
|
+
//# sourceMappingURL=Cluster.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cluster.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/sources/Cluster.js"],"names":[],"mappings":";6BAKa,OAAO,aAAa,EAAE,iBAAiB;AADpD;;GAEG;AAEH;IAYE,qEAqBC;IAED;;;OAGG;IACH,wCAHW,OAAO,YAAY,EAAE,WAAW,GAC9B,OAAO,eAAe,EAAE,OAAO,CAW3C;IA/CD;;OAEG;IACH,sBAFW,cAAc,EAQxB;CAuCF;wBAzDuB,IAAI;wBAEJ,WAAW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-new-feature.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/add-new-feature.js"],"names":[],"mappings":"AAQA;;;;;;;;;;GAUG;AACH,yCAPW,OAAO,qBAAqB,EAAE,SAAS,GAAG,OAAO,4BAA4B,EAAE,gBAAgB,GAAG;IAAE,QAAQ,EAAE,KAAK,CAAC,OAAO,YAAY,EAAE,OAAO,CAAC,CAAA;CAAE,eACnJ,OAAO,UAAU,EAAE,MAAM,UACzB,OAAO,SAAS,EAAE,MAAM,WACxB,OAAO,oBACP,OAAO,YACP,OAAO,
|
|
1
|
+
{"version":3,"file":"add-new-feature.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/add-new-feature.js"],"names":[],"mappings":"AAQA;;;;;;;;;;GAUG;AACH,yCAPW,OAAO,qBAAqB,EAAE,SAAS,GAAG,OAAO,4BAA4B,EAAE,gBAAgB,GAAG;IAAE,QAAQ,EAAE,KAAK,CAAC,OAAO,YAAY,EAAE,OAAO,CAAC,CAAA;CAAE,eACnJ,OAAO,UAAU,EAAE,MAAM,UACzB,OAAO,SAAS,EAAE,MAAM,WACxB,OAAO,oBACP,OAAO,YACP,OAAO,QAoEjB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adds a `cluster-explode` interaction to the map.
|
|
3
|
+
*
|
|
4
|
+
* @param {EOxMap} EOxMap - Instance of EOxMap class.
|
|
5
|
+
* @param {import("ol/layer/Vector").default<import("ol/source/Cluster").default>} clusterLayer - Layer to be clustered. Point or Polygon features.
|
|
6
|
+
* @param {ClusterExplodeOptions} options - Options for the interaction.
|
|
7
|
+
*
|
|
8
|
+
* @throws Will throw an error if an interaction with the specified ID already exists.
|
|
9
|
+
*/
|
|
10
|
+
export function addClusterExplode(EOxMap: EOxMap, clusterLayer: import("ol/layer/Vector").default<import("ol/source/Cluster").default>, options: ClusterExplodeOptions): void;
|
|
11
|
+
/**
|
|
12
|
+
* Class representing the EOxClusterInteraction.
|
|
13
|
+
* Handles the the zoom and the "spider-explosion" of clustered features of a cluster layer
|
|
14
|
+
*/
|
|
15
|
+
export class EOxClusterExplodeInteraction extends Interaction {
|
|
16
|
+
/**
|
|
17
|
+
* @param {EOxMap} eoxMap - Instance of the EOxMap class.
|
|
18
|
+
* @param {import("ol/layer/Vector").default<import("ol/source/Cluster").default>} clusterLayer - Vector Layer with Cluster Source for the interaction.
|
|
19
|
+
* @param {ClusterExplodeOptions} options - Options for the selection interaction.
|
|
20
|
+
*/
|
|
21
|
+
constructor(eoxMap: EOxMap, clusterLayer: import("ol/layer/Vector").default<import("ol/source/Cluster").default>, options: ClusterExplodeOptions);
|
|
22
|
+
clusterLayer: VectorLayer<import("ol/source/Cluster").default<Feature<import("ol/geom").Geometry>>, Feature<import("ol/geom").Geometry>>;
|
|
23
|
+
eoxMap: import("../main").EOxMap;
|
|
24
|
+
active: boolean;
|
|
25
|
+
handleEvent(evt: any): boolean;
|
|
26
|
+
setMap(map: any): void;
|
|
27
|
+
/**
|
|
28
|
+
* Removes the cluster interaction from the map.
|
|
29
|
+
*/
|
|
30
|
+
remove(): void;
|
|
31
|
+
#private;
|
|
32
|
+
}
|
|
33
|
+
export type EOxMap = import("../main").EOxMap;
|
|
34
|
+
export type ClusterExplodeOptions = import("../types").ClusterExplodeOptions;
|
|
35
|
+
import Interaction from "ol/interaction/Interaction";
|
|
36
|
+
import Feature from "ol/Feature";
|
|
37
|
+
import VectorLayer from "ol/layer/Vector";
|
|
38
|
+
//# sourceMappingURL=cluster-explode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cluster-explode.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/cluster-explode.js"],"names":[],"mappings":"AA0TA;;;;;;;;GAQG;AACH,0CANW,MAAM,gBACN,OAAO,iBAAiB,EAAE,OAAO,CAAC,OAAO,mBAAmB,EAAE,OAAO,CAAC,WACtE,qBAAqB,QAiB/B;AA/TD;;;GAGG;AACH;IACE;;;;OAIG;IACH,oBAJW,MAAM,gBACN,OAAO,iBAAiB,EAAE,OAAO,CAAC,OAAO,mBAAmB,EAAE,OAAO,CAAC,WACtE,qBAAqB,EAiC/B;IA7BC,yIAAgC;IAChC,iCAAoB;IAsBpB,gBAAyD;IA6B3D,+BA4EC;IAcD,uBAMC;IAiID;;OAEG;IACH,eAEC;;CACF;qBA/SY,OAAO,SAAS,EAAE,MAAM;oCACxB,OAAO,UAAU,EAAE,qBAAqB;wBAR7B,4BAA4B;oBAFhC,YAAY;wBAMR,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/generate.js"],"names":[],"mappings":"AAgEA;;;;;;;;GAQG;AACH,oCANW,OAAO,SAAS,EAAE,MAAM,SACxB,QAAQ,uBACR,OAAO,GACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/generate.js"],"names":[],"mappings":"AAgEA;;;;;;;;GAQG;AACH,oCANW,OAAO,SAAS,EAAE,MAAM,SACxB,QAAQ,uBACR,OAAO,GACL,QAAQ,CAmEpB;AA0FD;;;;;;;;;GASG;AACH,oCAPW,OAAO,SAAS,EAAE,MAAM,sBACxB,QAAQ,iBACR,OAAO,eAAe,EAAE,OAAO,GAC7B,OAAO,eAAe,EAAE,OAAO,CA4N3C;AASM,uCAJI,OAAO,SAAS,EAAE,MAAM,cACxB,KAAK,CAAC,QAAQ,CAAC,GACb,KAAK,CAAC,QAAQ,CAAC,CAO3B;qBA/bY,OAAO,SAAS,EAAE,MAAM;uBACxB,OAAO,UAAU,EAAE,QAAQ;uBAC3B,OAAO,WAAW,EAAE,QAAQ;0BAC5B,OAAO,UAAU,EAAE,WAAW;6BAC9B,OAAO,UAAU,EAAE,cAAc;0BACjC,OAAO,UAAU,EAAE,WAAW;4BAC9B,OAAO,UAAU,EAAE,aAAa;iCAChC,OAAO,UAAU,EAAE,kBAAkB;sCACrC,OAAO,UAAU,EAAE,uBAAuB"}
|
|
@@ -7,6 +7,7 @@ export { default as parseFeature } from "./parse-feature";
|
|
|
7
7
|
export { default as coordinatesRoughlyEquals } from "./coordinates-roughly-equals";
|
|
8
8
|
export { getCenterFromProperty } from "./center";
|
|
9
9
|
export { addDraw } from "./draw";
|
|
10
|
+
export { addClusterExplode } from "./cluster-explode";
|
|
10
11
|
export { generateTileGrid } from "./tile-grid";
|
|
11
12
|
export { transform, transformExtent } from "./transform";
|
|
12
13
|
export { addScrollInteractions, removeDefaultScrollInteractions } from "./interactions";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-feature.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/parse-feature.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parse-feature.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/parse-feature.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,+CAHW,KAAK,CAAC,OAAO,YAAY,EAAE,OAAO,CAAC,OAS7C"}
|
|
@@ -6,11 +6,10 @@
|
|
|
6
6
|
* @param {import("ol/layer").Vector} vectorLayer - The vector layer to which the parsed features will be added.
|
|
7
7
|
* @param {import("../main").EOxMap} EOxMap - An instance of EOxMap, used here for context and potentially for further operations like event dispatching.
|
|
8
8
|
* @param {boolean} replaceFeatures - Optional boolean flag indicating whether to replace the existing features with the new ones.
|
|
9
|
-
* @param {Object} parseOptions - Optional object containing options for the parser.
|
|
10
9
|
* @param {boolean} animate - Optional boolean flag indicating whether to animate the map on feature change.
|
|
11
10
|
* @return {void}
|
|
12
11
|
*/
|
|
13
|
-
export default function parseTextToFeature(text: string, vectorLayer: import("ol/layer").Vector, EOxMap: import("../main").EOxMap, replaceFeatures?: boolean,
|
|
12
|
+
export default function parseTextToFeature(text: string, vectorLayer: import("ol/layer").Vector, EOxMap: import("../main").EOxMap, replaceFeatures?: boolean, animate?: boolean): void;
|
|
14
13
|
/**
|
|
15
14
|
* Function to check if a string is valid GeoJSON
|
|
16
15
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-text.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/parse-text.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parse-text.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/parse-text.js"],"names":[],"mappings":"AA+BA;;;;;;;;;;GAUG;AACH,iDAPW,MAAM,eACN,OAAO,UAAU,EAAE,MAAM,UACzB,OAAO,SAAS,EAAE,MAAM,oBACxB,OAAO,YACP,OAAO,GACN,IAAI,CAqCf;AAmBD;;;;;GAKG;AACH,gCAHW,MAAM,GACJ,OAAO,CAWnB;AAED;;;;;GAKG;AACH,4BAHW,MAAM,GACJ,OAAO,CAKnB;AAED;;;;;GAKG;AACH,iCAHW,MAAM,GACJ,OAAO,CAWnB"}
|
|
@@ -42,7 +42,7 @@ export class EOxSelectInteraction {
|
|
|
42
42
|
* Listener to handle selection events
|
|
43
43
|
* @param {import("ol/MapBrowserEvent").default} event
|
|
44
44
|
* **/
|
|
45
|
-
listener: (event: import("ol").
|
|
45
|
+
listener: (event: import("ol/MapBrowserEvent").default) => void;
|
|
46
46
|
changeSourceListener: () => void;
|
|
47
47
|
/**
|
|
48
48
|
* Adds a listener on pointermove
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/select.js"],"names":[],"mappings":"AA8VA;;;;;;;;;GASG;AACH,kCAPW,MAAM,eACN,WAAW,WACX,aAAa,GAAG,WAAW,GACzB,oBAAoB,CAgBhC;AA3WD;;;;;;GAMG;AAEH;;;;GAIG;AACH;IACE;;;;OAIG;IACH,oBAJW,MAAM,eACN,WAAW,WACX,aAAa,EAiOvB;IA9NC,iCAAoB;IACpB,4CAA8B;IAC9B,0CAAsB;IACtB,gBAAwD;IACxD,eAAmC;IACnC,iBAAuD;IACvD,oCAAoC;IACpC,cADW,KAAK,CAAC,MAAM,GAAC,MAAM,CAAC,CACT;IAUlB,wBAAkD;IA6DtD,iDAEC;IAwBD;;;UAGM;IACN,
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/select.js"],"names":[],"mappings":"AA8VA;;;;;;;;;GASG;AACH,kCAPW,MAAM,eACN,WAAW,WACX,aAAa,GAAG,WAAW,GACzB,oBAAoB,CAgBhC;AA3WD;;;;;;GAMG;AAEH;;;;GAIG;AACH;IACE;;;;OAIG;IACH,oBAJW,MAAM,eACN,WAAW,WACX,aAAa,EAiOvB;IA9NC,iCAAoB;IACpB,4CAA8B;IAC9B,0CAAsB;IACtB,gBAAwD;IACxD,eAAmC;IACnC,iBAAuD;IACvD,oCAAoC;IACpC,cADW,KAAK,CAAC,MAAM,GAAC,MAAM,CAAC,CACT;IAUlB,wBAAkD;IA6DtD,iDAEC;IAwBD;;;UAGM;IACN,kBAFW,OAAO,oBAAoB,EAAE,OAAO,UAmD9C;IAiBD,iCAGC;IAoBD;;;;OAIG;IACH,sCAkBC;IAIH;;;OAGG;IACH,kBAFW,OAAO,QAIjB;IAED;;;;OAIG;IACH,kCAHW,OAAO,GAAG,aAAa,GAAG,OAAO,WAAW,EAAE,MAAM,yBAU7D;IAEF;;;;OAIG;IACH,mBAHW,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,0BAkChC;IAED;;OAEG;IACH,eAMC;IAED;;;;;OAKG;IACH,eAJW,OAAO,GAAG,aAAa,GACrB,MAAM,GAAG,MAAM,CAoB3B;CACF;qBAlVY,OAAO,SAAS,EAAE,MAAM;uBACxB,OAAO,WAAW,EAAE,QAAQ;0BAC5B,OAAO,UAAU,EAAE,WAAW;4BAC9B,OAAO,UAAU,EAAE,aAAa;0BAChC,OAAO,UAAU,EAAE,WAAW;oBAXvB,YAAY;0BACN,mBAAmB"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* */
|
|
4
|
-
/**
|
|
5
|
-
* Generates a tile grid for the specified layer. If the layer's source type is "WMTS",
|
|
2
|
+
* Generates a tile grid for the specified source. If the source type is "WMTS",
|
|
6
3
|
* a `WMTSTileGrid` is generated. Otherwise, an `XYZ` tile grid is generated using the
|
|
7
4
|
* OpenLayers `createXYZ` function. Returns `undefined` if the layer's tile grid is not defined.
|
|
8
5
|
*
|
|
9
|
-
* @param {
|
|
6
|
+
* @param {import("../layers").EoxSource<any>} source - The source configuration object, containing the tile grid information.
|
|
10
7
|
* @returns {import("ol/tilegrid/WMTS").default | import("ol/tilegrid/TileGrid").default | undefined} - The generated tile grid or `undefined` if not applicable.
|
|
11
8
|
*/
|
|
12
|
-
export function generateTileGrid(
|
|
13
|
-
export type EoxLayer = import("../layers").EoxLayer;
|
|
9
|
+
export function generateTileGrid(source: import("../layers").EoxSource<any>): import("ol/tilegrid/WMTS").default | import("ol/tilegrid/TileGrid").default | undefined;
|
|
14
10
|
//# sourceMappingURL=tile-grid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tile-grid.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/tile-grid.js"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"tile-grid.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/tile-grid.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,yCAHW,OAAO,WAAW,EAAE,SAAS,CAAC,GAAG,CAAC,GAChC,OAAO,kBAAkB,EAAE,OAAO,GAAG,OAAO,sBAAsB,EAAE,OAAO,GAAG,SAAS,CA+CnG"}
|
|
@@ -35,6 +35,7 @@ export type OLAdvancedLayers = {
|
|
|
35
35
|
WebGLTile: typeof import("ol/layer/WebGLTile").default;
|
|
36
36
|
WebGLVector: typeof import("ol/layer/WebGLVector").default;
|
|
37
37
|
STAC: typeof import("ol-stac").default;
|
|
38
|
+
MapboxStyle: typeof import("./custom/layers/MapboxStyle.js").default;
|
|
38
39
|
};
|
|
39
40
|
export type OLBasicSources = {
|
|
40
41
|
ImageWMS: typeof import("ol/source/ImageWMS").default;
|
|
@@ -49,7 +50,6 @@ export type OLBasicSources = {
|
|
|
49
50
|
export type OLAdvancedSources = {
|
|
50
51
|
BingMaps: typeof import("ol/source/BingMaps").default;
|
|
51
52
|
CartoDB: typeof import("ol/source/CartoDB").default;
|
|
52
|
-
Cluster: typeof import("ol/source/Cluster").default;
|
|
53
53
|
DataTile: typeof import("ol/source/DataTile").default;
|
|
54
54
|
GeoTIFF: typeof import("ol/source/GeoTIFF").default;
|
|
55
55
|
Google: typeof import("ol/source/Google").default;
|
|
@@ -74,6 +74,7 @@ export type OLAdvancedSources = {
|
|
|
74
74
|
Zoomify: typeof import("ol/source/Zoomify").default;
|
|
75
75
|
WMTSCapabilities: typeof import("./custom/sources/WMTSCapabilities").default;
|
|
76
76
|
FlatGeoBuf: typeof import("./custom/sources/FlatGeoBuf").default;
|
|
77
|
+
Cluster: typeof import("./custom/sources/Cluster").default;
|
|
77
78
|
};
|
|
78
79
|
export type OLSources = OLBasicSources & OLAdvancedSources;
|
|
79
80
|
export type OLLayers = OLBasicLayers & OLAdvancedLayers;
|
|
@@ -84,7 +85,7 @@ export type EOxFormatType<F extends keyof OLFormats> = F | ({
|
|
|
84
85
|
export type EOxFormat = EOxFormatType<"EsriJSON"> | EOxFormatType<"GeoJSON"> | EOxFormatType<"GML"> | EOxFormatType<"GPX"> | EOxFormatType<"IGC"> | EOxFormatType<"KML"> | EOxFormatType<"MVT"> | EOxFormatType<"OWS"> | EOxFormatType<"TopoJSON"> | EOxFormatType<"WFS"> | EOxFormatType<"WKT"> | EOxFormatType<"WMSCapabilities"> | EOxFormatType<"WMSGetFeatureInfo"> | EOxFormatType<"WMTSCapabilities"> | EOxFormatType<"Polyline"> | EOxFormatType<"IIIFInfo"> | EOxFormatType<"WKB">;
|
|
85
86
|
type OlSourceOption<S extends keyof OLSources> = Omit<ConstructorParameters<OLSources[S]>[0], "map" | "layer">;
|
|
86
87
|
type OlLayerOption<T extends keyof OLLayers> = Omit<Omit<ConstructorParameters<OLLayers[T]>[0], "properties">, "source" | "layers" | "map">;
|
|
87
|
-
type EoxSource<S extends keyof OLSources> = (S extends "WMTS" ? OlSourceOption<S> : OlSourceOption<S> extends {
|
|
88
|
+
export type EoxSource<S extends keyof OLSources> = (S extends "WMTS" ? OlSourceOption<S> : OlSourceOption<S> extends {
|
|
88
89
|
format?: any;
|
|
89
90
|
} ? Omit<OlSourceOption<S>, "format"> & {
|
|
90
91
|
format?: EOxFormat;
|
|
@@ -94,23 +95,31 @@ type EoxSource<S extends keyof OLSources> = (S extends "WMTS" ? OlSourceOption<S
|
|
|
94
95
|
source?: EoxSource<keyof OLSources>;
|
|
95
96
|
} : OlSourceOption<S>) & {
|
|
96
97
|
type: S;
|
|
98
|
+
projection?: import("ol/proj").ProjectionLike;
|
|
97
99
|
};
|
|
98
|
-
|
|
100
|
+
type SourceProperties<S extends keyof OLSources> = {
|
|
101
|
+
source?: EoxSource<S>;
|
|
102
|
+
sources?: EoxSource<S>[];
|
|
103
|
+
};
|
|
104
|
+
export type EOxLayerType<T extends keyof OLLayers, S extends keyof OLSources = never> = (OlLayerOption<T> extends {
|
|
99
105
|
sources?: any;
|
|
100
106
|
} ? Omit<OlLayerOption<T>, "sources"> & {
|
|
101
107
|
sources?: EoxSource<S>[];
|
|
102
108
|
} : OlLayerOption<T>) & {
|
|
103
109
|
type: T;
|
|
110
|
+
zIndex?: number;
|
|
111
|
+
visible?: boolean;
|
|
112
|
+
opacity?: number;
|
|
104
113
|
properties?: {
|
|
105
114
|
id: string;
|
|
106
115
|
[key: string]: any;
|
|
107
116
|
};
|
|
108
|
-
source?: EoxSource<S>;
|
|
109
117
|
interactions?: T extends "Vector" | "VectorTile" ? Array<import("./types").EOxInteraction> : never;
|
|
110
|
-
};
|
|
118
|
+
} & (S extends keyof OLSources ? SourceProperties<S> : {});
|
|
111
119
|
export type EOxLayerTypeGroup = Omit<EOxLayerType<"Group", keyof OLSources>, "layers"> & {
|
|
112
120
|
layers: EoxLayer[];
|
|
113
121
|
};
|
|
114
|
-
export type
|
|
122
|
+
export type EOxLayerTypeMapboxStyle = Omit<EOxLayerType<"MapboxStyle", keyof OLSources>, "source" | "sources">;
|
|
123
|
+
export type EoxLayer = EOxLayerType<"Vector", "Vector"> | EOxLayerType<"Vector", "FlatGeoBuf"> | EOxLayerType<"Vector", "Cluster"> | EOxLayerType<"VectorTile", "VectorTile"> | EOxLayerType<"WebGLTile", "GeoTIFF"> | EOxLayerType<"Tile", "OSM"> | EOxLayerType<"Tile", "WMTSCapabilities"> | EOxLayerType<"Tile", "StadiaMaps"> | EOxLayerType<"Tile", "WMTS"> | EOxLayerType<"Tile", "XYZ"> | EOxLayerType<"Tile", "TileJSON"> | EOxLayerType<"Tile", "TileArcGISRest"> | EOxLayerType<"Tile", "TileDebug"> | EOxLayerType<"Tile", "TileImage"> | EOxLayerType<"Tile", "TileWMS"> | EOxLayerType<"Tile", "UrlTile"> | EOxLayerType<"Tile", "BingMaps"> | EOxLayerType<"Image", "Image"> | EOxLayerType<"Image", "ImageCanvas"> | EOxLayerType<"Image", "ImageStatic"> | EOxLayerType<"Image", "ImageWMS"> | EOxLayerType<"Image", "Raster"> | EOxLayerType<"Image", "IIIF"> | EOxLayerType<"STAC"> | EOxLayerTypeMapboxStyle | EOxLayerTypeGroup;
|
|
115
124
|
export {};
|
|
116
125
|
//# sourceMappingURL=layers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layers.d.ts","sourceRoot":"","sources":["../../../../map/src/layers.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,cAAc,mBAAmB,EAAE,OAAO,CAAC;IACpD,GAAG,EAAE,cAAc,eAAe,EAAE,OAAO,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,cAAc,oBAAoB,EAAE,OAAO,CAAC;IACtD,GAAG,EAAE,cAAc,eAAe,EAAE,OAAO,CAAC;IAC5C,GAAG,EAAE,cAAc,eAAe,EAAE,OAAO,CAAC;IAC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B,CAAC,GACxC,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,GAClC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,GAC5B,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,GAC3B,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,GAChC,YAAY,CAAC,MAAM,EAAE,gBAAgB,CAAC,GACtC,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,GACjC,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,GACjC,YAAY,CAAC,MAAM,EAAE,SAAS,CAAC,GAC/B,YAAY,CAAC,MAAM,EAAE,SAAS,CAAC,GAC/B,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,GAChC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,GAC9B,YAAY,CAAC,OAAO,EAAE,aAAa,CAAC,GACpC,YAAY,CAAC,OAAO,EAAE,aAAa,CAAC,GACpC,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,GACjC,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,GAC/B,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,GAC7B,YAAY,CAAC,MAAM,CAAC,GACpB,uBAAuB,GACvB,iBAAiB,CAAC"}
|
package/types/map/src/types.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export type AnyLayerWithSource = import("ol/layer/Base").default | import("ol/la
|
|
|
13
13
|
export type AnyLayer = AnyLayerWithSource | import("ol/layer/Group").default;
|
|
14
14
|
export type EOxInteraction = {
|
|
15
15
|
active?: boolean;
|
|
16
|
-
type: "draw" | "select";
|
|
16
|
+
type: "draw" | "select" | "clusterExplode";
|
|
17
17
|
options: DrawOptions | SelectOptions | {
|
|
18
18
|
[key: string]: any;
|
|
19
19
|
};
|
|
@@ -40,6 +40,18 @@ export type SelectOptions = Omit<import("ol/interaction/Select").Options, "condi
|
|
|
40
40
|
cursor?: "string";
|
|
41
41
|
atPixelOptions?: import("ol/Map").AtPixelOptions;
|
|
42
42
|
};
|
|
43
|
+
export type ClusterExplodeOptions = import("ol/interaction/Interaction").InteractionOptions & {
|
|
44
|
+
id: string | number;
|
|
45
|
+
layer?: EoxLayer;
|
|
46
|
+
style?: import("ol/style/flat.js").FlatStyleLike;
|
|
47
|
+
active?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* @property {number} [maxZoom=20] maximum zoom level after which the cluster will always be exploded.
|
|
50
|
+
*/
|
|
51
|
+
maxZoom?: number;
|
|
52
|
+
atPixelOptions?: import("ol/Map").AtPixelOptions;
|
|
53
|
+
fitOptions?: import("ol/View").FitOptions;
|
|
54
|
+
};
|
|
43
55
|
export type ControlOptions = import("ol/control/Control").Options;
|
|
44
56
|
export type GeolocationOptions = import("ol/control/Control").Options & {
|
|
45
57
|
/**
|
|
@@ -68,6 +80,7 @@ export type GeolocationOptions = import("ol/control/Control").Options & {
|
|
|
68
80
|
*/
|
|
69
81
|
buttonIcon?: string;
|
|
70
82
|
};
|
|
83
|
+
export type EOxClusterOptions = Omit<import("ol/source/Cluster").Options, "geometryFunction" | "createCluster">;
|
|
71
84
|
export type LoadingIndicatorType = "small" | "fullscreen";
|
|
72
85
|
export type LoadingIndicatorOptions = import("ol/control/Control").Options & {
|
|
73
86
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../map/src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAClB,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,OAAO,qBAAqB,EAAE,OAAO,EACrC,MAAM,CACP,GAAG;IACF,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,GAAG,QAAQ,GAAG,KAAK,CAAC;IAC5D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,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