@performant-software/geospatial 2.2.23-beta.7 → 2.2.23
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/index.cjs14.js +1 -1
- package/dist/index.cjs183.js +1 -1
- package/dist/index.cjs183.js.map +1 -1
- package/dist/index.cjs184.js +1 -1
- package/dist/index.cjs184.js.map +1 -1
- package/dist/index.cjs185.js +1 -4
- package/dist/index.cjs185.js.map +1 -1
- package/dist/index.cjs186.js +1 -1
- package/dist/index.cjs186.js.map +1 -1
- package/dist/index.cjs187.js +1 -1
- package/dist/index.cjs187.js.map +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs188.js.map +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs189.js.map +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs190.js.map +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs191.js.map +1 -1
- package/dist/index.cjs192.js +1 -1
- package/dist/index.cjs192.js.map +1 -1
- package/dist/index.cjs193.js +4 -1
- package/dist/index.cjs193.js.map +1 -1
- package/dist/index.cjs194.js +1 -1
- package/dist/index.cjs194.js.map +1 -1
- package/dist/index.cjs195.js +1 -1
- package/dist/index.cjs195.js.map +1 -1
- package/dist/index.cjs196.js +1 -1
- package/dist/index.cjs196.js.map +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs197.js.map +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs198.js.map +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs199.js.map +1 -1
- package/dist/index.cjs200.js +1 -1
- package/dist/index.cjs200.js.map +1 -1
- package/dist/index.cjs201.js +1 -1
- package/dist/index.cjs201.js.map +1 -1
- package/dist/index.cjs202.js +1 -1
- package/dist/index.cjs202.js.map +1 -1
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs203.js.map +1 -1
- package/dist/index.cjs204.js +1 -1
- package/dist/index.cjs204.js.map +1 -1
- package/dist/index.cjs205.js +1 -1
- package/dist/index.cjs205.js.map +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.cjs233.js +1 -1
- package/dist/index.cjs235.js +1 -1
- package/dist/index.cjs235.js.map +1 -1
- package/dist/index.cjs237.js +1 -1
- package/dist/index.cjs237.js.map +1 -1
- package/dist/index.cjs239.js +1 -1
- package/dist/index.cjs242.js +1 -1
- package/dist/index.cjs245.js +1 -1
- package/dist/index.cjs248.js +1 -1
- package/dist/index.cjs250.js +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs254.js +1 -1
- package/dist/index.cjs257.js +1 -1
- package/dist/index.cjs257.js.map +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.cjs26.js +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs6.js.map +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs62.js.map +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs63.js.map +1 -1
- package/dist/index.cjs64.js +1 -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.cjs67.js +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.es14.js +2 -2
- package/dist/index.es183.js +320 -7
- package/dist/index.es183.js.map +1 -1
- package/dist/index.es184.js +71 -144
- package/dist/index.es184.js.map +1 -1
- package/dist/index.es185.js +3 -12197
- package/dist/index.es185.js.map +1 -1
- package/dist/index.es186.js +18 -3
- package/dist/index.es186.js.map +1 -1
- package/dist/index.es187.js +13 -3
- package/dist/index.es187.js.map +1 -1
- package/dist/index.es188.js +28 -33
- package/dist/index.es188.js.map +1 -1
- package/dist/index.es189.js +7 -3
- package/dist/index.es189.js.map +1 -1
- package/dist/index.es19.js +1 -1
- package/dist/index.es190.js +2 -23
- package/dist/index.es190.js.map +1 -1
- package/dist/index.es191.js +10 -2
- package/dist/index.es191.js.map +1 -1
- package/dist/index.es192.js +150 -3
- package/dist/index.es192.js.map +1 -1
- package/dist/index.es193.js +12199 -2
- package/dist/index.es193.js.map +1 -1
- package/dist/index.es194.js +3 -34
- package/dist/index.es194.js.map +1 -1
- package/dist/index.es195.js +2 -14
- package/dist/index.es195.js.map +1 -1
- package/dist/index.es196.js +35 -13
- package/dist/index.es196.js.map +1 -1
- package/dist/index.es197.js +3 -11
- package/dist/index.es197.js.map +1 -1
- package/dist/index.es198.js +21 -319
- package/dist/index.es198.js.map +1 -1
- package/dist/index.es199.js +2 -77
- package/dist/index.es199.js.map +1 -1
- package/dist/index.es200.js +3 -5
- package/dist/index.es200.js.map +1 -1
- package/dist/index.es201.js +2 -18
- package/dist/index.es201.js.map +1 -1
- package/dist/index.es202.js +31 -10
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es203.js +13 -31
- package/dist/index.es203.js.map +1 -1
- package/dist/index.es204.js +13 -4
- package/dist/index.es204.js.map +1 -1
- package/dist/index.es205.js +9 -2
- package/dist/index.es205.js.map +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.es233.js +1 -1
- package/dist/index.es235.js +6 -3
- package/dist/index.es235.js.map +1 -1
- package/dist/index.es237.js +3 -6
- package/dist/index.es237.js.map +1 -1
- package/dist/index.es239.js +1 -1
- package/dist/index.es242.js +1 -1
- package/dist/index.es245.js +1 -1
- package/dist/index.es248.js +2 -2
- package/dist/index.es250.js +1 -1
- package/dist/index.es253.js +1 -1
- package/dist/index.es254.js +1 -1
- package/dist/index.es257.js +15 -4
- package/dist/index.es257.js.map +1 -1
- package/dist/index.es258.js +4 -15
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +2 -2
- package/dist/index.es26.js +1 -1
- package/dist/index.es56.js +1 -1
- package/dist/index.es58.js +12 -12
- package/dist/index.es6.js +19 -19
- package/dist/index.es6.js.map +1 -1
- package/dist/index.es62.js +106 -5
- package/dist/index.es62.js.map +1 -1
- package/dist/index.es63.js +10 -2
- package/dist/index.es63.js.map +1 -1
- package/dist/index.es64.js +5 -106
- package/dist/index.es64.js.map +1 -1
- package/dist/index.es65.js +2 -10
- package/dist/index.es65.js.map +1 -1
- package/dist/index.es67.js +4 -4
- package/dist/index.es68.js +2 -2
- package/dist/index.es69.js +2 -2
- package/dist/index.es70.js +1 -1
- package/dist/index.es71.js +1 -1
- package/dist/index.es72.js +1 -1
- package/dist/index.es73.js +1 -1
- package/dist/index.es74.js +1 -1
- package/dist/index.es78.js +1 -1
- package/dist/index.es79.js +2 -2
- package/dist/index.es80.js +2 -2
- package/package.json +1 -1
- package/src/components/LocationMarkers.js +1 -11
- package/types/components/LocationMarkers.js.flow +1 -11
package/dist/index.es6.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useMap as
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import
|
|
1
|
+
import { j as i } from "./index.es17.js";
|
|
2
|
+
import { useMap as a, PulsingMarkerLayer as n, GeoJSONLayer as l } from "@peripleo/maplibre";
|
|
3
|
+
import { useMemo as u, useEffect as d } from "react";
|
|
4
|
+
import f from "./index.es23.js";
|
|
5
5
|
import "./index.es24.js";
|
|
6
6
|
import "./index.es25.js";
|
|
7
7
|
import "./index.es26.js";
|
|
@@ -30,26 +30,26 @@ import "./index.es48.js";
|
|
|
30
30
|
import "./index.es49.js";
|
|
31
31
|
import "./index.es50.js";
|
|
32
32
|
import r from "./index.es13.js";
|
|
33
|
-
import
|
|
34
|
-
const
|
|
35
|
-
const
|
|
33
|
+
import s from "./index.es12.js";
|
|
34
|
+
const c = 2, x = (t) => {
|
|
35
|
+
const o = a(), e = u(() => f.isEmpty(t.data) ? null : t.data, [t.data]);
|
|
36
36
|
return d(() => {
|
|
37
|
-
if (
|
|
38
|
-
const m =
|
|
39
|
-
m &&
|
|
37
|
+
if (o && e && t.fitBoundingBox) {
|
|
38
|
+
const m = s.getBoundingBox(e, t.buffer);
|
|
39
|
+
m && o.fitBounds(m, t.boundingBoxOptions, t.boundingBoxData);
|
|
40
40
|
}
|
|
41
|
-
}, [
|
|
42
|
-
t.animate && /* @__PURE__ */
|
|
43
|
-
|
|
41
|
+
}, [o, t.buffer, t.data, t.boundingBoxData, t.boundingBoxOptions, t.fitBoundingBox]), e ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
42
|
+
t.animate && /* @__PURE__ */ i.jsx(
|
|
43
|
+
n,
|
|
44
44
|
{
|
|
45
45
|
data: t.data,
|
|
46
46
|
id: t.layerId
|
|
47
47
|
}
|
|
48
48
|
),
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
|
|
49
|
+
/* @__PURE__ */ i.jsx(
|
|
50
|
+
l,
|
|
51
51
|
{
|
|
52
|
-
cluster:
|
|
52
|
+
cluster: t.cluster,
|
|
53
53
|
clusterMaxZoom: t.clusterMaxZoom,
|
|
54
54
|
clusterMinPoints: t.clusterMinPoints,
|
|
55
55
|
clusterProperties: t.clusterProperties,
|
|
@@ -63,14 +63,14 @@ const x = 2, y = (t) => {
|
|
|
63
63
|
)
|
|
64
64
|
] }) : null;
|
|
65
65
|
};
|
|
66
|
-
|
|
67
|
-
buffer:
|
|
66
|
+
x.defaultProps = {
|
|
67
|
+
buffer: c,
|
|
68
68
|
fillStyle: r.fill,
|
|
69
69
|
fitBoundingBox: !0,
|
|
70
70
|
pointStyle: r.point,
|
|
71
71
|
strokeStyle: r.stroke
|
|
72
72
|
};
|
|
73
73
|
export {
|
|
74
|
-
|
|
74
|
+
x as default
|
|
75
75
|
};
|
|
76
76
|
//# sourceMappingURL=index.es6.js.map
|
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, useMap } 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 * 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 = useMap();\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
|
|
1
|
+
{"version":3,"file":"index.es6.js","sources":["../src/components/LocationMarkers.js"],"sourcesContent":["// @flow\n\nimport { GeoJSONLayer, PulsingMarkerLayer, useMap } 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 * 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 = useMap();\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 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","useMap","data","useMemo","_","useEffect","bbox","MapUtils","jsxs","Fragment","jsx","PulsingMarkerLayer","GeoJSONLayer","MapStyles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFA,MAAMA,IAAiB,GAKjBC,IAAkB,CAACC,MAAiB;AACxC,QAAMC,IAAMC,KAONC,IAAOC,EAAQ,MAAOC,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index.es63.js";
|
|
3
|
+
var O = ["attr", "size", "title"];
|
|
4
|
+
function v(e, t) {
|
|
5
|
+
if (e == null)
|
|
6
|
+
return {};
|
|
7
|
+
var r = p(e, t), n, i;
|
|
8
|
+
if (Object.getOwnPropertySymbols) {
|
|
9
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
10
|
+
for (i = 0; i < o.length; i++)
|
|
11
|
+
n = o[i], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
12
|
+
}
|
|
13
|
+
return r;
|
|
14
|
+
}
|
|
15
|
+
function p(e, t) {
|
|
16
|
+
if (e == null)
|
|
17
|
+
return {};
|
|
18
|
+
var r = {}, n = Object.keys(e), i, o;
|
|
19
|
+
for (o = 0; o < n.length; o++)
|
|
20
|
+
i = n[o], !(t.indexOf(i) >= 0) && (r[i] = e[i]);
|
|
21
|
+
return r;
|
|
22
|
+
}
|
|
23
|
+
function c() {
|
|
24
|
+
return c = Object.assign ? Object.assign.bind() : function(e) {
|
|
25
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
26
|
+
var r = arguments[t];
|
|
27
|
+
for (var n in r)
|
|
28
|
+
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
29
|
+
}
|
|
30
|
+
return e;
|
|
31
|
+
}, c.apply(this, arguments);
|
|
32
|
+
}
|
|
33
|
+
function m(e, t) {
|
|
34
|
+
var r = Object.keys(e);
|
|
35
|
+
if (Object.getOwnPropertySymbols) {
|
|
36
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
37
|
+
t && (n = n.filter(function(i) {
|
|
38
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
39
|
+
})), r.push.apply(r, n);
|
|
40
|
+
}
|
|
41
|
+
return r;
|
|
42
|
+
}
|
|
43
|
+
function u(e) {
|
|
44
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
45
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
46
|
+
t % 2 ? m(Object(r), !0).forEach(function(n) {
|
|
47
|
+
j(e, n, r[n]);
|
|
48
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : m(Object(r)).forEach(function(n) {
|
|
49
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
return e;
|
|
53
|
+
}
|
|
54
|
+
function j(e, t, r) {
|
|
55
|
+
return t = P(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
56
|
+
}
|
|
57
|
+
function P(e) {
|
|
58
|
+
var t = h(e, "string");
|
|
59
|
+
return typeof t == "symbol" ? t : String(t);
|
|
60
|
+
}
|
|
61
|
+
function h(e, t) {
|
|
62
|
+
if (typeof e != "object" || e === null)
|
|
63
|
+
return e;
|
|
64
|
+
var r = e[Symbol.toPrimitive];
|
|
65
|
+
if (r !== void 0) {
|
|
66
|
+
var n = r.call(e, t || "default");
|
|
67
|
+
if (typeof n != "object")
|
|
68
|
+
return n;
|
|
69
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
70
|
+
}
|
|
71
|
+
return (t === "string" ? String : Number)(e);
|
|
72
|
+
}
|
|
73
|
+
function b(e) {
|
|
74
|
+
return e && e.map((t, r) => /* @__PURE__ */ l.createElement(t.tag, u({
|
|
75
|
+
key: r
|
|
76
|
+
}, t.attr), b(t.child)));
|
|
77
|
+
}
|
|
78
|
+
function _(e) {
|
|
79
|
+
return (t) => /* @__PURE__ */ l.createElement(d, c({
|
|
80
|
+
attr: u({}, e.attr)
|
|
81
|
+
}, t), b(e.child));
|
|
82
|
+
}
|
|
83
|
+
function d(e) {
|
|
84
|
+
var t = (r) => {
|
|
85
|
+
var {
|
|
86
|
+
attr: n,
|
|
87
|
+
size: i,
|
|
88
|
+
title: o
|
|
89
|
+
} = e, g = v(e, O), f = i || r.size || "1em", a;
|
|
90
|
+
return r.className && (a = r.className), e.className && (a = (a ? a + " " : "") + e.className), /* @__PURE__ */ l.createElement("svg", c({
|
|
91
|
+
stroke: "currentColor",
|
|
92
|
+
fill: "currentColor",
|
|
93
|
+
strokeWidth: "0"
|
|
94
|
+
}, r.attr, n, g, {
|
|
95
|
+
className: a,
|
|
96
|
+
style: u(u({
|
|
97
|
+
color: e.color || r.color
|
|
98
|
+
}, r.style), e.style),
|
|
99
|
+
height: f,
|
|
100
|
+
width: f,
|
|
101
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
102
|
+
}), o && /* @__PURE__ */ l.createElement("title", null, o), e.children);
|
|
103
|
+
};
|
|
104
|
+
return s !== void 0 ? /* @__PURE__ */ l.createElement(s.Consumer, null, (r) => t(r)) : t(y);
|
|
4
105
|
}
|
|
5
106
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
107
|
+
_ as GenIcon,
|
|
108
|
+
d as IconBase
|
|
8
109
|
};
|
|
9
110
|
//# sourceMappingURL=index.es62.js.map
|
package/dist/index.es62.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es62.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es62.js","sources":["../../../node_modules/react-icons/lib/iconBase.mjs"],"sourcesContent":["var _excluded = [\"attr\", \"size\", \"title\"];\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nimport React from \"react\";\nimport { IconContext, DefaultContext } from \"./iconContext.mjs\";\nfunction Tree2Element(tree) {\n return tree && tree.map((node, i) => /*#__PURE__*/React.createElement(node.tag, _objectSpread({\n key: i\n }, node.attr), Tree2Element(node.child)));\n}\nexport function GenIcon(data) {\n // eslint-disable-next-line react/display-name\n return props => /*#__PURE__*/React.createElement(IconBase, _extends({\n attr: _objectSpread({}, data.attr)\n }, props), Tree2Element(data.child));\n}\nexport function IconBase(props) {\n var elem = conf => {\n var {\n attr,\n size,\n title\n } = props,\n svgProps = _objectWithoutProperties(props, _excluded);\n var computedSize = size || conf.size || \"1em\";\n var className;\n if (conf.className) className = conf.className;\n if (props.className) className = (className ? className + \" \" : \"\") + props.className;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n stroke: \"currentColor\",\n fill: \"currentColor\",\n strokeWidth: \"0\"\n }, conf.attr, attr, svgProps, {\n className: className,\n style: _objectSpread(_objectSpread({\n color: props.color || conf.color\n }, conf.style), props.style),\n height: computedSize,\n width: computedSize,\n xmlns: \"http://www.w3.org/2000/svg\"\n }), title && /*#__PURE__*/React.createElement(\"title\", null, title), props.children);\n };\n return IconContext !== undefined ? /*#__PURE__*/React.createElement(IconContext.Consumer, null, conf => elem(conf)) : elem(DefaultContext);\n}"],"names":["_excluded","_objectWithoutProperties","source","excluded","target","_objectWithoutPropertiesLoose","key","sourceSymbolKeys","sourceKeys","i","_extends","ownKeys","r","t","o","_objectSpread","_defineProperty","obj","value","_toPropertyKey","arg","_toPrimitive","input","hint","prim","res","Tree2Element","tree","node","React","GenIcon","data","props","IconBase","elem","conf","attr","size","title","svgProps","computedSize","className","IconContext","DefaultContext"],"mappings":";;AAAA,IAAIA,IAAY,CAAC,QAAQ,QAAQ,OAAO;AACxC,SAASC,EAAyBC,GAAQC,GAAU;AAAE,MAAID,KAAU;AAAM,WAAO;AAAI,MAAIE,IAASC,EAA8BH,GAAQC,CAAQ,GAAOG,GAAK;AAAG,MAAI,OAAO,uBAAuB;AAAE,QAAIC,IAAmB,OAAO,sBAAsBL,CAAM;AAAG,SAAK,IAAI,GAAG,IAAIK,EAAiB,QAAQ;AAAkC,MAA3BD,IAAMC,EAAiB,CAAC,GAAO,EAAAJ,EAAS,QAAQG,CAAG,KAAK,MAAkB,OAAO,UAAU,qBAAqB,KAAKJ,GAAQI,CAAG,MAAaF,EAAOE,C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+
import e from "react";
|
|
2
|
+
var t = {
|
|
3
|
+
color: void 0,
|
|
4
|
+
size: void 0,
|
|
5
|
+
className: void 0,
|
|
6
|
+
style: void 0,
|
|
7
|
+
attr: void 0
|
|
8
|
+
}, d = e.createContext && /* @__PURE__ */ e.createContext(t);
|
|
2
9
|
export {
|
|
3
|
-
|
|
10
|
+
t as DefaultContext,
|
|
11
|
+
d as IconContext
|
|
4
12
|
};
|
|
5
13
|
//# sourceMappingURL=index.es63.js.map
|
package/dist/index.es63.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es63.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index.es63.js","sources":["../../../node_modules/react-icons/lib/iconContext.mjs"],"sourcesContent":["import React from \"react\";\nexport var DefaultContext = {\n color: undefined,\n size: undefined,\n className: undefined,\n style: undefined,\n attr: undefined\n};\nexport var IconContext = React.createContext && /*#__PURE__*/React.createContext(DefaultContext);"],"names":["DefaultContext","IconContext","React"],"mappings":";AACU,IAACA,IAAiB;AAAA,EAC1B,OAAO;AAAA,EACP,MAAM;AAAA,EACN,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AACR,GACWC,IAAcC,EAAM,iBAA8BA,gBAAAA,EAAM,cAAcF,CAAc;","x_google_ignoreList":[0]}
|
package/dist/index.es64.js
CHANGED
|
@@ -1,110 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function v(e, t) {
|
|
5
|
-
if (e == null)
|
|
6
|
-
return {};
|
|
7
|
-
var r = p(e, t), n, i;
|
|
8
|
-
if (Object.getOwnPropertySymbols) {
|
|
9
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
10
|
-
for (i = 0; i < o.length; i++)
|
|
11
|
-
n = o[i], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
12
|
-
}
|
|
13
|
-
return r;
|
|
14
|
-
}
|
|
15
|
-
function p(e, t) {
|
|
16
|
-
if (e == null)
|
|
17
|
-
return {};
|
|
18
|
-
var r = {}, n = Object.keys(e), i, o;
|
|
19
|
-
for (o = 0; o < n.length; o++)
|
|
20
|
-
i = n[o], !(t.indexOf(i) >= 0) && (r[i] = e[i]);
|
|
21
|
-
return r;
|
|
22
|
-
}
|
|
23
|
-
function c() {
|
|
24
|
-
return c = Object.assign ? Object.assign.bind() : function(e) {
|
|
25
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
26
|
-
var r = arguments[t];
|
|
27
|
-
for (var n in r)
|
|
28
|
-
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
29
|
-
}
|
|
30
|
-
return e;
|
|
31
|
-
}, c.apply(this, arguments);
|
|
32
|
-
}
|
|
33
|
-
function m(e, t) {
|
|
34
|
-
var r = Object.keys(e);
|
|
35
|
-
if (Object.getOwnPropertySymbols) {
|
|
36
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
37
|
-
t && (n = n.filter(function(i) {
|
|
38
|
-
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
39
|
-
})), r.push.apply(r, n);
|
|
40
|
-
}
|
|
41
|
-
return r;
|
|
42
|
-
}
|
|
43
|
-
function u(e) {
|
|
44
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
45
|
-
var r = arguments[t] != null ? arguments[t] : {};
|
|
46
|
-
t % 2 ? m(Object(r), !0).forEach(function(n) {
|
|
47
|
-
j(e, n, r[n]);
|
|
48
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : m(Object(r)).forEach(function(n) {
|
|
49
|
-
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
return e;
|
|
53
|
-
}
|
|
54
|
-
function j(e, t, r) {
|
|
55
|
-
return t = P(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
56
|
-
}
|
|
57
|
-
function P(e) {
|
|
58
|
-
var t = h(e, "string");
|
|
59
|
-
return typeof t == "symbol" ? t : String(t);
|
|
60
|
-
}
|
|
61
|
-
function h(e, t) {
|
|
62
|
-
if (typeof e != "object" || e === null)
|
|
63
|
-
return e;
|
|
64
|
-
var r = e[Symbol.toPrimitive];
|
|
65
|
-
if (r !== void 0) {
|
|
66
|
-
var n = r.call(e, t || "default");
|
|
67
|
-
if (typeof n != "object")
|
|
68
|
-
return n;
|
|
69
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
70
|
-
}
|
|
71
|
-
return (t === "string" ? String : Number)(e);
|
|
72
|
-
}
|
|
73
|
-
function b(e) {
|
|
74
|
-
return e && e.map((t, r) => /* @__PURE__ */ l.createElement(t.tag, u({
|
|
75
|
-
key: r
|
|
76
|
-
}, t.attr), b(t.child)));
|
|
77
|
-
}
|
|
78
|
-
function _(e) {
|
|
79
|
-
return (t) => /* @__PURE__ */ l.createElement(d, c({
|
|
80
|
-
attr: u({}, e.attr)
|
|
81
|
-
}, t), b(e.child));
|
|
82
|
-
}
|
|
83
|
-
function d(e) {
|
|
84
|
-
var t = (r) => {
|
|
85
|
-
var {
|
|
86
|
-
attr: n,
|
|
87
|
-
size: i,
|
|
88
|
-
title: o
|
|
89
|
-
} = e, g = v(e, O), f = i || r.size || "1em", a;
|
|
90
|
-
return r.className && (a = r.className), e.className && (a = (a ? a + " " : "") + e.className), /* @__PURE__ */ l.createElement("svg", c({
|
|
91
|
-
stroke: "currentColor",
|
|
92
|
-
fill: "currentColor",
|
|
93
|
-
strokeWidth: "0"
|
|
94
|
-
}, r.attr, n, g, {
|
|
95
|
-
className: a,
|
|
96
|
-
style: u(u({
|
|
97
|
-
color: e.color || r.color
|
|
98
|
-
}, r.style), e.style),
|
|
99
|
-
height: f,
|
|
100
|
-
width: f,
|
|
101
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
102
|
-
}), o && /* @__PURE__ */ l.createElement("title", null, o), e.children);
|
|
103
|
-
};
|
|
104
|
-
return s !== void 0 ? /* @__PURE__ */ l.createElement(s.Consumer, null, (r) => t(r)) : t(y);
|
|
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;
|
|
105
4
|
}
|
|
106
5
|
export {
|
|
107
|
-
|
|
108
|
-
|
|
6
|
+
o as commonjsGlobal,
|
|
7
|
+
l as getDefaultExportFromCjs
|
|
109
8
|
};
|
|
110
9
|
//# sourceMappingURL=index.es64.js.map
|
package/dist/index.es64.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es64.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.es64.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/index.es65.js
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
var t = {
|
|
3
|
-
color: void 0,
|
|
4
|
-
size: void 0,
|
|
5
|
-
className: void 0,
|
|
6
|
-
style: void 0,
|
|
7
|
-
attr: void 0
|
|
8
|
-
}, d = e.createContext && /* @__PURE__ */ e.createContext(t);
|
|
1
|
+
var a = { exports: {} };
|
|
9
2
|
export {
|
|
10
|
-
|
|
11
|
-
d as IconContext
|
|
3
|
+
a as __module
|
|
12
4
|
};
|
|
13
5
|
//# sourceMappingURL=index.es65.js.map
|
package/dist/index.es65.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es65.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.es65.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index.es67.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
2
|
import { useContext as b, useState as E, useRef as c, useEffect as x, useImperativeHandle as w, useMemo as y } from "react";
|
|
3
3
|
import { MountedMapsContext as L } from "./index.es75.js";
|
|
4
|
-
import m from "./index.
|
|
5
|
-
import I from "./index.
|
|
6
|
-
import C from "./index.
|
|
7
|
-
import g from "./index.
|
|
4
|
+
import m from "./index.es183.js";
|
|
5
|
+
import I from "./index.es184.js";
|
|
6
|
+
import C from "./index.es185.js";
|
|
7
|
+
import g from "./index.es186.js";
|
|
8
8
|
const R = l.createContext(null);
|
|
9
9
|
function A(e, f, d) {
|
|
10
10
|
const o = b(L), [i, p] = E(null), s = c(), { current: a } = c({ mapLib: null, map: null });
|
package/dist/index.es68.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as k from "react";
|
|
2
2
|
import { memo as A, forwardRef as P, useContext as C, useRef as D, useMemo as M, useEffect as h, useImperativeHandle as y } from "react";
|
|
3
3
|
import { createPortal as w } from "react-dom";
|
|
4
|
-
import { applyReactStyle as x } from "./index.
|
|
4
|
+
import { applyReactStyle as x } from "./index.es187.js";
|
|
5
5
|
import { MapContext as O } from "./index.es67.js";
|
|
6
|
-
import { arePointsEqual as S } from "./index.
|
|
6
|
+
import { arePointsEqual as S } from "./index.es188.js";
|
|
7
7
|
function q(o, E) {
|
|
8
8
|
const { map: R, mapLib: b } = C(O), i = D({ props: o });
|
|
9
9
|
i.current.props = o;
|
package/dist/index.es69.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createPortal as h } from "react-dom";
|
|
2
2
|
import { memo as L, forwardRef as v, useContext as C, useMemo as f, useRef as x, useEffect as m, useImperativeHandle as N } from "react";
|
|
3
|
-
import { applyReactStyle as M } from "./index.
|
|
3
|
+
import { applyReactStyle as M } from "./index.es187.js";
|
|
4
4
|
import { MapContext as O } from "./index.es67.js";
|
|
5
|
-
import { deepEqual as y } from "./index.
|
|
5
|
+
import { deepEqual as y } from "./index.es188.js";
|
|
6
6
|
function r(t) {
|
|
7
7
|
return new Set(t ? t.trim().split(/\s+/) : []);
|
|
8
8
|
}
|
package/dist/index.es70.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { memo as i, useEffect as r } from "react";
|
|
2
|
-
import { applyReactStyle as e } from "./index.
|
|
2
|
+
import { applyReactStyle as e } from "./index.es187.js";
|
|
3
3
|
import l from "./index.es16.js";
|
|
4
4
|
function m(t) {
|
|
5
5
|
const o = l(({ mapLib: n }) => new n.AttributionControl(t), {
|
package/dist/index.es71.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { memo as o, useEffect as l } from "react";
|
|
2
|
-
import { applyReactStyle as r } from "./index.
|
|
2
|
+
import { applyReactStyle as r } from "./index.es187.js";
|
|
3
3
|
import c from "./index.es16.js";
|
|
4
4
|
function i(t) {
|
|
5
5
|
const n = c(({ mapLib: e }) => new e.FullscreenControl({
|
package/dist/index.es72.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { memo as s, forwardRef as d, useRef as v, useImperativeHandle as _, useEffect as f } from "react";
|
|
2
|
-
import { applyReactStyle as p } from "./index.
|
|
2
|
+
import { applyReactStyle as p } from "./index.es187.js";
|
|
3
3
|
import m from "./index.es16.js";
|
|
4
4
|
function b(e, c) {
|
|
5
5
|
const a = v({ props: e }), l = m(({ mapLib: i }) => {
|
package/dist/index.es73.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { memo as i, useEffect as e } from "react";
|
|
2
|
-
import { applyReactStyle as l } from "./index.
|
|
2
|
+
import { applyReactStyle as l } from "./index.es187.js";
|
|
3
3
|
import r from "./index.es16.js";
|
|
4
4
|
function a(t) {
|
|
5
5
|
const o = r(({ mapLib: n }) => new n.NavigationControl(t), {
|
package/dist/index.es74.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { memo as m, useRef as u, useEffect as l } from "react";
|
|
2
|
-
import { applyReactStyle as a } from "./index.
|
|
2
|
+
import { applyReactStyle as a } from "./index.es187.js";
|
|
3
3
|
import f from "./index.es16.js";
|
|
4
4
|
function r(t) {
|
|
5
5
|
const i = f(({ mapLib: c }) => new c.ScaleControl(t), {
|
package/dist/index.es78.js
CHANGED
package/dist/index.es79.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useContext as m, useRef as L, useState as g, useMemo as x, useEffect as h } from "react";
|
|
2
2
|
import { MapContext as b } from "./index.es67.js";
|
|
3
|
-
import d from "./index.
|
|
4
|
-
import { deepEqual as l } from "./index.
|
|
3
|
+
import d from "./index.es189.js";
|
|
4
|
+
import { deepEqual as l } from "./index.es188.js";
|
|
5
5
|
function k(t, e, a, o) {
|
|
6
6
|
if (d(a.id === o.id, "layer id changed"), d(a.type === o.type, "layer type changed"), a.type === "custom" || o.type === "custom")
|
|
7
7
|
return;
|
package/dist/index.es80.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
2
|
import { useContext as f, useRef as y, useState as m, useMemo as g, useEffect as S, cloneElement as h } from "react";
|
|
3
3
|
import { MapContext as C } from "./index.es67.js";
|
|
4
|
-
import s from "./index.
|
|
5
|
-
import { deepEqual as v } from "./index.
|
|
4
|
+
import s from "./index.es189.js";
|
|
5
|
+
import { deepEqual as v } from "./index.es188.js";
|
|
6
6
|
let x = 0;
|
|
7
7
|
function U(t, e, a) {
|
|
8
8
|
if (t.style && t.style._loaded) {
|
package/package.json
CHANGED
|
@@ -99,16 +99,6 @@ const LocationMarkers = (props: Props) => {
|
|
|
99
99
|
*/
|
|
100
100
|
const data = useMemo(() => (_.isEmpty(props.data) ? null : props.data), [props.data]);
|
|
101
101
|
|
|
102
|
-
const cluster = useMemo(() => {
|
|
103
|
-
if (!props.cluster) {
|
|
104
|
-
return false;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
console.log(data);
|
|
108
|
-
|
|
109
|
-
return true;
|
|
110
|
-
}, [data, props.cluster]);
|
|
111
|
-
|
|
112
102
|
/**
|
|
113
103
|
* Sets the bounding box on the map.
|
|
114
104
|
*/
|
|
@@ -135,7 +125,7 @@ const LocationMarkers = (props: Props) => {
|
|
|
135
125
|
/>
|
|
136
126
|
)}
|
|
137
127
|
<GeoJSONLayer
|
|
138
|
-
cluster={cluster}
|
|
128
|
+
cluster={props.cluster}
|
|
139
129
|
clusterMaxZoom={props.clusterMaxZoom}
|
|
140
130
|
clusterMinPoints={props.clusterMinPoints}
|
|
141
131
|
clusterProperties={props.clusterProperties}
|
|
@@ -99,16 +99,6 @@ const LocationMarkers = (props: Props) => {
|
|
|
99
99
|
*/
|
|
100
100
|
const data = useMemo(() => (_.isEmpty(props.data) ? null : props.data), [props.data]);
|
|
101
101
|
|
|
102
|
-
const cluster = useMemo(() => {
|
|
103
|
-
if (!props.cluster) {
|
|
104
|
-
return false;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
console.log(data);
|
|
108
|
-
|
|
109
|
-
return true;
|
|
110
|
-
}, [data, props.cluster]);
|
|
111
|
-
|
|
112
102
|
/**
|
|
113
103
|
* Sets the bounding box on the map.
|
|
114
104
|
*/
|
|
@@ -135,7 +125,7 @@ const LocationMarkers = (props: Props) => {
|
|
|
135
125
|
/>
|
|
136
126
|
)}
|
|
137
127
|
<GeoJSONLayer
|
|
138
|
-
cluster={cluster}
|
|
128
|
+
cluster={props.cluster}
|
|
139
129
|
clusterMaxZoom={props.clusterMaxZoom}
|
|
140
130
|
clusterMinPoints={props.clusterMinPoints}
|
|
141
131
|
clusterProperties={props.clusterProperties}
|