@opensystemslab/map 0.8.0 → 0.8.2
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/component-lib.es.js +1 -1
- package/dist/component-lib.umd.js +103 -102
- package/dist/{html2canvas.esm-1a1724a1.mjs → html2canvas.esm-DbilGY6A.mjs} +13 -13
- package/dist/{index-91fc83f5.mjs → index-1HbxZ3C1.mjs} +21046 -18599
- package/dist/{index.es-9acdc0ae.mjs → index.es-BF5JbvAz.mjs} +4 -4
- package/dist/index.html +2 -1
- package/dist/style.css +1 -1
- package/package.json +10 -10
- package/types/components/my-map/drawing.d.ts +2 -2
- package/types/components/my-map/index.d.ts +1 -0
- package/types/components/my-map/os-features.d.ts +2 -2
- package/types/components/my-map/snapping.d.ts +2 -2
- package/types/components/my-map/utils.d.ts +2 -2
- /package/dist/{purify.es-00aa4070.mjs → purify.es-D6iZHRnd.mjs} +0 -0
@@ -1,11 +1,11 @@
|
|
1
|
-
import { c as fr, g as _o } from "./index-
|
1
|
+
import { c as fr, g as _o } from "./index-1HbxZ3C1.mjs";
|
2
2
|
var zt = function(a) {
|
3
3
|
return a && a.Math == Math && a;
|
4
4
|
}, z = (
|
5
5
|
// eslint-disable-next-line es/no-global-this -- safe
|
6
6
|
zt(typeof globalThis == "object" && globalThis) || zt(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
7
7
|
zt(typeof self == "object" && self) || zt(typeof fr == "object" && fr) || // eslint-disable-next-line no-new-func -- fallback
|
8
|
-
function() {
|
8
|
+
/* @__PURE__ */ function() {
|
9
9
|
return this;
|
10
10
|
}() || Function("return this")()
|
11
11
|
), ot = {}, L = function(a) {
|
@@ -380,7 +380,7 @@ var df = Ue, pf = k, yf = au, mf = ou, bf = K, xf = pf([].concat), Tf = df("Refl
|
|
380
380
|
throw rc("Incorrect invocation");
|
381
381
|
}, ic = G, nc = ic("toStringTag"), hu = {};
|
382
382
|
hu[nc] = "z";
|
383
|
-
var sc = String(hu) === "[object z]", oc = sc, uc = D, or = Fe, lc = G, hc = lc("toStringTag"), vc = Object, fc = or(function() {
|
383
|
+
var sc = String(hu) === "[object z]", oc = sc, uc = D, or = Fe, lc = G, hc = lc("toStringTag"), vc = Object, fc = or(/* @__PURE__ */ function() {
|
384
384
|
return arguments;
|
385
385
|
}()) == "Arguments", cc = function(a, e) {
|
386
386
|
try {
|
@@ -2073,7 +2073,7 @@ var se, pl = function() {
|
|
2073
2073
|
return a === " " || a === " " || a === "\r" || a === `
|
2074
2074
|
`;
|
2075
2075
|
}, yo = function(a) {
|
2076
|
-
return
|
2076
|
+
return 48 <= a.charCodeAt(0) && a.charCodeAt(0) <= 57;
|
2077
2077
|
}, Pb = function(a) {
|
2078
2078
|
function e() {
|
2079
2079
|
var t = a.call(this) || this;
|
package/dist/index.html
CHANGED
@@ -45,7 +45,7 @@
|
|
45
45
|
***</h1>
|
46
46
|
<div style="margin-bottom:1em">
|
47
47
|
<my-map zoom="20" maxZoom="23" id="example-map" drawMode useScaleBarStyle showScale showNorthArrow showPrint
|
48
|
-
osProxyEndpoint="https://api.editor.planx.dev/proxy/ordnance-survey" />
|
48
|
+
osProxyEndpoint="https://api.editor.planx.dev/proxy/ordnance-survey" ariaLabelOlFixedOverlay="Interactive example map" />
|
49
49
|
</div>
|
50
50
|
<div style="margin-bottom:1em">
|
51
51
|
<postcode-search hintText="Optional hint text shows up here" id="example-postcode" />
|
@@ -67,6 +67,7 @@
|
|
67
67
|
<script>
|
68
68
|
// --- MAP --- //
|
69
69
|
const map = document.querySelector("my-map");
|
70
|
+
map.geojsonDataCopyright = `<a href="https://www.planning.data.gov.uk/dataset/title-boundary" target="_blank">Title boundary</a> subject to Crown copyright and database rights ${new Date().getFullYear()} OS (0)100026316`;
|
70
71
|
map.clipGeojsonData = {
|
71
72
|
"type": "Feature",
|
72
73
|
"geometry": {
|