@macrostrat/map-interface 0.3.0 → 1.0.0
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/CHANGELOG.md +9 -0
- package/dist/index.cjs +147 -139
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +7 -5
- package/dist/index.css.map +1 -1
- package/dist/index.js +157 -149
- package/dist/index.js.map +1 -1
- package/dist/main.css +945 -0
- package/dist/main.css.map +1 -0
- package/dist/main.js +1924 -0
- package/dist/main.js.map +1 -0
- package/dist/module.css +945 -0
- package/dist/module.css.map +1 -0
- package/dist/module.js +1915 -0
- package/dist/module.js.map +1 -0
- package/dist/types.d.ts +50 -18
- package/dist/types.d.ts.map +1 -1
- package/package.json +15 -11
- package/src/container.ts +66 -31
- package/src/context-panel/index.ts +2 -1
- package/src/context-panel/main.module.sass +7 -6
- package/src/controls.ts +12 -1
- package/src/dev/main.module.sass +1 -1
- package/src/expansion-panel/main.module.sass +8 -4
- package/src/helpers.ts +2 -2
- package/src/location-info/hash-string.ts +102 -0
- package/src/location-info/index.ts +6 -4
- package/src/location-info/utils.ts +0 -20
- package/src/location-panel/header.ts +19 -6
- package/src/location-panel/index.ts +32 -5
- package/src/location-panel/main.module.sass +3 -3
- package/src/main.module.sass +169 -82
- package/src/map-view/index.ts +6 -4
- package/src/map-view/terrain.ts +8 -5
- package/src/main.module.ref.styl +0 -407
- package/src/map-view/main.module.sass +0 -23
package/dist/index.cjs
CHANGED
|
@@ -67,7 +67,7 @@ const $fce5fc950d1fe35b$var$h = (0, ($parcel$interopDefault($9B3TU$macrostrathyp
|
|
|
67
67
|
const $fce5fc950d1fe35b$var$spinnerElement = $fce5fc950d1fe35b$var$h((0, $9B3TU$blueprintjscore.Spinner), {
|
|
68
68
|
size: 16
|
|
69
69
|
});
|
|
70
|
-
function $fce5fc950d1fe35b$export$4ec83e90d030b2f3({ isLoading: isLoading = false
|
|
70
|
+
function $fce5fc950d1fe35b$export$4ec83e90d030b2f3({ isLoading: isLoading = false, onClick: onClick, active: active = false, icon: icon = "menu" }) {
|
|
71
71
|
return $fce5fc950d1fe35b$var$h((0, $9B3TU$blueprintjscore.Button), {
|
|
72
72
|
icon: isLoading ? $fce5fc950d1fe35b$var$spinnerElement : icon,
|
|
73
73
|
large: true,
|
|
@@ -77,7 +77,7 @@ function $fce5fc950d1fe35b$export$4ec83e90d030b2f3({ isLoading: isLoading = fals
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
function $fce5fc950d1fe35b$export$9e3bae3c08bde368(props) {
|
|
80
|
-
const { isLoading: isLoading
|
|
80
|
+
const { isLoading: isLoading } = (0, $9B3TU$macrostratmapboxreact.useMapStatus)();
|
|
81
81
|
const mapIsLoading = (0, $9B3TU$react.useMemo)(()=>isLoading, [
|
|
82
82
|
isLoading
|
|
83
83
|
]);
|
|
@@ -86,18 +86,18 @@ function $fce5fc950d1fe35b$export$9e3bae3c08bde368(props) {
|
|
|
86
86
|
isLoading: mapIsLoading
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
function $fce5fc950d1fe35b$export$a8cc0062d02a3841({ className: className
|
|
89
|
+
function $fce5fc950d1fe35b$export$a8cc0062d02a3841({ className: className, children: children, statusElement: statusElement = null }) {
|
|
90
90
|
return $fce5fc950d1fe35b$var$h("div.searchbar-holder", {
|
|
91
91
|
className: className
|
|
92
92
|
}, [
|
|
93
93
|
$fce5fc950d1fe35b$var$h("div.navbar-holder", [
|
|
94
94
|
$fce5fc950d1fe35b$var$h((0, $9B3TU$blueprintjscore.Navbar), {
|
|
95
95
|
className: "searchbar panel"
|
|
96
|
-
}, children)
|
|
96
|
+
}, children)
|
|
97
97
|
]),
|
|
98
98
|
$fce5fc950d1fe35b$var$h.if(statusElement != null)((0, $9B3TU$blueprintjscore.Card), {
|
|
99
99
|
className: "status-tongue"
|
|
100
|
-
}, statusElement)
|
|
100
|
+
}, statusElement)
|
|
101
101
|
]);
|
|
102
102
|
}
|
|
103
103
|
|
|
@@ -112,36 +112,36 @@ $parcel$export($2bc7c1e4e7da7fdf$exports, "LocationPanel", () => $2bc7c1e4e7da7f
|
|
|
112
112
|
|
|
113
113
|
var $a8d7c4c397e52cf6$exports = {};
|
|
114
114
|
|
|
115
|
-
$parcel$export($a8d7c4c397e52cf6$exports, "left-icon", () => $a8d7c4c397e52cf6$export$f750577db09821ce, (v) => $a8d7c4c397e52cf6$export$f750577db09821ce = v);
|
|
116
|
-
$parcel$export($a8d7c4c397e52cf6$exports, "infodrawer-header-item", () => $a8d7c4c397e52cf6$export$333d72514239bce8, (v) => $a8d7c4c397e52cf6$export$333d72514239bce8 = v);
|
|
117
|
-
$parcel$export($a8d7c4c397e52cf6$exports, "spacer", () => $a8d7c4c397e52cf6$export$8cc075c801fd6817, (v) => $a8d7c4c397e52cf6$export$8cc075c801fd6817 = v);
|
|
118
|
-
$parcel$export($a8d7c4c397e52cf6$exports, "infodrawer", () => $a8d7c4c397e52cf6$export$b5017f7ff265217d, (v) => $a8d7c4c397e52cf6$export$b5017f7ff265217d = v);
|
|
119
115
|
$parcel$export($a8d7c4c397e52cf6$exports, "copy-link-button", () => $a8d7c4c397e52cf6$export$d1352d0c31a65024, (v) => $a8d7c4c397e52cf6$export$d1352d0c31a65024 = v);
|
|
116
|
+
$parcel$export($a8d7c4c397e52cf6$exports, "infodrawer", () => $a8d7c4c397e52cf6$export$b5017f7ff265217d, (v) => $a8d7c4c397e52cf6$export$b5017f7ff265217d = v);
|
|
117
|
+
$parcel$export($a8d7c4c397e52cf6$exports, "infodrawer-body", () => $a8d7c4c397e52cf6$export$310e8f86a84c074f, (v) => $a8d7c4c397e52cf6$export$310e8f86a84c074f = v);
|
|
118
|
+
$parcel$export($a8d7c4c397e52cf6$exports, "infodrawer-contents", () => $a8d7c4c397e52cf6$export$69ed3ba502fbf15b, (v) => $a8d7c4c397e52cf6$export$69ed3ba502fbf15b = v);
|
|
119
|
+
$parcel$export($a8d7c4c397e52cf6$exports, "infodrawer-header-item", () => $a8d7c4c397e52cf6$export$333d72514239bce8, (v) => $a8d7c4c397e52cf6$export$333d72514239bce8 = v);
|
|
120
|
+
$parcel$export($a8d7c4c397e52cf6$exports, "left-icon", () => $a8d7c4c397e52cf6$export$f750577db09821ce, (v) => $a8d7c4c397e52cf6$export$f750577db09821ce = v);
|
|
120
121
|
$parcel$export($a8d7c4c397e52cf6$exports, "loading", () => $a8d7c4c397e52cf6$export$46c1c92549715335, (v) => $a8d7c4c397e52cf6$export$46c1c92549715335 = v);
|
|
121
122
|
$parcel$export($a8d7c4c397e52cf6$exports, "location-panel-header", () => $a8d7c4c397e52cf6$export$d821beb98a87c6d7, (v) => $a8d7c4c397e52cf6$export$d821beb98a87c6d7 = v);
|
|
122
|
-
$parcel$export($a8d7c4c397e52cf6$exports, "infodrawer-contents", () => $a8d7c4c397e52cf6$export$69ed3ba502fbf15b, (v) => $a8d7c4c397e52cf6$export$69ed3ba502fbf15b = v);
|
|
123
123
|
$parcel$export($a8d7c4c397e52cf6$exports, "position-controls", () => $a8d7c4c397e52cf6$export$dfae07a3bf0fbd6, (v) => $a8d7c4c397e52cf6$export$dfae07a3bf0fbd6 = v);
|
|
124
|
-
$parcel$export($a8d7c4c397e52cf6$exports, "
|
|
125
|
-
var $a8d7c4c397e52cf6$export$f750577db09821ce;
|
|
126
|
-
var $a8d7c4c397e52cf6$export$333d72514239bce8;
|
|
127
|
-
var $a8d7c4c397e52cf6$export$8cc075c801fd6817;
|
|
128
|
-
var $a8d7c4c397e52cf6$export$b5017f7ff265217d;
|
|
124
|
+
$parcel$export($a8d7c4c397e52cf6$exports, "spacer", () => $a8d7c4c397e52cf6$export$8cc075c801fd6817, (v) => $a8d7c4c397e52cf6$export$8cc075c801fd6817 = v);
|
|
129
125
|
var $a8d7c4c397e52cf6$export$d1352d0c31a65024;
|
|
126
|
+
var $a8d7c4c397e52cf6$export$b5017f7ff265217d;
|
|
127
|
+
var $a8d7c4c397e52cf6$export$310e8f86a84c074f;
|
|
128
|
+
var $a8d7c4c397e52cf6$export$69ed3ba502fbf15b;
|
|
129
|
+
var $a8d7c4c397e52cf6$export$333d72514239bce8;
|
|
130
|
+
var $a8d7c4c397e52cf6$export$f750577db09821ce;
|
|
130
131
|
var $a8d7c4c397e52cf6$export$46c1c92549715335;
|
|
131
132
|
var $a8d7c4c397e52cf6$export$d821beb98a87c6d7;
|
|
132
|
-
var $a8d7c4c397e52cf6$export$69ed3ba502fbf15b;
|
|
133
133
|
var $a8d7c4c397e52cf6$export$dfae07a3bf0fbd6;
|
|
134
|
-
var $a8d7c4c397e52cf6$export$
|
|
135
|
-
$a8d7c4c397e52cf6$export$f750577db09821ce = `VPa3-W_left-icon`;
|
|
136
|
-
$a8d7c4c397e52cf6$export$333d72514239bce8 = `VPa3-W_infodrawer-header-item`;
|
|
137
|
-
$a8d7c4c397e52cf6$export$8cc075c801fd6817 = `VPa3-W_spacer`;
|
|
138
|
-
$a8d7c4c397e52cf6$export$b5017f7ff265217d = `VPa3-W_infodrawer`;
|
|
134
|
+
var $a8d7c4c397e52cf6$export$8cc075c801fd6817;
|
|
139
135
|
$a8d7c4c397e52cf6$export$d1352d0c31a65024 = `VPa3-W_copy-link-button`;
|
|
136
|
+
$a8d7c4c397e52cf6$export$b5017f7ff265217d = `VPa3-W_infodrawer`;
|
|
137
|
+
$a8d7c4c397e52cf6$export$310e8f86a84c074f = `VPa3-W_infodrawer-body`;
|
|
138
|
+
$a8d7c4c397e52cf6$export$69ed3ba502fbf15b = `VPa3-W_infodrawer-contents`;
|
|
139
|
+
$a8d7c4c397e52cf6$export$333d72514239bce8 = `VPa3-W_infodrawer-header-item`;
|
|
140
|
+
$a8d7c4c397e52cf6$export$f750577db09821ce = `VPa3-W_left-icon`;
|
|
140
141
|
$a8d7c4c397e52cf6$export$46c1c92549715335 = `VPa3-W_loading`;
|
|
141
142
|
$a8d7c4c397e52cf6$export$d821beb98a87c6d7 = `VPa3-W_location-panel-header`;
|
|
142
|
-
$a8d7c4c397e52cf6$export$69ed3ba502fbf15b = `VPa3-W_infodrawer-contents`;
|
|
143
143
|
$a8d7c4c397e52cf6$export$dfae07a3bf0fbd6 = `VPa3-W_position-controls`;
|
|
144
|
-
$a8d7c4c397e52cf6$export$
|
|
144
|
+
$a8d7c4c397e52cf6$export$8cc075c801fd6817 = `VPa3-W_spacer`;
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
|
|
@@ -190,7 +190,7 @@ function $bf943af2b72f182b$export$d284c26147b5ca34(meters, precision = 0) {
|
|
|
190
190
|
|
|
191
191
|
|
|
192
192
|
function $860d9939f7032c69$export$716098b85fd0efdf(props) {
|
|
193
|
-
const { value: value
|
|
193
|
+
const { value: value, unit: unit } = props;
|
|
194
194
|
return (0, ($parcel$interopDefault($9B3TU$macrostrathyper)))("span.value-with-unit", [
|
|
195
195
|
(0, ($parcel$interopDefault($9B3TU$macrostrathyper)))("span.value", [
|
|
196
196
|
value
|
|
@@ -200,11 +200,11 @@ function $860d9939f7032c69$export$716098b85fd0efdf(props) {
|
|
|
200
200
|
]),
|
|
201
201
|
(0, ($parcel$interopDefault($9B3TU$macrostrathyper)))("span.unit", [
|
|
202
202
|
unit
|
|
203
|
-
])
|
|
203
|
+
])
|
|
204
204
|
]);
|
|
205
205
|
}
|
|
206
206
|
function $860d9939f7032c69$export$af8082af0bea3eb1(props) {
|
|
207
|
-
const { value: value
|
|
207
|
+
const { value: value, labels: labels, precision: precision = 3, format: format = (0, $bf943af2b72f182b$export$7c4d25c0c3217d8c) } = props;
|
|
208
208
|
const direction = value < 0 ? labels[1] : labels[0];
|
|
209
209
|
return (0, ($parcel$interopDefault($9B3TU$macrostrathyper)))($860d9939f7032c69$export$716098b85fd0efdf, {
|
|
210
210
|
value: format(Math.abs(value), precision) + "\xb0",
|
|
@@ -212,12 +212,12 @@ function $860d9939f7032c69$export$af8082af0bea3eb1(props) {
|
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
214
|
function $860d9939f7032c69$export$f195b3550849e560(props) {
|
|
215
|
-
/** Formatted geographic coordinates */ const { position: position
|
|
216
|
-
let { format: format
|
|
215
|
+
/** Formatted geographic coordinates */ const { position: position, className: className, precision: precision, zoom: zoom } = props;
|
|
216
|
+
let { format: format } = props;
|
|
217
217
|
if (position == null) return null;
|
|
218
218
|
let lat, lng;
|
|
219
219
|
if (Array.isArray(position)) [lng, lat] = position;
|
|
220
|
-
else ({ lat: lat
|
|
220
|
+
else ({ lat: lat, lng: lng } = position);
|
|
221
221
|
if (zoom != null && format == null && precision == null) format = (val, _)=>(0, $bf943af2b72f182b$export$424827e271c4ba96)(val, zoom);
|
|
222
222
|
return (0, ($parcel$interopDefault($9B3TU$macrostrathyper)))("div.lnglat-container", {
|
|
223
223
|
className: className
|
|
@@ -241,12 +241,12 @@ function $860d9939f7032c69$export$f195b3550849e560(props) {
|
|
|
241
241
|
],
|
|
242
242
|
precision: precision,
|
|
243
243
|
format: format
|
|
244
|
-
})
|
|
245
|
-
])
|
|
244
|
+
})
|
|
245
|
+
])
|
|
246
246
|
]);
|
|
247
247
|
}
|
|
248
248
|
function $860d9939f7032c69$export$58bfb4f6ec5aa58d(props) {
|
|
249
|
-
/** Renders an elevation value in meters and a parenthetical conversion to feet. */ const { elevation: elevation
|
|
249
|
+
/** Renders an elevation value in meters and a parenthetical conversion to feet. */ const { elevation: elevation, className: className, includeFeet: includeFeet = true } = props;
|
|
250
250
|
if (elevation == null) return null;
|
|
251
251
|
return (0, ($parcel$interopDefault($9B3TU$macrostrathyper)))("div.elevation", {
|
|
252
252
|
className: className
|
|
@@ -261,15 +261,15 @@ function $860d9939f7032c69$export$58bfb4f6ec5aa58d(props) {
|
|
|
261
261
|
value: (0, $bf943af2b72f182b$export$d284c26147b5ca34)(elevation),
|
|
262
262
|
unit: "ft"
|
|
263
263
|
}),
|
|
264
|
-
")"
|
|
265
|
-
])
|
|
264
|
+
")"
|
|
265
|
+
])
|
|
266
266
|
]);
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
|
|
270
270
|
|
|
271
271
|
const $548387e5996cdbbd$var$h = (0, ($parcel$interopDefault($9B3TU$macrostrathyper))).styled((0, (/*@__PURE__*/$parcel$interopDefault($a8d7c4c397e52cf6$exports))));
|
|
272
|
-
function $548387e5996cdbbd$var$PositionButton({ position: position
|
|
272
|
+
function $548387e5996cdbbd$var$PositionButton({ position: position }) {
|
|
273
273
|
const focusState = (0, $9B3TU$macrostratmapboxreact.useFocusState)(position);
|
|
274
274
|
return $548387e5996cdbbd$var$h("div.position-controls", [
|
|
275
275
|
$548387e5996cdbbd$var$h((0, $9B3TU$macrostratmapboxreact.LocationFocusButton), {
|
|
@@ -278,10 +278,10 @@ function $548387e5996cdbbd$var$PositionButton({ position: position }) {
|
|
|
278
278
|
}, []),
|
|
279
279
|
(0, $9B3TU$macrostratmapboxreact.isCentered)(focusState) ? $548387e5996cdbbd$var$h($548387e5996cdbbd$var$CopyLinkButton, {
|
|
280
280
|
itemName: "position"
|
|
281
|
-
}) : null
|
|
281
|
+
}) : null
|
|
282
282
|
]);
|
|
283
283
|
}
|
|
284
|
-
function $548387e5996cdbbd$var$CopyLinkButton({ itemName: itemName
|
|
284
|
+
function $548387e5996cdbbd$var$CopyLinkButton({ itemName: itemName, children: children, onClick: onClick, ...rest }) {
|
|
285
285
|
const toaster = (0, $9B3TU$macrostratuicomponents.useToaster)();
|
|
286
286
|
let message = `Copied link`;
|
|
287
287
|
if (itemName != null) message += ` to ${itemName}`;
|
|
@@ -316,7 +316,7 @@ function $548387e5996cdbbd$var$CopyLinkButton({ itemName: itemName , children: c
|
|
|
316
316
|
}, children ?? "Copy link");
|
|
317
317
|
}
|
|
318
318
|
function $548387e5996cdbbd$export$e9ff14c4822c2e8c(props) {
|
|
319
|
-
const { onClose: onClose
|
|
319
|
+
const { onClose: onClose, position: position, zoom: zoom = 7, elevation: elevation } = props;
|
|
320
320
|
return $548387e5996cdbbd$var$h("header.location-panel-header", [
|
|
321
321
|
$548387e5996cdbbd$var$h($548387e5996cdbbd$var$PositionButton, {
|
|
322
322
|
position: position
|
|
@@ -335,7 +335,7 @@ function $548387e5996cdbbd$export$e9ff14c4822c2e8c(props) {
|
|
|
335
335
|
minimal: true,
|
|
336
336
|
icon: "cross",
|
|
337
337
|
onClick: onClose
|
|
338
|
-
})
|
|
338
|
+
})
|
|
339
339
|
]);
|
|
340
340
|
}
|
|
341
341
|
|
|
@@ -352,7 +352,7 @@ function $2bc7c1e4e7da7fdf$export$83f9a19cf91c2d06(props) {
|
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
354
|
function $2bc7c1e4e7da7fdf$export$aa4baff5242ea6e1(props) {
|
|
355
|
-
const { children: children
|
|
355
|
+
const { children: children, className: className, loading: loading = false, ...rest } = props;
|
|
356
356
|
const cls = (0, ($parcel$interopDefault($9B3TU$classnames)))("location-panel", className, {
|
|
357
357
|
loading: loading
|
|
358
358
|
});
|
|
@@ -360,7 +360,7 @@ function $2bc7c1e4e7da7fdf$export$aa4baff5242ea6e1(props) {
|
|
|
360
360
|
className: cls
|
|
361
361
|
}, [
|
|
362
362
|
$2bc7c1e4e7da7fdf$var$h((0, $548387e5996cdbbd$export$e9ff14c4822c2e8c), rest),
|
|
363
|
-
$2bc7c1e4e7da7fdf$var$h("div.infodrawer-body", $2bc7c1e4e7da7fdf$var$h("div.infodrawer-contents", $2bc7c1e4e7da7fdf$var$h((0, $9B3TU$macrostratuicomponents.ErrorBoundary), null, children)))
|
|
363
|
+
$2bc7c1e4e7da7fdf$var$h("div.infodrawer-body", $2bc7c1e4e7da7fdf$var$h("div.infodrawer-contents", $2bc7c1e4e7da7fdf$var$h((0, $9B3TU$macrostratuicomponents.ErrorBoundary), null, children)))
|
|
364
364
|
]);
|
|
365
365
|
}
|
|
366
366
|
|
|
@@ -372,6 +372,7 @@ $parcel$export($6f5ca387ac26c0b5$exports, "MacrostratVectorTileset", () => $6f5c
|
|
|
372
372
|
$parcel$export($6f5ca387ac26c0b5$exports, "MacrostratRasterTileset", () => $6f5ca387ac26c0b5$export$cc7c195070dfb906);
|
|
373
373
|
$parcel$export($6f5ca387ac26c0b5$exports, "h", () => $6f5ca387ac26c0b5$export$dda1d9f60106f0e9);
|
|
374
374
|
$parcel$export($6f5ca387ac26c0b5$exports, "DevMapPage", () => $6f5ca387ac26c0b5$export$2391061fbdfb71ef);
|
|
375
|
+
// Import other components
|
|
375
376
|
|
|
376
377
|
|
|
377
378
|
|
|
@@ -384,7 +385,7 @@ $parcel$export($8646508ae99a5857$exports, "buildInspectorStyle", () => $8646508a
|
|
|
384
385
|
|
|
385
386
|
|
|
386
387
|
async function $8646508ae99a5857$export$eff5fb2e10d05b1d(baseStyle, params = null) {
|
|
387
|
-
const { inDarkMode: inDarkMode = false
|
|
388
|
+
const { inDarkMode: inDarkMode = false, color: color = "rgb(74, 242, 161)", mapboxToken: mapboxToken, xRaySources: xRaySources } = params;
|
|
388
389
|
const style = await (0, $9B3TU$macrostratmapboxutils.getMapboxStyle)(baseStyle, {
|
|
389
390
|
access_token: mapboxToken
|
|
390
391
|
});
|
|
@@ -433,7 +434,7 @@ function $8646508ae99a5857$var$transformMapboxLayer(layer, color, inDarkMode) {
|
|
|
433
434
|
return newLayer;
|
|
434
435
|
}
|
|
435
436
|
async function $8646508ae99a5857$export$e739dc8dfc0db9a6(baseStyle, overlayStyle = null, params = {}) {
|
|
436
|
-
const { mapboxToken: mapboxToken
|
|
437
|
+
const { mapboxToken: mapboxToken, xRay: xRay = false, xRaySources: _xRaySources, ...rest } = params;
|
|
437
438
|
let xRaySources = _xRaySources;
|
|
438
439
|
let style = await (0, $9B3TU$macrostratmapboxutils.getMapboxStyle)(baseStyle, {
|
|
439
440
|
access_token: mapboxToken
|
|
@@ -460,7 +461,6 @@ async function $8646508ae99a5857$export$e739dc8dfc0db9a6(baseStyle, overlayStyle
|
|
|
460
461
|
|
|
461
462
|
var $c3311f59335df34d$exports = {};
|
|
462
463
|
|
|
463
|
-
$parcel$export($c3311f59335df34d$exports, "MapInterface", () => $c3311f59335df34d$export$57b87f3e07d4bb90);
|
|
464
464
|
$parcel$export($c3311f59335df34d$exports, "PanelCard", () => $c3311f59335df34d$export$ec68dd77edbe678b);
|
|
465
465
|
$parcel$export($c3311f59335df34d$exports, "MapStyledContainer", () => $c3311f59335df34d$export$fa395a37c3898ae3);
|
|
466
466
|
$parcel$export($c3311f59335df34d$exports, "MapAreaContainer", () => $c3311f59335df34d$export$9fa5da0bcfd0a290);
|
|
@@ -616,7 +616,6 @@ $parcel$export($f333fe6f49373ca9$exports, "MapBottomControls", () => $f333fe6f49
|
|
|
616
616
|
|
|
617
617
|
|
|
618
618
|
|
|
619
|
-
|
|
620
619
|
const $f333fe6f49373ca9$var$h = (0, ($parcel$interopDefault($9B3TU$macrostrathyper))).styled((0, (/*@__PURE__*/$parcel$interopDefault($35f1bc0112883d51$exports))));
|
|
621
620
|
function $f333fe6f49373ca9$var$ScaleControl(props) {
|
|
622
621
|
const optionsRef = (0, $9B3TU$react.useRef)({
|
|
@@ -659,22 +658,19 @@ function $f333fe6f49373ca9$export$db1a2e058a06fb5c() {
|
|
|
659
658
|
}),
|
|
660
659
|
$f333fe6f49373ca9$var$h($f333fe6f49373ca9$var$GeolocationControl, {
|
|
661
660
|
className: "geolocation-control"
|
|
662
|
-
})
|
|
661
|
+
})
|
|
663
662
|
]);
|
|
664
663
|
}
|
|
665
664
|
|
|
666
665
|
|
|
667
666
|
|
|
668
667
|
|
|
669
|
-
function $c3311f59335df34d$export$57b87f3e07d4bb90() {
|
|
670
|
-
return $c3311f59335df34d$var$h("div", "Hello world");
|
|
671
|
-
}
|
|
672
668
|
const $c3311f59335df34d$var$h = (0, ($parcel$interopDefault($9B3TU$macrostrathyper))).styled((0, (/*@__PURE__*/$parcel$interopDefault($35f1bc0112883d51$exports))));
|
|
673
669
|
const $c3311f59335df34d$export$ec68dd77edbe678b = (props)=>$c3311f59335df34d$var$h((0, $9B3TU$blueprintjscore.Card), {
|
|
674
670
|
...props,
|
|
675
671
|
className: (0, ($parcel$interopDefault($9B3TU$classnames)))("panel-card", props.className)
|
|
676
672
|
});
|
|
677
|
-
function $c3311f59335df34d$var$_MapAreaContainer({ children: children
|
|
673
|
+
function $c3311f59335df34d$var$_MapAreaContainer({ children: children, className: className, navbar: navbar, contextPanel: contextPanel = null, detailPanel: detailPanel = null, detailPanelOpen: detailPanelOpen, contextPanelOpen: contextPanelOpen = true, bottomPanel: bottomPanel = null, mainPanel: mainPanel, mapControls: mapControls = $c3311f59335df34d$var$h((0, $f333fe6f49373ca9$export$db1a2e058a06fb5c)), contextStackProps: contextStackProps = null, detailStackProps: detailStackProps = null, fitViewport: fitViewport = true, ...rest }) {
|
|
678
674
|
const _detailPanelOpen = detailPanelOpen ?? detailPanel != null;
|
|
679
675
|
const contextPanelTrans = (0, $9B3TU$transitionhook.useTransition)(contextPanelOpen, 800);
|
|
680
676
|
const detailPanelTrans = (0, $9B3TU$transitionhook.useTransition)(_detailPanelOpen, 800);
|
|
@@ -692,8 +688,7 @@ function $c3311f59335df34d$var$_MapAreaContainer({ children: children , classNam
|
|
|
692
688
|
return $c3311f59335df34d$var$h($c3311f59335df34d$export$fa395a37c3898ae3, {
|
|
693
689
|
className: (0, ($parcel$interopDefault($9B3TU$classnames)))("map-page", className, {
|
|
694
690
|
"fit-viewport": fitViewport
|
|
695
|
-
})
|
|
696
|
-
mapPosition: mapPosition
|
|
691
|
+
})
|
|
697
692
|
}, [
|
|
698
693
|
$c3311f59335df34d$var$h("div.main-ui", {
|
|
699
694
|
className: mainUIClassName,
|
|
@@ -704,9 +699,9 @@ function $c3311f59335df34d$var$_MapAreaContainer({ children: children , classNam
|
|
|
704
699
|
$c3311f59335df34d$var$h("div.context-panel-holder", [
|
|
705
700
|
$c3311f59335df34d$var$h.if(contextPanelTrans.shouldMount)([
|
|
706
701
|
contextPanel
|
|
707
|
-
])
|
|
702
|
+
])
|
|
708
703
|
]),
|
|
709
|
-
$c3311f59335df34d$var$h("div.spacer")
|
|
704
|
+
$c3311f59335df34d$var$h("div.spacer")
|
|
710
705
|
]),
|
|
711
706
|
//h(MapView),
|
|
712
707
|
children ?? mainPanel,
|
|
@@ -716,18 +711,18 @@ function $c3311f59335df34d$var$_MapAreaContainer({ children: children , classNam
|
|
|
716
711
|
className: "zoom-control"
|
|
717
712
|
}),
|
|
718
713
|
$c3311f59335df34d$var$h("div.spacer"),
|
|
719
|
-
mapControls
|
|
720
|
-
])
|
|
714
|
+
mapControls
|
|
715
|
+
])
|
|
721
716
|
]),
|
|
722
|
-
$c3311f59335df34d$var$h("div.bottom", null, bottomPanel)
|
|
717
|
+
$c3311f59335df34d$var$h("div.bottom", null, bottomPanel)
|
|
723
718
|
]);
|
|
724
719
|
}
|
|
725
|
-
const $c3311f59335df34d$var$MapProviders = ({ children: children
|
|
720
|
+
const $c3311f59335df34d$var$MapProviders = ({ children: children })=>$c3311f59335df34d$var$h((0, $9B3TU$macrostratuicomponents.ToasterContext), $c3311f59335df34d$var$h((0, $9B3TU$macrostratmapboxreact.MapboxMapProvider), children));
|
|
726
721
|
const $c3311f59335df34d$export$9fa5da0bcfd0a290 = (props)=>$c3311f59335df34d$var$h($c3311f59335df34d$var$MapProviders, $c3311f59335df34d$var$h($c3311f59335df34d$var$_MapAreaContainer, props));
|
|
727
|
-
function $c3311f59335df34d$export$fa395a37c3898ae3({ className: className
|
|
722
|
+
function $c3311f59335df34d$export$fa395a37c3898ae3({ className: className, children: children }) {
|
|
728
723
|
const mapPosition = (0, $9B3TU$macrostratmapboxreact.useMapPosition)();
|
|
729
724
|
if (mapPosition != null) {
|
|
730
|
-
const { mapIsRotated: mapIsRotated
|
|
725
|
+
const { mapIsRotated: mapIsRotated, mapUse3D: mapUse3D, mapIsGlobal: mapIsGlobal } = (0, $9B3TU$macrostratmapboxutils.mapViewInfo)(mapPosition);
|
|
731
726
|
className = (0, ($parcel$interopDefault($9B3TU$classnames)))(className, {
|
|
732
727
|
"map-is-rotated": mapIsRotated,
|
|
733
728
|
"map-3d-available": mapUse3D,
|
|
@@ -753,7 +748,6 @@ $parcel$export($2611a7b4364593e5$exports, "MapMarker", () => $2611a7b4364593e5$e
|
|
|
753
748
|
|
|
754
749
|
|
|
755
750
|
|
|
756
|
-
|
|
757
751
|
var $3490fc4f4bda12f7$exports = {};
|
|
758
752
|
|
|
759
753
|
$parcel$export($3490fc4f4bda12f7$exports, "getMapPadding", () => $3490fc4f4bda12f7$export$bb78f9f01775eef1);
|
|
@@ -793,7 +787,7 @@ function $3490fc4f4bda12f7$export$278090850f6b3a9f(mapRef, markerRef, markerPosi
|
|
|
793
787
|
}
|
|
794
788
|
|
|
795
789
|
|
|
796
|
-
function $2611a7b4364593e5$export$31b2e088aff2dc5d({ containerRef: containerRef
|
|
790
|
+
function $2611a7b4364593e5$export$31b2e088aff2dc5d({ containerRef: containerRef }) {
|
|
797
791
|
const mapRef = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
798
792
|
const debouncedResize = (0, $9B3TU$react.useRef)((0, $9B3TU$underscore.debounce)(()=>{
|
|
799
793
|
mapRef.current?.resize();
|
|
@@ -804,7 +798,7 @@ function $2611a7b4364593e5$export$31b2e088aff2dc5d({ containerRef: containerRef
|
|
|
804
798
|
});
|
|
805
799
|
return null;
|
|
806
800
|
}
|
|
807
|
-
function $2611a7b4364593e5$export$2ab96428dea558d6({ containerRef: containerRef
|
|
801
|
+
function $2611a7b4364593e5$export$2ab96428dea558d6({ containerRef: containerRef, parentRef: parentRef, infoMarkerPosition: infoMarkerPosition }) {
|
|
808
802
|
const mapRef = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
809
803
|
const [padding, setPadding] = (0, $9B3TU$react.useState)((0, $3490fc4f4bda12f7$export$bb78f9f01775eef1)(containerRef, parentRef));
|
|
810
804
|
const updateMapPadding = (0, $9B3TU$react.useCallback)(()=>{
|
|
@@ -828,10 +822,11 @@ function $2611a7b4364593e5$export$2ab96428dea558d6({ containerRef: containerRef
|
|
|
828
822
|
updateMapPadding();
|
|
829
823
|
}
|
|
830
824
|
});
|
|
825
|
+
// Ideally, we would not have to do this when we know the infobox is loaded
|
|
831
826
|
(0, $9B3TU$macrostratmapboxreact.useMapEaseToCenter)(infoMarkerPosition, padding);
|
|
832
827
|
return null;
|
|
833
828
|
}
|
|
834
|
-
function $2611a7b4364593e5$export$f6eeee399afc4e9a({ onMapMoved: onMapMoved = null
|
|
829
|
+
function $2611a7b4364593e5$export$f6eeee399afc4e9a({ onMapMoved: onMapMoved = null }) {
|
|
835
830
|
const mapRef = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
836
831
|
const dispatch = (0, $9B3TU$macrostratmapboxreact.useMapDispatch)();
|
|
837
832
|
const mapMovedCallback = (0, $9B3TU$react.useCallback)(()=>{
|
|
@@ -865,7 +860,7 @@ function $2611a7b4364593e5$export$f6eeee399afc4e9a({ onMapMoved: onMapMoved = nu
|
|
|
865
860
|
]);
|
|
866
861
|
return null;
|
|
867
862
|
}
|
|
868
|
-
function $2611a7b4364593e5$export$e57f9eaa51773f82({ ignoredSources: ignoredSources
|
|
863
|
+
function $2611a7b4364593e5$export$e57f9eaa51773f82({ ignoredSources: ignoredSources, onMapLoading: onMapLoading = null, onMapIdle: onMapIdle = null, mapIsLoading: mapIsLoading }) {
|
|
869
864
|
const mapRef = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
870
865
|
const loadingRef = (0, $9B3TU$react.useRef)(false);
|
|
871
866
|
const dispatch = (0, $9B3TU$macrostratmapboxreact.useMapDispatch)();
|
|
@@ -903,11 +898,11 @@ function $2611a7b4364593e5$export$e57f9eaa51773f82({ ignoredSources: ignoredSour
|
|
|
903
898
|
}, [
|
|
904
899
|
ignoredSources,
|
|
905
900
|
mapRef.current,
|
|
906
|
-
|
|
901
|
+
mapIsLoading
|
|
907
902
|
]);
|
|
908
903
|
return null;
|
|
909
904
|
}
|
|
910
|
-
function $2611a7b4364593e5$export$5c90a91c7455938c({ position: position
|
|
905
|
+
function $2611a7b4364593e5$export$5c90a91c7455938c({ position: position, setPosition: setPosition, centerMarker: centerMarker = true }) {
|
|
911
906
|
const mapRef = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
912
907
|
const markerRef = (0, $9B3TU$react.useRef)(null);
|
|
913
908
|
(0, $3490fc4f4bda12f7$export$278090850f6b3a9f)(mapRef, markerRef, position);
|
|
@@ -958,8 +953,9 @@ $094b46e231302b09$export$d0dcaf774d09fc4c = `-mD4Aa_mapbox-map`;
|
|
|
958
953
|
|
|
959
954
|
|
|
960
955
|
|
|
956
|
+
// We should merge this with code in @macrostrat/mapbox-react/src/terrain.ts:
|
|
961
957
|
function $ecfbeec2ae4211a4$export$b730542ee281c4b1(map, shouldEnable, sourceID = null) {
|
|
962
|
-
let demSourceID =
|
|
958
|
+
let demSourceID = sourceID ?? $ecfbeec2ae4211a4$var$getTerrainSourceID(map) ?? "mapbox-dem";
|
|
963
959
|
console.log("Enabling 3D terrain with source", demSourceID);
|
|
964
960
|
if (!map.style?._loaded) {
|
|
965
961
|
map.once("style.load", ()=>{
|
|
@@ -1009,12 +1005,13 @@ function $ecfbeec2ae4211a4$var$getTerrainSourceID(map) {
|
|
|
1009
1005
|
|
|
1010
1006
|
|
|
1011
1007
|
|
|
1008
|
+
|
|
1012
1009
|
const $12b6032029db16d4$var$h = (0, ($parcel$interopDefault($9B3TU$macrostrathyper))).styled({
|
|
1013
1010
|
...(0, (/*@__PURE__*/$parcel$interopDefault($094b46e231302b09$exports))),
|
|
1014
1011
|
...(0, (/*@__PURE__*/$parcel$interopDefault($35f1bc0112883d51$exports)))
|
|
1015
1012
|
});
|
|
1016
1013
|
function $12b6032029db16d4$var$defaultInitializeMap(container, args = {}) {
|
|
1017
|
-
const { mapPosition: mapPosition
|
|
1014
|
+
const { mapPosition: mapPosition, ...rest } = args;
|
|
1018
1015
|
const map = new (0, ($parcel$interopDefault($9B3TU$mapboxgl))).Map({
|
|
1019
1016
|
container: container,
|
|
1020
1017
|
maxZoom: 18,
|
|
@@ -1038,15 +1035,22 @@ const $12b6032029db16d4$var$defaultMapPosition = {
|
|
|
1038
1035
|
}
|
|
1039
1036
|
};
|
|
1040
1037
|
function $12b6032029db16d4$export$ab1e7a67d6ec5ad8(props) {
|
|
1041
|
-
let { terrainSourceID: terrainSourceID
|
|
1042
|
-
const { enableTerrain: enableTerrain = true
|
|
1038
|
+
let { terrainSourceID: terrainSourceID } = props;
|
|
1039
|
+
const { enableTerrain: enableTerrain = true, style: style, mapPosition: mapPosition = $12b6032029db16d4$var$defaultMapPosition, initializeMap: initializeMap = $12b6032029db16d4$var$defaultInitializeMap, children: children, mapboxToken: mapboxToken, accessToken: // Deprecated
|
|
1040
|
+
accessToken, infoMarkerPosition: infoMarkerPosition, transformRequest: transformRequest, projection: projection, onMapLoaded: onMapLoaded = null, onStyleLoaded: onStyleLoaded = null, ...rest } = props;
|
|
1043
1041
|
if (enableTerrain) terrainSourceID ??= "mapbox-3d-dem";
|
|
1044
|
-
|
|
1042
|
+
const _mapboxToken = mapboxToken ?? accessToken;
|
|
1043
|
+
if (_mapboxToken != null) (0, ($parcel$interopDefault($9B3TU$mapboxgl))).accessToken = _mapboxToken;
|
|
1045
1044
|
const dispatch = (0, $9B3TU$macrostratmapboxreact.useMapDispatch)();
|
|
1046
1045
|
let mapRef = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
1047
1046
|
const ref = (0, $9B3TU$react.useRef)();
|
|
1048
1047
|
const parentRef = (0, $9B3TU$react.useRef)();
|
|
1049
1048
|
// Keep track of map position for reloads
|
|
1049
|
+
(0, $9B3TU$react.useEffect)(()=>{
|
|
1050
|
+
console.log("Map updated", mapRef.current);
|
|
1051
|
+
}, [
|
|
1052
|
+
mapRef.current
|
|
1053
|
+
]);
|
|
1050
1054
|
(0, $9B3TU$react.useEffect)(()=>{
|
|
1051
1055
|
if (style == null) return;
|
|
1052
1056
|
if (mapRef.current != null) {
|
|
@@ -1060,6 +1064,9 @@ function $12b6032029db16d4$export$ab1e7a67d6ec5ad8(props) {
|
|
|
1060
1064
|
mapPosition: mapPosition,
|
|
1061
1065
|
...rest
|
|
1062
1066
|
});
|
|
1067
|
+
map.setPadding((0, $3490fc4f4bda12f7$export$bb78f9f01775eef1)(ref, parentRef), {
|
|
1068
|
+
animate: false
|
|
1069
|
+
});
|
|
1063
1070
|
map.on("style.load", ()=>{
|
|
1064
1071
|
onStyleLoaded?.(map);
|
|
1065
1072
|
dispatch({
|
|
@@ -1087,7 +1094,7 @@ function $12b6032029db16d4$export$ab1e7a67d6ec5ad8(props) {
|
|
|
1087
1094
|
// setMapPosition(map, mapPosition);
|
|
1088
1095
|
// }, [mapPosition]);
|
|
1089
1096
|
const _computedMapPosition = (0, $9B3TU$macrostratmapboxreact.useMapPosition)();
|
|
1090
|
-
const { mapUse3D: mapUse3D
|
|
1097
|
+
const { mapUse3D: mapUse3D, mapIsRotated: mapIsRotated } = (0, $9B3TU$macrostratmapboxutils.mapViewInfo)(_computedMapPosition);
|
|
1091
1098
|
// Get map projection
|
|
1092
1099
|
const _projection = mapRef.current?.getProjection()?.name ?? "mercator";
|
|
1093
1100
|
const className = (0, ($parcel$interopDefault($9B3TU$classnames)))({
|
|
@@ -1120,10 +1127,10 @@ function $12b6032029db16d4$export$ab1e7a67d6ec5ad8(props) {
|
|
|
1120
1127
|
mapUse3D: mapUse3D,
|
|
1121
1128
|
terrainSourceID: terrainSourceID
|
|
1122
1129
|
}),
|
|
1123
|
-
children
|
|
1130
|
+
children
|
|
1124
1131
|
]);
|
|
1125
1132
|
}
|
|
1126
|
-
function $12b6032029db16d4$export$cee395a8a2a00b29({ mapUse3D: mapUse3D
|
|
1133
|
+
function $12b6032029db16d4$export$cee395a8a2a00b29({ mapUse3D: mapUse3D, terrainSourceID: terrainSourceID }) {
|
|
1127
1134
|
const mapRef = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
1128
1135
|
(0, $9B3TU$react.useEffect)(()=>{
|
|
1129
1136
|
const map = mapRef.current;
|
|
@@ -1186,13 +1193,13 @@ $parcel$export($abbe8d0af34cbbed$exports, "TileExtentLayer", () => $abbe8d0af34c
|
|
|
1186
1193
|
|
|
1187
1194
|
|
|
1188
1195
|
|
|
1189
|
-
function $abbe8d0af34cbbed$export$86c09739b12f23cd({ tile: tile
|
|
1196
|
+
function $abbe8d0af34cbbed$export$86c09739b12f23cd({ tile: tile, color: color = "red" }) {
|
|
1190
1197
|
const styleCallback = (0, $9B3TU$react.useCallback)((map, val)=>{
|
|
1191
1198
|
const style = map.getStyle();
|
|
1192
1199
|
if (style.layers == null) return;
|
|
1193
1200
|
style.layers = style.layers.filter((l)=>l.id != "tile-extent");
|
|
1194
1201
|
if (val == null) return map.setStyle(style);
|
|
1195
|
-
const { x: x
|
|
1202
|
+
const { x: x, y: y, z: z } = val;
|
|
1196
1203
|
const extent = (0, $9B3TU$mapboxtilebelt.tileToGeoJSON)([
|
|
1197
1204
|
x,
|
|
1198
1205
|
y,
|
|
@@ -1217,8 +1224,8 @@ function $abbe8d0af34cbbed$export$86c09739b12f23cd({ tile: tile , color: color =
|
|
|
1217
1224
|
}, [
|
|
1218
1225
|
color
|
|
1219
1226
|
]);
|
|
1220
|
-
const
|
|
1221
|
-
(0, $9B3TU$macrostratmapboxreact.useMapConditionalStyle)(
|
|
1227
|
+
const map = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
1228
|
+
(0, $9B3TU$macrostratmapboxreact.useMapConditionalStyle)(map, tile, styleCallback);
|
|
1222
1229
|
return null;
|
|
1223
1230
|
}
|
|
1224
1231
|
|
|
@@ -1308,22 +1315,21 @@ $b1c160aff794b8f5$export$494f9067c39d24ef = "expansion-panel-detail-body_1340c8"
|
|
|
1308
1315
|
|
|
1309
1316
|
|
|
1310
1317
|
|
|
1311
|
-
|
|
1312
1318
|
const $a0970d22776f9f4c$var$h = (0, ($parcel$interopDefault($9B3TU$macrostrathyper))).styled((0, (/*@__PURE__*/$parcel$interopDefault($b1c160aff794b8f5$exports))));
|
|
1313
1319
|
function $a0970d22776f9f4c$export$ed081779ec3709aa(props) {
|
|
1314
|
-
const { title: title
|
|
1320
|
+
const { title: title, component: component = "h3", children: children, ...rest } = props;
|
|
1315
1321
|
return $a0970d22776f9f4c$var$h("div.panel-subhead", rest, [
|
|
1316
1322
|
$a0970d22776f9f4c$var$h(component, {
|
|
1317
1323
|
className: "title"
|
|
1318
1324
|
}, title),
|
|
1319
|
-
children
|
|
1325
|
+
children
|
|
1320
1326
|
]);
|
|
1321
1327
|
}
|
|
1322
1328
|
|
|
1323
1329
|
|
|
1324
1330
|
const $750d69d73bfbdc9a$var$h = (0, ($parcel$interopDefault($9B3TU$macrostrathyper))).styled((0, (/*@__PURE__*/$parcel$interopDefault($b1c160aff794b8f5$exports))));
|
|
1325
1331
|
function $750d69d73bfbdc9a$export$cea00a9d724d5a32(props) {
|
|
1326
|
-
const { expanded: expanded
|
|
1332
|
+
const { expanded: expanded, children: children, onChange: onChange, className: className, title: title, titleComponent: titleComponent } = props;
|
|
1327
1333
|
const icon = expanded ? "chevron-up" : "chevron-down";
|
|
1328
1334
|
return $750d69d73bfbdc9a$var$h((0, $a0970d22776f9f4c$export$ed081779ec3709aa), {
|
|
1329
1335
|
className: (0, ($parcel$interopDefault($9B3TU$classnames)))("expansion-panel-header", className),
|
|
@@ -1338,7 +1344,7 @@ function $750d69d73bfbdc9a$export$cea00a9d724d5a32(props) {
|
|
|
1338
1344
|
]);
|
|
1339
1345
|
}
|
|
1340
1346
|
function $750d69d73bfbdc9a$var$ExpansionPanelBase(props) {
|
|
1341
|
-
let { title: title
|
|
1347
|
+
let { title: title, titleComponent: titleComponent = "h3", children: children, expanded: expanded, helpText: helpText, onChange: onChange = ()=>{}, sideComponent: sideComponent = null, className: className } = props;
|
|
1342
1348
|
const [isOpen, setOpen] = (0, $9B3TU$react.useState)(expanded || false);
|
|
1343
1349
|
const onChange_ = ()=>{
|
|
1344
1350
|
onChange();
|
|
@@ -1358,20 +1364,20 @@ function $750d69d73bfbdc9a$var$ExpansionPanelBase(props) {
|
|
|
1358
1364
|
}, $750d69d73bfbdc9a$var$h("div.expansion-summary-title-help", [
|
|
1359
1365
|
$750d69d73bfbdc9a$var$h("span.expansion-panel-subtext", helpText),
|
|
1360
1366
|
" ",
|
|
1361
|
-
sideComponent
|
|
1367
|
+
sideComponent
|
|
1362
1368
|
])),
|
|
1363
1369
|
$750d69d73bfbdc9a$var$h((0, $9B3TU$blueprintjscore.Collapse), {
|
|
1364
1370
|
isOpen: isOpen
|
|
1365
|
-
}, $750d69d73bfbdc9a$var$h("div.expansion-children", null, children))
|
|
1371
|
+
}, $750d69d73bfbdc9a$var$h("div.expansion-children", null, children))
|
|
1366
1372
|
]);
|
|
1367
1373
|
}
|
|
1368
1374
|
function $750d69d73bfbdc9a$export$39c134eb0b07cf0e(props) {
|
|
1369
|
-
let { title: title
|
|
1375
|
+
let { title: title, children: children, className: className, headerElement: headerElement = null } = props;
|
|
1370
1376
|
return $750d69d73bfbdc9a$var$h("div.info-panel-section", {
|
|
1371
1377
|
className: className
|
|
1372
1378
|
}, [
|
|
1373
1379
|
$750d69d73bfbdc9a$var$h("div.panel-subhead", null, headerElement ?? $750d69d73bfbdc9a$var$h("h3", title)),
|
|
1374
|
-
$750d69d73bfbdc9a$var$h("div.panel-content", null, children)
|
|
1380
|
+
$750d69d73bfbdc9a$var$h("div.panel-content", null, children)
|
|
1375
1381
|
]);
|
|
1376
1382
|
}
|
|
1377
1383
|
function $750d69d73bfbdc9a$export$40e646e38e6ed100(props) {
|
|
@@ -1388,7 +1394,7 @@ function $750d69d73bfbdc9a$export$d7160281aff7c3b8(props) {
|
|
|
1388
1394
|
});
|
|
1389
1395
|
}
|
|
1390
1396
|
function $750d69d73bfbdc9a$export$44ad9ff780615135(props) {
|
|
1391
|
-
let { title: title
|
|
1397
|
+
let { title: title, children: children, value: value, headerElement: headerElement, className: className } = props;
|
|
1392
1398
|
const [isOpen, setIsOpen] = (0, $9B3TU$react.useState)(false);
|
|
1393
1399
|
headerElement ??= $750d69d73bfbdc9a$var$h([
|
|
1394
1400
|
$750d69d73bfbdc9a$var$h("div.title", title),
|
|
@@ -1406,45 +1412,45 @@ function $750d69d73bfbdc9a$export$44ad9ff780615135(props) {
|
|
|
1406
1412
|
active: isOpen,
|
|
1407
1413
|
onClick: ()=>setIsOpen(!isOpen),
|
|
1408
1414
|
icon: "more"
|
|
1409
|
-
})
|
|
1410
|
-
])
|
|
1415
|
+
})
|
|
1416
|
+
])
|
|
1411
1417
|
]),
|
|
1412
1418
|
$750d69d73bfbdc9a$var$h((0, $9B3TU$blueprintjscore.Collapse), {
|
|
1413
1419
|
isOpen: isOpen
|
|
1414
|
-
}, $750d69d73bfbdc9a$var$h("div.expandable-details-children", null, children))
|
|
1420
|
+
}, $750d69d73bfbdc9a$var$h("div.expandable-details-children", null, children))
|
|
1415
1421
|
]);
|
|
1416
1422
|
}
|
|
1417
|
-
function $750d69d73bfbdc9a$export$263416b670b3f129({ title: title
|
|
1423
|
+
function $750d69d73bfbdc9a$export$263416b670b3f129({ title: title, className: className, children: children }) {
|
|
1418
1424
|
return $750d69d73bfbdc9a$var$h("div.expansion-body", {
|
|
1419
1425
|
className: className
|
|
1420
1426
|
}, [
|
|
1421
1427
|
$750d69d73bfbdc9a$var$h("div.expansion-panel-detail-header", title),
|
|
1422
|
-
$750d69d73bfbdc9a$var$h("div.expansion-panel-detail-body", null, children)
|
|
1428
|
+
$750d69d73bfbdc9a$var$h("div.expansion-panel-detail-body", null, children)
|
|
1423
1429
|
]);
|
|
1424
1430
|
}
|
|
1425
1431
|
|
|
1426
1432
|
|
|
1427
1433
|
const $db14eb7a5c07abdb$var$h = (0, ($parcel$interopDefault($9B3TU$macrostrathyper))).styled((0, (/*@__PURE__*/$parcel$interopDefault($33088e8384af337c$exports))));
|
|
1428
|
-
function $db14eb7a5c07abdb$export$2906e7f4b228efe9({ data: data
|
|
1434
|
+
function $db14eb7a5c07abdb$export$2906e7f4b228efe9({ data: data, ...rest }) {
|
|
1429
1435
|
return $db14eb7a5c07abdb$var$h("div.feature-properties", [
|
|
1430
1436
|
$db14eb7a5c07abdb$var$h((0, $9B3TU$macrostratuicomponents.JSONView), {
|
|
1431
1437
|
data: data,
|
|
1432
1438
|
hideRoot: true,
|
|
1433
1439
|
...rest
|
|
1434
|
-
})
|
|
1440
|
+
})
|
|
1435
1441
|
]);
|
|
1436
1442
|
}
|
|
1437
|
-
function $db14eb7a5c07abdb$export$dc87b4d46cea200d({ feature: feature
|
|
1443
|
+
function $db14eb7a5c07abdb$export$dc87b4d46cea200d({ feature: feature }) {
|
|
1438
1444
|
const props = feature.properties;
|
|
1439
1445
|
return $db14eb7a5c07abdb$var$h("div.feature-record", [
|
|
1440
1446
|
$db14eb7a5c07abdb$var$h.if(Object.keys(props).length > 0)($db14eb7a5c07abdb$export$2906e7f4b228efe9, {
|
|
1441
1447
|
data: props
|
|
1442
|
-
})
|
|
1448
|
+
})
|
|
1443
1449
|
]);
|
|
1444
1450
|
}
|
|
1445
|
-
function $db14eb7a5c07abdb$export$214daccdda0f4ac6({ selectedLocation: selectedLocation
|
|
1451
|
+
function $db14eb7a5c07abdb$export$214daccdda0f4ac6({ selectedLocation: selectedLocation, setFeatures: setFeatures, radius: radius = 2 }) {
|
|
1446
1452
|
const mapRef = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
1447
|
-
const { isLoading: isLoading
|
|
1453
|
+
const { isLoading: isLoading } = (0, $9B3TU$macrostratmapboxreact.useMapStatus)();
|
|
1448
1454
|
const prevLocation = (0, $9B3TU$macrostratuicomponents.usePrevious)(selectedLocation);
|
|
1449
1455
|
(0, $9B3TU$react.useEffect)(()=>{
|
|
1450
1456
|
const map = mapRef?.current;
|
|
@@ -1465,7 +1471,7 @@ function $db14eb7a5c07abdb$export$214daccdda0f4ac6({ selectedLocation: selectedL
|
|
|
1465
1471
|
[
|
|
1466
1472
|
pt.x + r,
|
|
1467
1473
|
pt.y + r
|
|
1468
|
-
]
|
|
1474
|
+
]
|
|
1469
1475
|
];
|
|
1470
1476
|
const features = map.queryRenderedFeatures(bbox);
|
|
1471
1477
|
setFeatures(features);
|
|
@@ -1476,7 +1482,7 @@ function $db14eb7a5c07abdb$export$214daccdda0f4ac6({ selectedLocation: selectedL
|
|
|
1476
1482
|
]);
|
|
1477
1483
|
return null;
|
|
1478
1484
|
}
|
|
1479
|
-
function $db14eb7a5c07abdb$var$FeatureHeader({ feature: feature
|
|
1485
|
+
function $db14eb7a5c07abdb$var$FeatureHeader({ feature: feature }) {
|
|
1480
1486
|
return $db14eb7a5c07abdb$var$h("div.feature-header", [
|
|
1481
1487
|
$db14eb7a5c07abdb$var$h("h3", [
|
|
1482
1488
|
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$KeyValue, {
|
|
@@ -1486,20 +1492,20 @@ function $db14eb7a5c07abdb$var$FeatureHeader({ feature: feature }) {
|
|
|
1486
1492
|
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$KeyValue, {
|
|
1487
1493
|
label: "Source layer",
|
|
1488
1494
|
value: feature.sourceLayer
|
|
1489
|
-
})
|
|
1490
|
-
])
|
|
1495
|
+
})
|
|
1496
|
+
])
|
|
1491
1497
|
]);
|
|
1492
1498
|
}
|
|
1493
|
-
function $db14eb7a5c07abdb$var$KeyValue({ label: label
|
|
1499
|
+
function $db14eb7a5c07abdb$var$KeyValue({ label: label, value: value }) {
|
|
1494
1500
|
return $db14eb7a5c07abdb$var$h("span.key-value", [
|
|
1495
1501
|
$db14eb7a5c07abdb$var$h("span.key", label),
|
|
1496
1502
|
$db14eb7a5c07abdb$var$h("code.value", value)
|
|
1497
1503
|
]);
|
|
1498
1504
|
}
|
|
1499
|
-
function $db14eb7a5c07abdb$var$LoadingAwareFeatureSet({ features: features
|
|
1505
|
+
function $db14eb7a5c07abdb$var$LoadingAwareFeatureSet({ features: features, sourceID: sourceID }) {
|
|
1500
1506
|
const map = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
1501
1507
|
if (map?.current == null) return null;
|
|
1502
|
-
const [
|
|
1508
|
+
const [isLoaded, setIsLoaded] = (0, $9B3TU$react.useState)(false);
|
|
1503
1509
|
const sourceFeatures = features.filter((d)=>d.source == "burwell");
|
|
1504
1510
|
(0, $9B3TU$react.useEffect)(()=>{
|
|
1505
1511
|
if (sourceFeatures.length > 0) {
|
|
@@ -1516,12 +1522,12 @@ function $db14eb7a5c07abdb$var$LoadingAwareFeatureSet({ features: features , sou
|
|
|
1516
1522
|
sourceID,
|
|
1517
1523
|
sourceFeatures.length
|
|
1518
1524
|
]);
|
|
1519
|
-
if (!
|
|
1525
|
+
if (!isLoaded) return $db14eb7a5c07abdb$var$h((0, $9B3TU$blueprintjscore.Spinner));
|
|
1520
1526
|
return $db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$export$617d79dae526d2cf, {
|
|
1521
1527
|
features: sourceFeatures
|
|
1522
1528
|
});
|
|
1523
1529
|
}
|
|
1524
|
-
function $db14eb7a5c07abdb$export$43c75dec9d0b96c({ feature: feature
|
|
1530
|
+
function $db14eb7a5c07abdb$export$43c75dec9d0b96c({ feature: feature, showExtent: showExtent, setShowExtent: setShowExtent }) {
|
|
1525
1531
|
if (feature == null) return null;
|
|
1526
1532
|
const size = feature._vectorTileFeature._pbf.length;
|
|
1527
1533
|
return $db14eb7a5c07abdb$var$h("div.tile-info", [
|
|
@@ -1538,7 +1544,7 @@ function $db14eb7a5c07abdb$export$43c75dec9d0b96c({ feature: feature , showExten
|
|
|
1538
1544
|
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$KeyValue, {
|
|
1539
1545
|
label: "z",
|
|
1540
1546
|
value: feature._z
|
|
1541
|
-
})
|
|
1547
|
+
})
|
|
1542
1548
|
]),
|
|
1543
1549
|
$db14eb7a5c07abdb$var$h("div.spacer"),
|
|
1544
1550
|
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$KeyValue, {
|
|
@@ -1552,7 +1558,7 @@ function $db14eb7a5c07abdb$export$43c75dec9d0b96c({ feature: feature , showExten
|
|
|
1552
1558
|
onChange () {
|
|
1553
1559
|
setShowExtent(!showExtent);
|
|
1554
1560
|
}
|
|
1555
|
-
})
|
|
1561
|
+
})
|
|
1556
1562
|
]);
|
|
1557
1563
|
}
|
|
1558
1564
|
function $db14eb7a5c07abdb$var$formatSize(size) {
|
|
@@ -1566,13 +1572,13 @@ function $db14eb7a5c07abdb$var$formatSize(size) {
|
|
|
1566
1572
|
});
|
|
1567
1573
|
return `${size} bytes`;
|
|
1568
1574
|
}
|
|
1569
|
-
function $db14eb7a5c07abdb$var$UnitNumber({ value: value
|
|
1575
|
+
function $db14eb7a5c07abdb$var$UnitNumber({ value: value, unit: unit, precision: precision = 1 }) {
|
|
1570
1576
|
return $db14eb7a5c07abdb$var$h("span.unit-number", [
|
|
1571
1577
|
$db14eb7a5c07abdb$var$h("span.number", value.toFixed(precision)),
|
|
1572
|
-
$db14eb7a5c07abdb$var$h("span.unit", unit)
|
|
1578
|
+
$db14eb7a5c07abdb$var$h("span.unit", unit)
|
|
1573
1579
|
]);
|
|
1574
1580
|
}
|
|
1575
|
-
function $db14eb7a5c07abdb$export$43277c51a01761c1({ features: features
|
|
1581
|
+
function $db14eb7a5c07abdb$export$43277c51a01761c1({ features: features, focusedSource: focusedSource = null, focusedSourceTitle: focusedSourceTitle = null }) {
|
|
1576
1582
|
if (features == null) return null;
|
|
1577
1583
|
let focusedSourcePanel = null;
|
|
1578
1584
|
let filteredFeatures = features;
|
|
@@ -1587,7 +1593,7 @@ function $db14eb7a5c07abdb$export$43277c51a01761c1({ features: features , focuse
|
|
|
1587
1593
|
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$LoadingAwareFeatureSet, {
|
|
1588
1594
|
features: features,
|
|
1589
1595
|
sourceID: focusedSource
|
|
1590
|
-
})
|
|
1596
|
+
})
|
|
1591
1597
|
]);
|
|
1592
1598
|
filteredFeatures = features.filter((d)=>d.source != focusedSource);
|
|
1593
1599
|
}
|
|
@@ -1600,13 +1606,13 @@ function $db14eb7a5c07abdb$export$43277c51a01761c1({ features: features , focuse
|
|
|
1600
1606
|
}, [
|
|
1601
1607
|
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$FeatureGroups, {
|
|
1602
1608
|
features: filteredFeatures
|
|
1603
|
-
})
|
|
1604
|
-
])
|
|
1609
|
+
})
|
|
1610
|
+
])
|
|
1605
1611
|
]);
|
|
1606
1612
|
}
|
|
1607
|
-
function $db14eb7a5c07abdb$var$FeatureGroups({ features:
|
|
1608
|
-
/** Group features by source and sourceLayer */ if (
|
|
1609
|
-
const groups = (0, $9B3TU$d3array.group)(
|
|
1613
|
+
function $db14eb7a5c07abdb$var$FeatureGroups({ features: features }) {
|
|
1614
|
+
/** Group features by source and sourceLayer */ if (features == null) return null;
|
|
1615
|
+
const groups = (0, $9B3TU$d3array.group)(features, (d)=>`${d.source} - ${d.sourceLayer}`);
|
|
1610
1616
|
return $db14eb7a5c07abdb$var$h("div.feature-groups", Array.from(groups).map(([key, features])=>{
|
|
1611
1617
|
return $db14eb7a5c07abdb$var$h("div.feature-group", [
|
|
1612
1618
|
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$FeatureHeader, {
|
|
@@ -1614,11 +1620,11 @@ function $db14eb7a5c07abdb$var$FeatureGroups({ features: features1 }) {
|
|
|
1614
1620
|
}),
|
|
1615
1621
|
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$export$617d79dae526d2cf, {
|
|
1616
1622
|
features: features
|
|
1617
|
-
})
|
|
1623
|
+
})
|
|
1618
1624
|
]);
|
|
1619
1625
|
}));
|
|
1620
1626
|
}
|
|
1621
|
-
function $db14eb7a5c07abdb$export$617d79dae526d2cf({ features: features
|
|
1627
|
+
function $db14eb7a5c07abdb$export$617d79dae526d2cf({ features: features }) {
|
|
1622
1628
|
return $db14eb7a5c07abdb$var$h("div.features", features.map((feature, i)=>$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$export$dc87b4d46cea200d, {
|
|
1623
1629
|
key: i,
|
|
1624
1630
|
feature: feature
|
|
@@ -1626,19 +1632,19 @@ function $db14eb7a5c07abdb$export$617d79dae526d2cf({ features: features }) {
|
|
|
1626
1632
|
}
|
|
1627
1633
|
|
|
1628
1634
|
|
|
1629
|
-
|
|
1630
|
-
(function(
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1635
|
+
var $6f5ca387ac26c0b5$export$dce4b6e67bb5f25a;
|
|
1636
|
+
(function(MacrostratVectorTileset) {
|
|
1637
|
+
MacrostratVectorTileset["Carto"] = "carto";
|
|
1638
|
+
MacrostratVectorTileset["CartoSlim"] = "carto-slim";
|
|
1639
|
+
MacrostratVectorTileset["IGCPOrogens"] = "igcp-orogens";
|
|
1634
1640
|
})($6f5ca387ac26c0b5$export$dce4b6e67bb5f25a || ($6f5ca387ac26c0b5$export$dce4b6e67bb5f25a = {}));
|
|
1635
|
-
|
|
1636
|
-
(function(
|
|
1637
|
-
|
|
1638
|
-
|
|
1641
|
+
var $6f5ca387ac26c0b5$export$cc7c195070dfb906;
|
|
1642
|
+
(function(MacrostratRasterTileset) {
|
|
1643
|
+
MacrostratRasterTileset["Carto"] = "carto";
|
|
1644
|
+
MacrostratRasterTileset["Emphasized"] = "emphasized";
|
|
1639
1645
|
})($6f5ca387ac26c0b5$export$cc7c195070dfb906 || ($6f5ca387ac26c0b5$export$cc7c195070dfb906 = {}));
|
|
1640
1646
|
const $6f5ca387ac26c0b5$export$dda1d9f60106f0e9 = (0, ($parcel$interopDefault($9B3TU$macrostrathyper))).styled((0, (/*@__PURE__*/$parcel$interopDefault($33088e8384af337c$exports))));
|
|
1641
|
-
function $6f5ca387ac26c0b5$export$2391061fbdfb71ef({ title: title = "Map inspector"
|
|
1647
|
+
function $6f5ca387ac26c0b5$export$2391061fbdfb71ef({ title: title = "Map inspector", headerElement: headerElement = null, transformRequest: transformRequest = null, mapPosition: mapPosition = null, mapboxToken: mapboxToken = null, overlayStyle: overlayStyle = null, children: children, style: style, focusedSource: focusedSource = null, focusedSourceTitle: focusedSourceTitle = null, projection: projection = null }) {
|
|
1642
1648
|
/* We apply a custom style to the panel container when we are interacting
|
|
1643
1649
|
with the search bar, so that we can block map interactions until search
|
|
1644
1650
|
bar focus is lost.
|
|
@@ -1653,7 +1659,7 @@ function $6f5ca387ac26c0b5$export$2391061fbdfb71ef({ title: title = "Map inspect
|
|
|
1653
1659
|
showTileExtent: false,
|
|
1654
1660
|
xRay: false
|
|
1655
1661
|
});
|
|
1656
|
-
const { showTileExtent: showTileExtent
|
|
1662
|
+
const { showTileExtent: showTileExtent, xRay: xRay } = state;
|
|
1657
1663
|
const [actualStyle, setActualStyle] = (0, $9B3TU$react.useState)(style);
|
|
1658
1664
|
(0, $9B3TU$react.useEffect)(()=>{
|
|
1659
1665
|
(0, $8646508ae99a5857$export$e739dc8dfc0db9a6)(style, overlayStyle, {
|
|
@@ -1694,7 +1700,7 @@ function $6f5ca387ac26c0b5$export$2391061fbdfb71ef({ title: title = "Map inspect
|
|
|
1694
1700
|
features: data,
|
|
1695
1701
|
focusedSource: focusedSource,
|
|
1696
1702
|
focusedSourceTitle: focusedSourceTitle
|
|
1697
|
-
})
|
|
1703
|
+
})
|
|
1698
1704
|
]);
|
|
1699
1705
|
let tile = null;
|
|
1700
1706
|
if (showTileExtent && data?.[0] != null) {
|
|
@@ -1705,7 +1711,6 @@ function $6f5ca387ac26c0b5$export$2391061fbdfb71ef({ title: title = "Map inspect
|
|
|
1705
1711
|
z: f._z
|
|
1706
1712
|
};
|
|
1707
1713
|
}
|
|
1708
|
-
console.log("Style", actualStyle);
|
|
1709
1714
|
return $6f5ca387ac26c0b5$export$dda1d9f60106f0e9((0, $c3311f59335df34d$export$9fa5da0bcfd0a290), {
|
|
1710
1715
|
navbar: $6f5ca387ac26c0b5$export$dda1d9f60106f0e9((0, $fce5fc950d1fe35b$export$a8cc0062d02a3841), [
|
|
1711
1716
|
headerElement ?? $6f5ca387ac26c0b5$export$dda1d9f60106f0e9("h2", title),
|
|
@@ -1713,7 +1718,7 @@ function $6f5ca387ac26c0b5$export$2391061fbdfb71ef({ title: title = "Map inspect
|
|
|
1713
1718
|
$6f5ca387ac26c0b5$export$dda1d9f60106f0e9((0, $fce5fc950d1fe35b$export$9e3bae3c08bde368), {
|
|
1714
1719
|
active: isOpen,
|
|
1715
1720
|
onClick: ()=>setOpen(!isOpen)
|
|
1716
|
-
})
|
|
1721
|
+
})
|
|
1717
1722
|
]),
|
|
1718
1723
|
contextPanel: $6f5ca387ac26c0b5$export$dda1d9f60106f0e9((0, $c3311f59335df34d$export$ec68dd77edbe678b), [
|
|
1719
1724
|
$6f5ca387ac26c0b5$export$dda1d9f60106f0e9((0, $9B3TU$blueprintjscore.Switch), {
|
|
@@ -1726,7 +1731,7 @@ function $6f5ca387ac26c0b5$export$2391061fbdfb71ef({ title: title = "Map inspect
|
|
|
1726
1731
|
});
|
|
1727
1732
|
}
|
|
1728
1733
|
}),
|
|
1729
|
-
children
|
|
1734
|
+
children
|
|
1730
1735
|
]),
|
|
1731
1736
|
detailPanel: detailElement,
|
|
1732
1737
|
contextPanelOpen: isOpen
|
|
@@ -1734,7 +1739,10 @@ function $6f5ca387ac26c0b5$export$2391061fbdfb71ef({ title: title = "Map inspect
|
|
|
1734
1739
|
style: actualStyle,
|
|
1735
1740
|
transformRequest: transformRequest,
|
|
1736
1741
|
mapPosition: mapPosition,
|
|
1737
|
-
projection:
|
|
1742
|
+
projection: {
|
|
1743
|
+
name: "globe"
|
|
1744
|
+
},
|
|
1745
|
+
mapboxToken: mapboxToken
|
|
1738
1746
|
}, [
|
|
1739
1747
|
$6f5ca387ac26c0b5$export$dda1d9f60106f0e9((0, $db14eb7a5c07abdb$export$214daccdda0f4ac6), {
|
|
1740
1748
|
selectedLocation: inspectPosition,
|
|
@@ -1747,7 +1755,7 @@ function $6f5ca387ac26c0b5$export$2391061fbdfb71ef({ title: title = "Map inspect
|
|
|
1747
1755
|
$6f5ca387ac26c0b5$export$dda1d9f60106f0e9((0, $abbe8d0af34cbbed$export$86c09739b12f23cd), {
|
|
1748
1756
|
tile: tile,
|
|
1749
1757
|
color: isEnabled ? "white" : "black"
|
|
1750
|
-
})
|
|
1758
|
+
})
|
|
1751
1759
|
]));
|
|
1752
1760
|
}
|
|
1753
1761
|
|