@performant-software/geospatial 2.3.12-beta.1 → 2.3.12-beta.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/build/index.js +2 -0
- package/build/index.js.map +1 -0
- package/build/main.css +127 -0
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs228.js +1 -1
- package/dist/index.cjs233.js +1 -1
- package/dist/index.cjs233.js.map +1 -1
- package/dist/index.cjs234.js +1 -1
- package/dist/index.cjs234.js.map +1 -1
- package/dist/index.cjs235.js +1 -1
- package/dist/index.cjs235.js.map +1 -1
- package/dist/index.cjs236.js +1 -1
- package/dist/index.cjs236.js.map +1 -1
- package/dist/index.cjs237.js +1 -1
- package/dist/index.cjs237.js.map +1 -1
- package/dist/index.cjs245.js +1 -1
- package/dist/index.cjs249.js +1 -1
- package/dist/index.cjs250.js +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs258.js.map +1 -1
- package/dist/index.cjs259.js +1 -1
- package/dist/index.cjs259.js.map +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs6.js.map +1 -1
- package/dist/index.cjs60.js +1 -9
- package/dist/index.cjs60.js.map +1 -1
- package/dist/index.cjs61.js +1 -19
- package/dist/index.cjs61.js.map +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs63.js +9 -1
- package/dist/index.cjs63.js.map +1 -1
- package/dist/index.cjs64.js +19 -1
- package/dist/index.cjs64.js.map +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs65.js.map +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs66.js.map +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs67.js.map +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs68.js.map +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs69.js.map +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs70.js.map +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs71.js.map +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs72.js.map +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs73.js.map +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs74.js.map +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs75.js.map +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs76.js.map +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs77.js.map +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs78.js.map +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs79.js.map +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs80.js.map +1 -1
- package/dist/index.es14.js +2 -2
- package/dist/index.es15.js +8 -8
- package/dist/index.es16.js +1 -1
- package/dist/index.es17.js +3 -3
- package/dist/index.es19.js +2 -2
- package/dist/index.es198.js +2 -2
- package/dist/index.es208.js +1 -1
- package/dist/index.es209.js +1 -1
- package/dist/index.es21.js +2 -2
- package/dist/index.es210.js +1 -1
- package/dist/index.es22.js +2 -2
- package/dist/index.es228.js +1 -1
- package/dist/index.es233.js +3 -46
- package/dist/index.es233.js.map +1 -1
- package/dist/index.es234.js +5 -22
- package/dist/index.es234.js.map +1 -1
- package/dist/index.es235.js +8 -3
- package/dist/index.es235.js.map +1 -1
- package/dist/index.es236.js +44 -6
- package/dist/index.es236.js.map +1 -1
- package/dist/index.es237.js +22 -5
- package/dist/index.es237.js.map +1 -1
- package/dist/index.es245.js +1 -1
- package/dist/index.es249.js +1 -1
- package/dist/index.es250.js +2 -2
- package/dist/index.es258.js +4 -70
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +70 -4
- package/dist/index.es259.js.map +1 -1
- package/dist/index.es26.js +1 -1
- package/dist/index.es52.js +4 -4
- package/dist/index.es59.js +6 -2
- package/dist/index.es59.js.map +1 -1
- package/dist/index.es6.js +4 -4
- package/dist/index.es6.js.map +1 -1
- package/dist/index.es60.js +2 -30
- package/dist/index.es60.js.map +1 -1
- package/dist/index.es61.js +2 -602
- package/dist/index.es61.js.map +1 -1
- package/dist/index.es62.js +2 -6
- package/dist/index.es62.js.map +1 -1
- package/dist/index.es63.js +30 -2
- package/dist/index.es63.js.map +1 -1
- package/dist/index.es64.js +601 -106
- package/dist/index.es64.js.map +1 -1
- package/dist/index.es65.js +107 -10
- package/dist/index.es65.js.map +1 -1
- package/dist/index.es66.js +10 -2
- package/dist/index.es66.js.map +1 -1
- package/dist/index.es67.js +27 -54
- package/dist/index.es67.js.map +1 -1
- package/dist/index.es68.js +56 -47
- package/dist/index.es68.js.map +1 -1
- package/dist/index.es69.js +46 -37
- package/dist/index.es69.js.map +1 -1
- package/dist/index.es70.js +38 -11
- package/dist/index.es70.js.map +1 -1
- package/dist/index.es71.js +10 -13
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +14 -29
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js +29 -14
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +13 -12
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +13 -12
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +51 -2
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +65 -2
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js +10 -27
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +2 -51
- package/dist/index.es79.js.map +1 -1
- package/dist/index.es80.js +2 -65
- package/dist/index.es80.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/LocationMarkers.js +2 -2
- package/types/components/LocationMarker.js.flow +82 -0
- package/types/components/LocationMarkers.js.flow +2 -2
package/dist/index.es233.js
CHANGED
|
@@ -1,49 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const o = n.clone();
|
|
4
|
-
return o.pixelsToGLUnits = n.pixelsToGLUnits, o;
|
|
5
|
-
}
|
|
6
|
-
function r(n, o) {
|
|
7
|
-
if (!n.getProjection)
|
|
8
|
-
return;
|
|
9
|
-
const i = n.getProjection(), e = o.getProjection();
|
|
10
|
-
c(i, e) || o.setProjection(i);
|
|
11
|
-
}
|
|
12
|
-
function d(n) {
|
|
13
|
-
return {
|
|
14
|
-
longitude: n.center.lng,
|
|
15
|
-
latitude: n.center.lat,
|
|
16
|
-
zoom: n.zoom,
|
|
17
|
-
pitch: n.pitch,
|
|
18
|
-
bearing: n.bearing,
|
|
19
|
-
padding: n.padding
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
function s(n, o) {
|
|
23
|
-
const i = o.viewState || o;
|
|
24
|
-
let e = !1;
|
|
25
|
-
if ("longitude" in i && "latitude" in i) {
|
|
26
|
-
const t = n.center;
|
|
27
|
-
n.center = new t.constructor(i.longitude, i.latitude), e = e || t !== n.center;
|
|
28
|
-
}
|
|
29
|
-
if ("zoom" in i) {
|
|
30
|
-
const t = n.zoom;
|
|
31
|
-
n.zoom = i.zoom, e = e || t !== n.zoom;
|
|
32
|
-
}
|
|
33
|
-
if ("bearing" in i) {
|
|
34
|
-
const t = n.bearing;
|
|
35
|
-
n.bearing = i.bearing, e = e || t !== n.bearing;
|
|
36
|
-
}
|
|
37
|
-
if ("pitch" in i) {
|
|
38
|
-
const t = n.pitch;
|
|
39
|
-
n.pitch = i.pitch, e = e || t !== n.pitch;
|
|
40
|
-
}
|
|
41
|
-
return i.padding && !n.isPaddingEqual(i.padding) && (e = !0, n.padding = i.padding), e;
|
|
42
|
-
}
|
|
1
|
+
import t from "./index.es206.js";
|
|
2
|
+
const a = t("Object");
|
|
43
3
|
export {
|
|
44
|
-
|
|
45
|
-
g as cloneTransform,
|
|
46
|
-
r as syncProjection,
|
|
47
|
-
d as transformToViewState
|
|
4
|
+
a as default
|
|
48
5
|
};
|
|
49
6
|
//# sourceMappingURL=index.es233.js.map
|
package/dist/index.es233.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es233.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index.es233.js","sources":["../../../node_modules/underscore/modules/_hasObjectTag.js"],"sourcesContent":["import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n"],"names":["hasObjectTag","tagTester"],"mappings":";AAEA,MAAeA,IAAAC,EAAU,QAAQ;","x_google_ignoreList":[0]}
|
package/dist/index.es234.js
CHANGED
|
@@ -1,26 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
if (typeof r == "string" || ("toJS" in r && (r = r.toJS()), !r.layers))
|
|
6
|
-
return r;
|
|
7
|
-
const t = {};
|
|
8
|
-
for (const e of r.layers)
|
|
9
|
-
t[e.id] = e;
|
|
10
|
-
const f = r.layers.map((e) => {
|
|
11
|
-
let n = null;
|
|
12
|
-
"interactive" in e && (n = Object.assign({}, e), delete n.interactive);
|
|
13
|
-
const o = t[e.ref];
|
|
14
|
-
if (o) {
|
|
15
|
-
n = n || Object.assign({}, e), delete n.ref;
|
|
16
|
-
for (const i of a)
|
|
17
|
-
i in o && (n[i] = o[i]);
|
|
18
|
-
}
|
|
19
|
-
return n || e;
|
|
20
|
-
});
|
|
21
|
-
return { ...r, layers: f };
|
|
1
|
+
function t(r) {
|
|
2
|
+
return function(n) {
|
|
3
|
+
return n == null ? void 0 : n[r];
|
|
4
|
+
};
|
|
22
5
|
}
|
|
23
6
|
export {
|
|
24
|
-
|
|
7
|
+
t as default
|
|
25
8
|
};
|
|
26
9
|
//# sourceMappingURL=index.es234.js.map
|
package/dist/index.es234.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es234.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index.es234.js","sources":["../../../node_modules/underscore/modules/_shallowProperty.js"],"sourcesContent":["// Internal helper to generate a function to obtain property `key` from `obj`.\nexport default function shallowProperty(key) {\n return function(obj) {\n return obj == null ? void 0 : obj[key];\n };\n}\n"],"names":["shallowProperty","key","obj"],"mappings":"AACA,SAAwBA,EAAgBC,GAAK;AAC3C,SAAO,SAASC,GAAK;AACnB,WAAOA,KAAO,OAAO,SAASA,EAAID,CAAG;AAAA,EAAA;AAEzC;","x_google_ignoreList":[0]}
|
package/dist/index.es235.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { MAX_ARRAY_INDEX as o } from "./index.es24.js";
|
|
2
|
+
function u(e) {
|
|
3
|
+
return function(t) {
|
|
4
|
+
var r = e(t);
|
|
5
|
+
return typeof r == "number" && r >= 0 && r <= o;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
3
8
|
export {
|
|
4
|
-
|
|
9
|
+
u as default
|
|
5
10
|
};
|
|
6
11
|
//# sourceMappingURL=index.es235.js.map
|
package/dist/index.es235.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es235.js","sources":["../../../node_modules/underscore/modules/
|
|
1
|
+
{"version":3,"file":"index.es235.js","sources":["../../../node_modules/underscore/modules/_createSizePropertyCheck.js"],"sourcesContent":["import { MAX_ARRAY_INDEX } from './_setup.js';\n\n// Common internal logic for `isArrayLike` and `isBufferLike`.\nexport default function createSizePropertyCheck(getSizeProperty) {\n return function(collection) {\n var sizeProperty = getSizeProperty(collection);\n return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;\n }\n}\n"],"names":["createSizePropertyCheck","getSizeProperty","collection","sizeProperty","MAX_ARRAY_INDEX"],"mappings":";AAGA,SAAwBA,EAAwBC,GAAiB;AAC/D,SAAO,SAASC,GAAY;AACtB,QAAAC,IAAeF,EAAgBC,CAAU;AAC7C,WAAO,OAAOC,KAAgB,YAAYA,KAAgB,KAAKA,KAAgBC;AAAA,EAAA;AAEnF;","x_google_ignoreList":[0]}
|
package/dist/index.es236.js
CHANGED
|
@@ -1,11 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { deepEqual as c } from "./index.es203.js";
|
|
2
|
+
function g(n) {
|
|
3
|
+
const o = n.clone();
|
|
4
|
+
return o.pixelsToGLUnits = n.pixelsToGLUnits, o;
|
|
5
|
+
}
|
|
6
|
+
function r(n, o) {
|
|
7
|
+
if (!n.getProjection)
|
|
8
|
+
return;
|
|
9
|
+
const i = n.getProjection(), e = o.getProjection();
|
|
10
|
+
c(i, e) || o.setProjection(i);
|
|
11
|
+
}
|
|
12
|
+
function d(n) {
|
|
13
|
+
return {
|
|
14
|
+
longitude: n.center.lng,
|
|
15
|
+
latitude: n.center.lat,
|
|
16
|
+
zoom: n.zoom,
|
|
17
|
+
pitch: n.pitch,
|
|
18
|
+
bearing: n.bearing,
|
|
19
|
+
padding: n.padding
|
|
6
20
|
};
|
|
7
21
|
}
|
|
22
|
+
function s(n, o) {
|
|
23
|
+
const i = o.viewState || o;
|
|
24
|
+
let e = !1;
|
|
25
|
+
if ("longitude" in i && "latitude" in i) {
|
|
26
|
+
const t = n.center;
|
|
27
|
+
n.center = new t.constructor(i.longitude, i.latitude), e = e || t !== n.center;
|
|
28
|
+
}
|
|
29
|
+
if ("zoom" in i) {
|
|
30
|
+
const t = n.zoom;
|
|
31
|
+
n.zoom = i.zoom, e = e || t !== n.zoom;
|
|
32
|
+
}
|
|
33
|
+
if ("bearing" in i) {
|
|
34
|
+
const t = n.bearing;
|
|
35
|
+
n.bearing = i.bearing, e = e || t !== n.bearing;
|
|
36
|
+
}
|
|
37
|
+
if ("pitch" in i) {
|
|
38
|
+
const t = n.pitch;
|
|
39
|
+
n.pitch = i.pitch, e = e || t !== n.pitch;
|
|
40
|
+
}
|
|
41
|
+
return i.padding && !n.isPaddingEqual(i.padding) && (e = !0, n.padding = i.padding), e;
|
|
42
|
+
}
|
|
8
43
|
export {
|
|
9
|
-
|
|
44
|
+
s as applyViewStateToTransform,
|
|
45
|
+
g as cloneTransform,
|
|
46
|
+
r as syncProjection,
|
|
47
|
+
d as transformToViewState
|
|
10
48
|
};
|
|
11
49
|
//# sourceMappingURL=index.es236.js.map
|
package/dist/index.es236.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es236.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index.es236.js","sources":["../../../node_modules/react-map-gl/dist/esm/utils/transform.js"],"sourcesContent":["import { deepEqual } from './deep-equal';\n/**\n * Make a copy of a transform\n * @param tr\n */\nexport function cloneTransform(tr) {\n const newTransform = tr.clone();\n // Work around mapbox bug - this value is not assigned in clone(), only in resize()\n newTransform.pixelsToGLUnits = tr.pixelsToGLUnits;\n return newTransform;\n}\n/**\n * Copy projection from one transform to another. This only applies to mapbox-gl transforms\n * @param src the transform to copy projection settings from\n * @param dest to transform to copy projection settings to\n */\nexport function syncProjection(src, dest) {\n if (!src.getProjection) {\n return;\n }\n const srcProjection = src.getProjection();\n const destProjection = dest.getProjection();\n if (!deepEqual(srcProjection, destProjection)) {\n dest.setProjection(srcProjection);\n }\n}\n/**\n * Capture a transform's current state\n * @param transform\n * @returns descriptor of the view state\n */\nexport function transformToViewState(tr) {\n return {\n longitude: tr.center.lng,\n latitude: tr.center.lat,\n zoom: tr.zoom,\n pitch: tr.pitch,\n bearing: tr.bearing,\n padding: tr.padding\n };\n}\n/* eslint-disable complexity */\n/**\n * Mutate a transform to match the given view state\n * @param transform\n * @param viewState\n * @returns true if the transform has changed\n */\nexport function applyViewStateToTransform(tr, props) {\n const v = props.viewState || props;\n let changed = false;\n if ('longitude' in v && 'latitude' in v) {\n const center = tr.center;\n // @ts-ignore\n tr.center = new center.constructor(v.longitude, v.latitude);\n changed = changed || center !== tr.center;\n }\n if ('zoom' in v) {\n const zoom = tr.zoom;\n tr.zoom = v.zoom;\n changed = changed || zoom !== tr.zoom;\n }\n if ('bearing' in v) {\n const bearing = tr.bearing;\n tr.bearing = v.bearing;\n changed = changed || bearing !== tr.bearing;\n }\n if ('pitch' in v) {\n const pitch = tr.pitch;\n tr.pitch = v.pitch;\n changed = changed || pitch !== tr.pitch;\n }\n if (v.padding && !tr.isPaddingEqual(v.padding)) {\n changed = true;\n tr.padding = v.padding;\n }\n return changed;\n}\n//# sourceMappingURL=transform.js.map"],"names":["cloneTransform","tr","newTransform","syncProjection","src","dest","srcProjection","destProjection","deepEqual","transformToViewState","applyViewStateToTransform","props","v","changed","center","zoom","bearing","pitch"],"mappings":";AAKO,SAASA,EAAeC,GAAI;AACzB,QAAAC,IAAeD,EAAG;AAExB,SAAAC,EAAa,kBAAkBD,EAAG,iBAC3BC;AACX;AAMgB,SAAAC,EAAeC,GAAKC,GAAM;AAClC,MAAA,CAACD,EAAI;AACL;AAEE,QAAAE,IAAgBF,EAAI,iBACpBG,IAAiBF,EAAK;AAC5B,EAAKG,EAAUF,GAAeC,CAAc,KACxCF,EAAK,cAAcC,CAAa;AAExC;AAMO,SAASG,EAAqBR,GAAI;AAC9B,SAAA;AAAA,IACH,WAAWA,EAAG,OAAO;AAAA,IACrB,UAAUA,EAAG,OAAO;AAAA,IACpB,MAAMA,EAAG;AAAA,IACT,OAAOA,EAAG;AAAA,IACV,SAASA,EAAG;AAAA,IACZ,SAASA,EAAG;AAAA,EAAA;AAEpB;AAQgB,SAAAS,EAA0BT,GAAIU,GAAO;AAC3C,QAAAC,IAAID,EAAM,aAAaA;AAC7B,MAAIE,IAAU;AACV,MAAA,eAAeD,KAAK,cAAcA,GAAG;AACrC,UAAME,IAASb,EAAG;AAElB,IAAAA,EAAG,SAAS,IAAIa,EAAO,YAAYF,EAAE,WAAWA,EAAE,QAAQ,GAChDC,IAAAA,KAAWC,MAAWb,EAAG;AAAA,EACvC;AACA,MAAI,UAAUW,GAAG;AACb,UAAMG,IAAOd,EAAG;AAChB,IAAAA,EAAG,OAAOW,EAAE,MACFC,IAAAA,KAAWE,MAASd,EAAG;AAAA,EACrC;AACA,MAAI,aAAaW,GAAG;AAChB,UAAMI,IAAUf,EAAG;AACnB,IAAAA,EAAG,UAAUW,EAAE,SACLC,IAAAA,KAAWG,MAAYf,EAAG;AAAA,EACxC;AACA,MAAI,WAAWW,GAAG;AACd,UAAMK,IAAQhB,EAAG;AACjB,IAAAA,EAAG,QAAQW,EAAE,OACHC,IAAAA,KAAWI,MAAUhB,EAAG;AAAA,EACtC;AACA,SAAIW,EAAE,WAAW,CAACX,EAAG,eAAeW,EAAE,OAAO,MAC/BC,IAAA,IACVZ,EAAG,UAAUW,EAAE,UAEZC;AACX;","x_google_ignoreList":[0]}
|
package/dist/index.es237.js
CHANGED
|
@@ -1,9 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const a = ["type", "source", "source-layer", "minzoom", "maxzoom", "filter", "layout"];
|
|
2
|
+
function c(r) {
|
|
3
|
+
if (!r)
|
|
4
|
+
return null;
|
|
5
|
+
if (typeof r == "string" || ("toJS" in r && (r = r.toJS()), !r.layers))
|
|
6
|
+
return r;
|
|
7
|
+
const t = {};
|
|
8
|
+
for (const e of r.layers)
|
|
9
|
+
t[e.id] = e;
|
|
10
|
+
const f = r.layers.map((e) => {
|
|
11
|
+
let n = null;
|
|
12
|
+
"interactive" in e && (n = Object.assign({}, e), delete n.interactive);
|
|
13
|
+
const o = t[e.ref];
|
|
14
|
+
if (o) {
|
|
15
|
+
n = n || Object.assign({}, e), delete n.ref;
|
|
16
|
+
for (const i of a)
|
|
17
|
+
i in o && (n[i] = o[i]);
|
|
18
|
+
}
|
|
19
|
+
return n || e;
|
|
20
|
+
});
|
|
21
|
+
return { ...r, layers: f };
|
|
5
22
|
}
|
|
6
23
|
export {
|
|
7
|
-
|
|
24
|
+
c as normalizeStyle
|
|
8
25
|
};
|
|
9
26
|
//# sourceMappingURL=index.es237.js.map
|
package/dist/index.es237.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es237.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index.es237.js","sources":["../../../node_modules/react-map-gl/dist/esm/utils/style-utils.js"],"sourcesContent":["const refProps = ['type', 'source', 'source-layer', 'minzoom', 'maxzoom', 'filter', 'layout'];\n// Prepare a map style object for diffing\n// If immutable - convert to plain object\n// Work around some issues in older styles that would fail Mapbox's diffing\nexport function normalizeStyle(style) {\n if (!style) {\n return null;\n }\n if (typeof style === 'string') {\n return style;\n }\n if ('toJS' in style) {\n style = style.toJS();\n }\n if (!style.layers) {\n return style;\n }\n const layerIndex = {};\n for (const layer of style.layers) {\n layerIndex[layer.id] = layer;\n }\n const layers = style.layers.map(layer => {\n let normalizedLayer = null;\n if ('interactive' in layer) {\n normalizedLayer = Object.assign({}, layer);\n // Breaks style diffing :(\n // @ts-ignore legacy field not typed\n delete normalizedLayer.interactive;\n }\n // Style diffing doesn't work with refs so expand them out manually before diffing.\n // @ts-ignore legacy field not typed\n const layerRef = layerIndex[layer.ref];\n if (layerRef) {\n normalizedLayer = normalizedLayer || Object.assign({}, layer);\n // @ts-ignore\n delete normalizedLayer.ref;\n // https://github.com/mapbox/mapbox-gl-js/blob/master/src/style-spec/deref.js\n for (const propName of refProps) {\n if (propName in layerRef) {\n normalizedLayer[propName] = layerRef[propName];\n }\n }\n }\n return normalizedLayer || layer;\n });\n // Do not mutate the style object provided by the user\n return { ...style, layers };\n}\n//# sourceMappingURL=style-utils.js.map"],"names":["refProps","normalizeStyle","style","layerIndex","layer","layers","normalizedLayer","layerRef","propName"],"mappings":"AAAA,MAAMA,IAAW,CAAC,QAAQ,UAAU,gBAAgB,WAAW,WAAW,UAAU,QAAQ;AAIrF,SAASC,EAAeC,GAAO;AAClC,MAAI,CAACA;AACM,WAAA;AAQP,MANA,OAAOA,KAAU,aAGjB,UAAUA,MACVA,IAAQA,EAAM,SAEd,CAACA,EAAM;AACA,WAAAA;AAEX,QAAMC,IAAa,CAAA;AACR,aAAAC,KAASF,EAAM;AACX,IAAAC,EAAAC,EAAM,EAAE,IAAIA;AAE3B,QAAMC,IAASH,EAAM,OAAO,IAAI,CAASE,MAAA;AACrC,QAAIE,IAAkB;AACtB,IAAI,iBAAiBF,MACjBE,IAAkB,OAAO,OAAO,CAAC,GAAGF,CAAK,GAGzC,OAAOE,EAAgB;AAIrB,UAAAC,IAAWJ,EAAWC,EAAM,GAAG;AACrC,QAAIG,GAAU;AACV,MAAAD,IAAkBA,KAAmB,OAAO,OAAO,IAAIF,CAAK,GAE5D,OAAOE,EAAgB;AAEvB,iBAAWE,KAAYR;AACnB,QAAIQ,KAAYD,MACID,EAAAE,CAAQ,IAAID,EAASC,CAAQ;AAAA,IAGzD;AACA,WAAOF,KAAmBF;AAAA,EAAA,CAC7B;AAEM,SAAA,EAAE,GAAGF,GAAO,QAAAG;AACvB;","x_google_ignoreList":[0]}
|
package/dist/index.es245.js
CHANGED
package/dist/index.es249.js
CHANGED
package/dist/index.es250.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { cartesian as Q, cartesianCross as T, cartesianDot as R, cartesianScale as g, cartesianAddInPlace as y, spherical as U } from "./index.es240.js";
|
|
2
2
|
import { circleStream as $ } from "./index.es239.js";
|
|
3
3
|
import { pi as v, cos as F, epsilon as x, abs as G, sqrt as b } from "./index.es241.js";
|
|
4
|
-
import J from "./index.
|
|
5
|
-
import m from "./index.
|
|
4
|
+
import J from "./index.es258.js";
|
|
5
|
+
import m from "./index.es259.js";
|
|
6
6
|
function fn(S, V) {
|
|
7
7
|
var A = F(S), C = A > 0, W = G(A) > x;
|
|
8
8
|
function X(n, i, o, e) {
|
package/dist/index.es258.js
CHANGED
|
@@ -1,74 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import F from "./index.es190.js";
|
|
5
|
-
import "./index.es189.js";
|
|
6
|
-
import G from "./index.es246.js";
|
|
7
|
-
function T(e, p, m, v) {
|
|
8
|
-
return function(g, n) {
|
|
9
|
-
var d = p(n), j = g.invert(v[0], v[1]), h = A(), c = p(h), l = !1, a, f, u, r = {
|
|
10
|
-
point: y,
|
|
11
|
-
lineStart: x,
|
|
12
|
-
lineEnd: s,
|
|
13
|
-
polygonStart: function() {
|
|
14
|
-
r.point = B, r.lineStart = w, r.lineEnd = z, f = [], a = [];
|
|
15
|
-
},
|
|
16
|
-
polygonEnd: function() {
|
|
17
|
-
r.point = y, r.lineStart = x, r.lineEnd = s, f = G(f);
|
|
18
|
-
var o = F(a, j);
|
|
19
|
-
f.length ? (l || (n.polygonStart(), l = !0), D(f, J, o, m, n)) : o && (l || (n.polygonStart(), l = !0), n.lineStart(), m(null, null, 1, n), n.lineEnd()), l && (n.polygonEnd(), l = !1), f = a = null;
|
|
20
|
-
},
|
|
21
|
-
sphere: function() {
|
|
22
|
-
n.polygonStart(), n.lineStart(), m(null, null, 1, n), n.lineEnd(), n.polygonEnd();
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
function y(o, t) {
|
|
26
|
-
var i = g(o, t);
|
|
27
|
-
e(o = i[0], t = i[1]) && n.point(o, t);
|
|
28
|
-
}
|
|
29
|
-
function q(o, t) {
|
|
30
|
-
var i = g(o, t);
|
|
31
|
-
d.point(i[0], i[1]);
|
|
32
|
-
}
|
|
33
|
-
function x() {
|
|
34
|
-
r.point = q, d.lineStart();
|
|
35
|
-
}
|
|
36
|
-
function s() {
|
|
37
|
-
r.point = y, d.lineEnd();
|
|
38
|
-
}
|
|
39
|
-
function B(o, t) {
|
|
40
|
-
u.push([o, t]);
|
|
41
|
-
var i = g(o, t);
|
|
42
|
-
c.point(i[0], i[1]);
|
|
43
|
-
}
|
|
44
|
-
function w() {
|
|
45
|
-
c.lineStart(), u = [];
|
|
46
|
-
}
|
|
47
|
-
function z() {
|
|
48
|
-
B(u[0][0], u[0][1]), c.lineEnd();
|
|
49
|
-
var o = c.clean(), t = h.result(), i, I = t.length, P, E, C;
|
|
50
|
-
if (u.pop(), a.push(u), u = null, !!I) {
|
|
51
|
-
if (o & 1) {
|
|
52
|
-
if (E = t[0], (P = E.length - 1) > 0) {
|
|
53
|
-
for (l || (n.polygonStart(), l = !0), n.lineStart(), i = 0; i < P; ++i)
|
|
54
|
-
n.point((C = E[i])[0], C[1]);
|
|
55
|
-
n.lineEnd();
|
|
56
|
-
}
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
I > 1 && o & 2 && t.push(t.pop().concat(t.shift())), f.push(t.filter(H));
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return r;
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
function H(e) {
|
|
66
|
-
return e.length > 1;
|
|
67
|
-
}
|
|
68
|
-
function J(e, p) {
|
|
69
|
-
return ((e = e.x)[0] < 0 ? e[1] - S - R : S - e[1]) - ((p = p.x)[0] < 0 ? p[1] - S - R : S - p[1]);
|
|
1
|
+
import { abs as n, epsilon as r } from "./index.es241.js";
|
|
2
|
+
function i(o, t) {
|
|
3
|
+
return n(o[0] - t[0]) < r && n(o[1] - t[1]) < r;
|
|
70
4
|
}
|
|
71
5
|
export {
|
|
72
|
-
|
|
6
|
+
i as default
|
|
73
7
|
};
|
|
74
8
|
//# sourceMappingURL=index.es258.js.map
|
package/dist/index.es258.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es258.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.es258.js","sources":["../../../node_modules/d3-geo/src/pointEqual.js"],"sourcesContent":["import {abs, epsilon} from \"./math\";\n\nexport default function(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n"],"names":["pointEqual","a","b","abs","epsilon"],"mappings":";AAEA,SAAAA,EAAwBC,GAAGC,GAAG;AAC5B,SAAOC,EAAIF,EAAE,CAAC,IAAIC,EAAE,CAAC,CAAC,IAAIE,KAAWD,EAAIF,EAAE,CAAC,IAAIC,EAAE,CAAC,CAAC,IAAIE;AAC1D;","x_google_ignoreList":[0]}
|
package/dist/index.es259.js
CHANGED
|
@@ -1,8 +1,74 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import A from "./index.es243.js";
|
|
2
|
+
import D from "./index.es245.js";
|
|
3
|
+
import { halfPi as S, epsilon as R } from "./index.es241.js";
|
|
4
|
+
import F from "./index.es190.js";
|
|
5
|
+
import "./index.es189.js";
|
|
6
|
+
import G from "./index.es246.js";
|
|
7
|
+
function T(e, p, m, v) {
|
|
8
|
+
return function(g, n) {
|
|
9
|
+
var d = p(n), j = g.invert(v[0], v[1]), h = A(), c = p(h), l = !1, a, f, u, r = {
|
|
10
|
+
point: y,
|
|
11
|
+
lineStart: x,
|
|
12
|
+
lineEnd: s,
|
|
13
|
+
polygonStart: function() {
|
|
14
|
+
r.point = B, r.lineStart = w, r.lineEnd = z, f = [], a = [];
|
|
15
|
+
},
|
|
16
|
+
polygonEnd: function() {
|
|
17
|
+
r.point = y, r.lineStart = x, r.lineEnd = s, f = G(f);
|
|
18
|
+
var o = F(a, j);
|
|
19
|
+
f.length ? (l || (n.polygonStart(), l = !0), D(f, J, o, m, n)) : o && (l || (n.polygonStart(), l = !0), n.lineStart(), m(null, null, 1, n), n.lineEnd()), l && (n.polygonEnd(), l = !1), f = a = null;
|
|
20
|
+
},
|
|
21
|
+
sphere: function() {
|
|
22
|
+
n.polygonStart(), n.lineStart(), m(null, null, 1, n), n.lineEnd(), n.polygonEnd();
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
function y(o, t) {
|
|
26
|
+
var i = g(o, t);
|
|
27
|
+
e(o = i[0], t = i[1]) && n.point(o, t);
|
|
28
|
+
}
|
|
29
|
+
function q(o, t) {
|
|
30
|
+
var i = g(o, t);
|
|
31
|
+
d.point(i[0], i[1]);
|
|
32
|
+
}
|
|
33
|
+
function x() {
|
|
34
|
+
r.point = q, d.lineStart();
|
|
35
|
+
}
|
|
36
|
+
function s() {
|
|
37
|
+
r.point = y, d.lineEnd();
|
|
38
|
+
}
|
|
39
|
+
function B(o, t) {
|
|
40
|
+
u.push([o, t]);
|
|
41
|
+
var i = g(o, t);
|
|
42
|
+
c.point(i[0], i[1]);
|
|
43
|
+
}
|
|
44
|
+
function w() {
|
|
45
|
+
c.lineStart(), u = [];
|
|
46
|
+
}
|
|
47
|
+
function z() {
|
|
48
|
+
B(u[0][0], u[0][1]), c.lineEnd();
|
|
49
|
+
var o = c.clean(), t = h.result(), i, I = t.length, P, E, C;
|
|
50
|
+
if (u.pop(), a.push(u), u = null, !!I) {
|
|
51
|
+
if (o & 1) {
|
|
52
|
+
if (E = t[0], (P = E.length - 1) > 0) {
|
|
53
|
+
for (l || (n.polygonStart(), l = !0), n.lineStart(), i = 0; i < P; ++i)
|
|
54
|
+
n.point((C = E[i])[0], C[1]);
|
|
55
|
+
n.lineEnd();
|
|
56
|
+
}
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
I > 1 && o & 2 && t.push(t.pop().concat(t.shift())), f.push(t.filter(H));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return r;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function H(e) {
|
|
66
|
+
return e.length > 1;
|
|
67
|
+
}
|
|
68
|
+
function J(e, p) {
|
|
69
|
+
return ((e = e.x)[0] < 0 ? e[1] - S - R : S - e[1]) - ((p = p.x)[0] < 0 ? p[1] - S - R : S - p[1]);
|
|
4
70
|
}
|
|
5
71
|
export {
|
|
6
|
-
|
|
72
|
+
T as default
|
|
7
73
|
};
|
|
8
74
|
//# sourceMappingURL=index.es259.js.map
|
package/dist/index.es259.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es259.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.es259.js","sources":["../../../node_modules/d3-geo/src/clip/index.js"],"sourcesContent":["import clipBuffer from \"./buffer\";\nimport clipPolygon from \"./polygon\";\nimport {epsilon, halfPi} from \"../math\";\nimport polygonContains from \"../polygonContains\";\nimport {merge} from \"d3-array\";\n\nexport default function(pointVisible, clipLine, interpolate, start) {\n return function(rotate, sink) {\n var line = clipLine(sink),\n rotatedStart = rotate.invert(start[0], start[1]),\n ringBuffer = clipBuffer(),\n ringSink = clipLine(ringBuffer),\n polygonStarted = false,\n polygon,\n segments,\n ring;\n\n var clip = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() {\n clip.point = pointRing;\n clip.lineStart = ringStart;\n clip.lineEnd = ringEnd;\n segments = [];\n polygon = [];\n },\n polygonEnd: function() {\n clip.point = point;\n clip.lineStart = lineStart;\n clip.lineEnd = lineEnd;\n segments = merge(segments);\n var startInside = polygonContains(polygon, rotatedStart);\n if (segments.length) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n clipPolygon(segments, compareIntersection, startInside, interpolate, sink);\n } else if (startInside) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n }\n if (polygonStarted) sink.polygonEnd(), polygonStarted = false;\n segments = polygon = null;\n },\n sphere: function() {\n sink.polygonStart();\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n sink.polygonEnd();\n }\n };\n\n function point(lambda, phi) {\n var point = rotate(lambda, phi);\n if (pointVisible(lambda = point[0], phi = point[1])) sink.point(lambda, phi);\n }\n\n function pointLine(lambda, phi) {\n var point = rotate(lambda, phi);\n line.point(point[0], point[1]);\n }\n\n function lineStart() {\n clip.point = pointLine;\n line.lineStart();\n }\n\n function lineEnd() {\n clip.point = point;\n line.lineEnd();\n }\n\n function pointRing(lambda, phi) {\n ring.push([lambda, phi]);\n var point = rotate(lambda, phi);\n ringSink.point(point[0], point[1]);\n }\n\n function ringStart() {\n ringSink.lineStart();\n ring = [];\n }\n\n function ringEnd() {\n pointRing(ring[0][0], ring[0][1]);\n ringSink.lineEnd();\n\n var clean = ringSink.clean(),\n ringSegments = ringBuffer.result(),\n i, n = ringSegments.length, m,\n segment,\n point;\n\n ring.pop();\n polygon.push(ring);\n ring = null;\n\n if (!n) return;\n\n // No intersections.\n if (clean & 1) {\n segment = ringSegments[0];\n if ((m = segment.length - 1) > 0) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);\n sink.lineEnd();\n }\n return;\n }\n\n // Rejoin connected segments.\n // TODO reuse ringBuffer.rejoin()?\n if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));\n\n segments.push(ringSegments.filter(validSegment));\n }\n\n return clip;\n };\n}\n\nfunction validSegment(segment) {\n return segment.length > 1;\n}\n\n// Intersections are sorted along the clip edge. For both antimeridian cutting\n// and circle clipping, the same comparison is used.\nfunction compareIntersection(a, b) {\n return ((a = a.x)[0] < 0 ? a[1] - halfPi - epsilon : halfPi - a[1])\n - ((b = b.x)[0] < 0 ? b[1] - halfPi - epsilon : halfPi - b[1]);\n}\n"],"names":["clip","pointVisible","clipLine","interpolate","start","rotate","sink","line","rotatedStart","ringBuffer","clipBuffer","ringSink","polygonStarted","polygon","segments","ring","point","lineStart","lineEnd","pointRing","ringStart","ringEnd","merge","startInside","polygonContains","clipPolygon","compareIntersection","lambda","phi","pointLine","clean","ringSegments","n","m","segment","validSeg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IAAI2B,GAAG,EAAE;AAAQ,cAAA3B,EAAA,OAAOU,IAAQkB,EAAQ,CAAC,GAAG,CAAC,GAAGlB,EAAM,CAAC,CAAC;AACpE,YAAAV,EAAK,QAAQ;AAAA,UACf;AACA;AAAA,QACF;AAII,QAAA0B,IAAI,KAAKF,IAAQ,KAAgBC,EAAA,KAAKA,EAAa,IAAI,EAAE,OAAOA,EAAa,MAAO,CAAA,CAAC,GAEzFjB,EAAS,KAAKiB,EAAa,OAAOI,CAAY,CAAC;AAAA;AAAA,IACjD;AAEO,WAAAnC;AAAA,EAAA;AAEX;AAEA,SAASmC,EAAaD,GAAS;AAC7B,SAAOA,EAAQ,SAAS;AAC1B;AAIA,SAASR,EAAoBU,GAAGC,GAAG;AACjC,WAASD,IAAIA,EAAE,GAAG,CAAC,IAAI,IAAIA,EAAE,CAAC,IAAIE,IAASC,IAAUD,IAASF,EAAE,CAAC,OACxDC,IAAIA,EAAE,GAAG,CAAC,IAAI,IAAIA,EAAE,CAAC,IAAIC,IAASC,IAAUD,IAASD,EAAE,CAAC;AACnE;","x_google_ignoreList":[0]}
|
package/dist/index.es26.js
CHANGED
package/dist/index.es52.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as m from "react";
|
|
2
|
-
import p from "./index.
|
|
3
|
-
import "./index.es68.js";
|
|
2
|
+
import p from "./index.es68.js";
|
|
4
3
|
import "./index.es69.js";
|
|
5
4
|
import "./index.es70.js";
|
|
6
|
-
import
|
|
7
|
-
import "./index.es72.js";
|
|
5
|
+
import "./index.es71.js";
|
|
6
|
+
import i from "./index.es72.js";
|
|
8
7
|
import "./index.es73.js";
|
|
9
8
|
import "./index.es74.js";
|
|
10
9
|
import "./index.es75.js";
|
|
10
|
+
import "./index.es78.js";
|
|
11
11
|
const n = import("./index.es19.js").then((r) => r.o);
|
|
12
12
|
m.forwardRef(function(o, t) {
|
|
13
13
|
return p(o, t, n);
|
package/dist/index.es59.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
var
|
|
1
|
+
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function l(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
o as commonjsGlobal,
|
|
7
|
+
l as getDefaultExportFromCjs
|
|
4
8
|
};
|
|
5
9
|
//# sourceMappingURL=index.es59.js.map
|
package/dist/index.es59.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es59.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es59.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/index.es6.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as i } from "./index.es17.js";
|
|
2
|
-
import {
|
|
2
|
+
import { useLoadedMap as m, PulsingMarkerLayer as n, GeoJSONLayer as l } from "@peripleo/maplibre";
|
|
3
3
|
import { useMemo as u, useEffect as d } from "react";
|
|
4
4
|
import f from "./index.es23.js";
|
|
5
5
|
import "./index.es24.js";
|
|
@@ -32,11 +32,11 @@ import "./index.es50.js";
|
|
|
32
32
|
import r from "./index.es13.js";
|
|
33
33
|
import c from "./index.es12.js";
|
|
34
34
|
const s = 2, x = (t) => {
|
|
35
|
-
const o =
|
|
35
|
+
const o = m(), e = u(() => f.isEmpty(t.data) ? null : t.data, [t.data]);
|
|
36
36
|
return d(() => {
|
|
37
37
|
if (o && e && t.fitBoundingBox) {
|
|
38
|
-
const
|
|
39
|
-
|
|
38
|
+
const a = c.getBoundingBox(e, t.buffer);
|
|
39
|
+
a && o.fitBounds(a, t.boundingBoxOptions, t.boundingBoxData);
|
|
40
40
|
}
|
|
41
41
|
}, [o, t.buffer, t.data, t.boundingBoxData, t.boundingBoxOptions, t.fitBoundingBox]), e ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
42
42
|
t.animate && /* @__PURE__ */ i.jsx(
|
package/dist/index.es6.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es6.js","sources":["../src/components/LocationMarkers.js"],"sourcesContent":["// @flow\n\nimport { GeoJSONLayer, PulsingMarkerLayer,
|
|
1
|
+
{"version":3,"file":"index.es6.js","sources":["../src/components/LocationMarkers.js"],"sourcesContent":["// @flow\n\nimport { GeoJSONLayer, PulsingMarkerLayer, useLoadedMap } from '@peripleo/maplibre';\nimport React, { useEffect, useMemo } from 'react';\nimport _ from 'underscore';\nimport MapStyles from '../utils/MapStyles';\nimport MapUtils from '../utils/Map';\n\ntype Props = {\n /**\n * If `true`, the point marker will display with a pulsing animation.\n */\n animate?: boolean,\n\n /**\n * (Optional) data to pass to the fitToBounds function.\n */\n boundingBoxData?: any,\n\n /**\n * (Optional) options to pass to the fitToBounds function.\n * See [spec](https://maplibre.org/maplibre-gl-js/docs/API/types/FitBoundsOptions/).\n */\n boundingBoxOptions?: any,\n\n /**\n * The number of miles to buffer the GeoJSON data.\n */\n buffer: number,\n\n /**\n * If true, markers will be clustered before the specified zoom level.\n */\n cluster?: boolean,\n\n /**\n * Max zoom to cluster points on.\n */\n clusterMaxZoom?: number,\n\n /**\n * Minimum number of points necessary to form a cluster.\n */\n clusterMinPoints?: number,\n\n /**\n * An object defining custom properties on the generated clusters.\n */\n clusterProperties?: any,\n\n /**\n * Radius of each cluster when clustering point.\n */\n clusterRadius?: number,\n\n /**\n * The GeoJSON data representing the location.\n */\n data: { [key: string]: any },\n\n /**\n * GeoJSON layer fill style.\n */\n fillStyle?: { [key: string]: any },\n\n /**\n * If `true`, the map will fit the bounding box around the passed data.\n */\n fitBoundingBox?: boolean,\n\n /**\n * If `true`, the selection and hover state will apply to the layer.\n */\n interactive?: boolean,\n\n /**\n * An ID value to apply to the layer.\n */\n layerId?: string,\n\n /**\n * GeoJSON layer point style.\n */\n pointStyle?: { [key: string]: any },\n\n /**\n * GeoJSON layer stroke style\n */\n strokeStyle?: { [key: string]: any }\n};\n\nconst DEFAULT_BUFFER = 2;\n\n/**\n * This component renders a location marker to be used in a Peripleo context.\n */\nconst LocationMarkers = (props: Props) => {\n const map = useLoadedMap();\n\n /**\n * Memo-izes the data prop.\n *\n * @type {{[p: string]: *}}\n */\n const data = useMemo(() => (_.isEmpty(props.data) ? null : props.data), [props.data]);\n\n /**\n * Sets the bounding box on the map.\n */\n useEffect(() => {\n if (map && data && props.fitBoundingBox) {\n const bbox = MapUtils.getBoundingBox(data, props.buffer);\n\n if (bbox) {\n map.fitBounds(bbox, props.boundingBoxOptions, props.boundingBoxData);\n }\n }\n }, [map, props.buffer, props.data, props.boundingBoxData, props.boundingBoxOptions, props.fitBoundingBox]);\n\n if (!data) {\n return null;\n }\n\n return (\n <>\n { props.animate && (\n <PulsingMarkerLayer\n data={props.data}\n id={props.layerId}\n />\n )}\n <GeoJSONLayer\n cluster={props.cluster}\n clusterMaxZoom={props.clusterMaxZoom}\n clusterMinPoints={props.clusterMinPoints}\n clusterProperties={props.clusterProperties}\n clusterRadius={props.clusterRadius}\n data={props.data}\n fillStyle={props.fillStyle}\n id={props.layerId}\n interactive={props.interactive}\n strokeStyle={props.strokeStyle}\n pointStyle={props.pointStyle}\n />\n </>\n );\n};\n\nLocationMarkers.defaultProps = {\n buffer: DEFAULT_BUFFER,\n fillStyle: MapStyles.fill,\n fitBoundingBox: true,\n pointStyle: MapStyles.point,\n strokeStyle: MapStyles.stroke\n};\n\nexport default LocationMarkers;\n"],"names":["DEFAULT_BUFFER","LocationMarkers","props","map","useLoadedMap","data","useMemo","_","useEffect","bbox","MapUtils","jsxs","Fragment","jsx","PulsingMarkerLayer","GeoJSONLayer","MapStyles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2FA,MAAMA,IAAiB,GAKjBC,IAAkB,CAACC,MAAiB;AACxC,QAA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";
|
|
3
|
-
var p;
|
|
4
|
-
function v() {
|
|
5
|
-
if (p)
|
|
6
|
-
return t;
|
|
7
|
-
p = 1;
|
|
8
|
-
/**
|
|
9
|
-
* @license React
|
|
10
|
-
* react-jsx-runtime.production.min.js
|
|
11
|
-
*
|
|
12
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the MIT license found in the
|
|
15
|
-
* LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/
|
|
17
|
-
var s = R, m = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, a = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
-
function u(o, r, i) {
|
|
19
|
-
var e, n = {}, _ = null, f = null;
|
|
20
|
-
i !== void 0 && (_ = "" + i), r.key !== void 0 && (_ = "" + r.key), r.ref !== void 0 && (f = r.ref);
|
|
21
|
-
for (e in r)
|
|
22
|
-
c.call(r, e) && !d.hasOwnProperty(e) && (n[e] = r[e]);
|
|
23
|
-
if (o && o.defaultProps)
|
|
24
|
-
for (e in r = o.defaultProps, r)
|
|
25
|
-
n[e] === void 0 && (n[e] = r[e]);
|
|
26
|
-
return { $$typeof: m, type: o, key: _, ref: f, props: n, _owner: a.current };
|
|
27
|
-
}
|
|
28
|
-
return t.Fragment = l, t.jsx = u, t.jsxs = u, t;
|
|
29
|
-
}
|
|
1
|
+
var a = { exports: {} };
|
|
30
2
|
export {
|
|
31
|
-
|
|
3
|
+
a as __module
|
|
32
4
|
};
|
|
33
5
|
//# sourceMappingURL=index.es60.js.map
|
package/dist/index.es60.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es60.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.es60.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|