@macrostrat/map-interface 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +155 -144
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +3 -5
- package/dist/index.css.map +1 -1
- package/dist/index.js +155 -144
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +5 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/container.ts +0 -4
- package/src/dev/main.module.sass +1 -5
- package/src/dev/map-page.ts +3 -4
- package/src/helpers.ts +1 -1
- package/src/map-view/index.ts +19 -5
package/dist/index.cjs
CHANGED
|
@@ -48,16 +48,16 @@ $parcel$export($fce5fc950d1fe35b$exports, "FloatingNavbar", () => $fce5fc950d1fe
|
|
|
48
48
|
|
|
49
49
|
var $7a1b0f72a2e7f87d$exports = {};
|
|
50
50
|
|
|
51
|
-
$parcel$export($7a1b0f72a2e7f87d$exports, "searchbar", () => $7a1b0f72a2e7f87d$export$2ac23befe9d406ee, (v) => $7a1b0f72a2e7f87d$export$2ac23befe9d406ee = v);
|
|
52
51
|
$parcel$export($7a1b0f72a2e7f87d$exports, "navbar-holder", () => $7a1b0f72a2e7f87d$export$d8779dd86528d602, (v) => $7a1b0f72a2e7f87d$export$d8779dd86528d602 = v);
|
|
52
|
+
$parcel$export($7a1b0f72a2e7f87d$exports, "searchbar", () => $7a1b0f72a2e7f87d$export$2ac23befe9d406ee, (v) => $7a1b0f72a2e7f87d$export$2ac23befe9d406ee = v);
|
|
53
53
|
$parcel$export($7a1b0f72a2e7f87d$exports, "searchbar-holder", () => $7a1b0f72a2e7f87d$export$3a39e67bbbcbd4ae, (v) => $7a1b0f72a2e7f87d$export$3a39e67bbbcbd4ae = v);
|
|
54
54
|
$parcel$export($7a1b0f72a2e7f87d$exports, "status-tongue", () => $7a1b0f72a2e7f87d$export$764ade2d69041360, (v) => $7a1b0f72a2e7f87d$export$764ade2d69041360 = v);
|
|
55
|
-
var $7a1b0f72a2e7f87d$export$2ac23befe9d406ee;
|
|
56
55
|
var $7a1b0f72a2e7f87d$export$d8779dd86528d602;
|
|
56
|
+
var $7a1b0f72a2e7f87d$export$2ac23befe9d406ee;
|
|
57
57
|
var $7a1b0f72a2e7f87d$export$3a39e67bbbcbd4ae;
|
|
58
58
|
var $7a1b0f72a2e7f87d$export$764ade2d69041360;
|
|
59
|
-
$7a1b0f72a2e7f87d$export$2ac23befe9d406ee = `_8hZKsW_searchbar`;
|
|
60
59
|
$7a1b0f72a2e7f87d$export$d8779dd86528d602 = `_8hZKsW_navbar-holder`;
|
|
60
|
+
$7a1b0f72a2e7f87d$export$2ac23befe9d406ee = `_8hZKsW_searchbar`;
|
|
61
61
|
$7a1b0f72a2e7f87d$export$3a39e67bbbcbd4ae = `_8hZKsW_searchbar-holder`;
|
|
62
62
|
$7a1b0f72a2e7f87d$export$764ade2d69041360 = `_8hZKsW_status-tongue`;
|
|
63
63
|
|
|
@@ -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, "
|
|
116
|
-
$parcel$export($a8d7c4c397e52cf6$exports, "
|
|
117
|
-
$parcel$export($a8d7c4c397e52cf6$exports, "
|
|
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
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);
|
|
119
121
|
$parcel$export($a8d7c4c397e52cf6$exports, "loading", () => $a8d7c4c397e52cf6$export$46c1c92549715335, (v) => $a8d7c4c397e52cf6$export$46c1c92549715335 = v);
|
|
120
|
-
$parcel$export($a8d7c4c397e52cf6$exports, "infodrawer", () => $a8d7c4c397e52cf6$export$b5017f7ff265217d, (v) => $a8d7c4c397e52cf6$export$b5017f7ff265217d = v);
|
|
121
122
|
$parcel$export($a8d7c4c397e52cf6$exports, "location-panel-header", () => $a8d7c4c397e52cf6$export$d821beb98a87c6d7, (v) => $a8d7c4c397e52cf6$export$d821beb98a87c6d7 = v);
|
|
122
|
-
$parcel$export($a8d7c4c397e52cf6$exports, "
|
|
123
|
-
$parcel$export($a8d7c4c397e52cf6$exports, "
|
|
124
|
-
|
|
125
|
-
var $a8d7c4c397e52cf6$export$
|
|
126
|
-
var $a8d7c4c397e52cf6$export$
|
|
127
|
-
var $a8d7c4c397e52cf6$export$f750577db09821ce;
|
|
123
|
+
$parcel$export($a8d7c4c397e52cf6$exports, "position-controls", () => $a8d7c4c397e52cf6$export$dfae07a3bf0fbd6, (v) => $a8d7c4c397e52cf6$export$dfae07a3bf0fbd6 = v);
|
|
124
|
+
$parcel$export($a8d7c4c397e52cf6$exports, "spacer", () => $a8d7c4c397e52cf6$export$8cc075c801fd6817, (v) => $a8d7c4c397e52cf6$export$8cc075c801fd6817 = v);
|
|
125
|
+
var $a8d7c4c397e52cf6$export$d1352d0c31a65024;
|
|
126
|
+
var $a8d7c4c397e52cf6$export$b5017f7ff265217d;
|
|
127
|
+
var $a8d7c4c397e52cf6$export$310e8f86a84c074f;
|
|
128
128
|
var $a8d7c4c397e52cf6$export$69ed3ba502fbf15b;
|
|
129
|
+
var $a8d7c4c397e52cf6$export$333d72514239bce8;
|
|
130
|
+
var $a8d7c4c397e52cf6$export$f750577db09821ce;
|
|
129
131
|
var $a8d7c4c397e52cf6$export$46c1c92549715335;
|
|
130
|
-
var $a8d7c4c397e52cf6$export$b5017f7ff265217d;
|
|
131
132
|
var $a8d7c4c397e52cf6$export$d821beb98a87c6d7;
|
|
132
|
-
var $a8d7c4c397e52cf6$export$
|
|
133
|
-
var $a8d7c4c397e52cf6$export$
|
|
134
|
-
|
|
135
|
-
$a8d7c4c397e52cf6$export$
|
|
136
|
-
$a8d7c4c397e52cf6$export$
|
|
137
|
-
$a8d7c4c397e52cf6$export$f750577db09821ce = `VPa3-W_left-icon`;
|
|
133
|
+
var $a8d7c4c397e52cf6$export$dfae07a3bf0fbd6;
|
|
134
|
+
var $a8d7c4c397e52cf6$export$8cc075c801fd6817;
|
|
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
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`;
|
|
139
141
|
$a8d7c4c397e52cf6$export$46c1c92549715335 = `VPa3-W_loading`;
|
|
140
|
-
$a8d7c4c397e52cf6$export$b5017f7ff265217d = `VPa3-W_infodrawer`;
|
|
141
142
|
$a8d7c4c397e52cf6$export$d821beb98a87c6d7 = `VPa3-W_location-panel-header`;
|
|
142
|
-
$a8d7c4c397e52cf6$export$
|
|
143
|
-
$a8d7c4c397e52cf6$export$
|
|
144
|
-
$a8d7c4c397e52cf6$export$d1352d0c31a65024 = `VPa3-W_copy-link-button`;
|
|
143
|
+
$a8d7c4c397e52cf6$export$dfae07a3bf0fbd6 = `VPa3-W_position-controls`;
|
|
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
|
|
@@ -615,7 +616,6 @@ $parcel$export($f333fe6f49373ca9$exports, "MapBottomControls", () => $f333fe6f49
|
|
|
615
616
|
|
|
616
617
|
|
|
617
618
|
|
|
618
|
-
|
|
619
619
|
const $f333fe6f49373ca9$var$h = (0, ($parcel$interopDefault($9B3TU$macrostrathyper))).styled((0, (/*@__PURE__*/$parcel$interopDefault($35f1bc0112883d51$exports))));
|
|
620
620
|
function $f333fe6f49373ca9$var$ScaleControl(props) {
|
|
621
621
|
const optionsRef = (0, $9B3TU$react.useRef)({
|
|
@@ -658,7 +658,7 @@ function $f333fe6f49373ca9$export$db1a2e058a06fb5c() {
|
|
|
658
658
|
}),
|
|
659
659
|
$f333fe6f49373ca9$var$h($f333fe6f49373ca9$var$GeolocationControl, {
|
|
660
660
|
className: "geolocation-control"
|
|
661
|
-
})
|
|
661
|
+
})
|
|
662
662
|
]);
|
|
663
663
|
}
|
|
664
664
|
|
|
@@ -670,7 +670,7 @@ const $c3311f59335df34d$export$ec68dd77edbe678b = (props)=>$c3311f59335df34d$var
|
|
|
670
670
|
...props,
|
|
671
671
|
className: (0, ($parcel$interopDefault($9B3TU$classnames)))("panel-card", props.className)
|
|
672
672
|
});
|
|
673
|
-
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 }) {
|
|
674
674
|
const _detailPanelOpen = detailPanelOpen ?? detailPanel != null;
|
|
675
675
|
const contextPanelTrans = (0, $9B3TU$transitionhook.useTransition)(contextPanelOpen, 800);
|
|
676
676
|
const detailPanelTrans = (0, $9B3TU$transitionhook.useTransition)(_detailPanelOpen, 800);
|
|
@@ -688,8 +688,7 @@ function $c3311f59335df34d$var$_MapAreaContainer({ children: children , classNam
|
|
|
688
688
|
return $c3311f59335df34d$var$h($c3311f59335df34d$export$fa395a37c3898ae3, {
|
|
689
689
|
className: (0, ($parcel$interopDefault($9B3TU$classnames)))("map-page", className, {
|
|
690
690
|
"fit-viewport": fitViewport
|
|
691
|
-
})
|
|
692
|
-
mapPosition: mapPosition
|
|
691
|
+
})
|
|
693
692
|
}, [
|
|
694
693
|
$c3311f59335df34d$var$h("div.main-ui", {
|
|
695
694
|
className: mainUIClassName,
|
|
@@ -700,9 +699,9 @@ function $c3311f59335df34d$var$_MapAreaContainer({ children: children , classNam
|
|
|
700
699
|
$c3311f59335df34d$var$h("div.context-panel-holder", [
|
|
701
700
|
$c3311f59335df34d$var$h.if(contextPanelTrans.shouldMount)([
|
|
702
701
|
contextPanel
|
|
703
|
-
])
|
|
702
|
+
])
|
|
704
703
|
]),
|
|
705
|
-
$c3311f59335df34d$var$h("div.spacer")
|
|
704
|
+
$c3311f59335df34d$var$h("div.spacer")
|
|
706
705
|
]),
|
|
707
706
|
//h(MapView),
|
|
708
707
|
children ?? mainPanel,
|
|
@@ -712,18 +711,18 @@ function $c3311f59335df34d$var$_MapAreaContainer({ children: children , classNam
|
|
|
712
711
|
className: "zoom-control"
|
|
713
712
|
}),
|
|
714
713
|
$c3311f59335df34d$var$h("div.spacer"),
|
|
715
|
-
mapControls
|
|
716
|
-
])
|
|
714
|
+
mapControls
|
|
715
|
+
])
|
|
717
716
|
]),
|
|
718
|
-
$c3311f59335df34d$var$h("div.bottom", null, bottomPanel)
|
|
717
|
+
$c3311f59335df34d$var$h("div.bottom", null, bottomPanel)
|
|
719
718
|
]);
|
|
720
719
|
}
|
|
721
|
-
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));
|
|
722
721
|
const $c3311f59335df34d$export$9fa5da0bcfd0a290 = (props)=>$c3311f59335df34d$var$h($c3311f59335df34d$var$MapProviders, $c3311f59335df34d$var$h($c3311f59335df34d$var$_MapAreaContainer, props));
|
|
723
|
-
function $c3311f59335df34d$export$fa395a37c3898ae3({ className: className
|
|
722
|
+
function $c3311f59335df34d$export$fa395a37c3898ae3({ className: className, children: children }) {
|
|
724
723
|
const mapPosition = (0, $9B3TU$macrostratmapboxreact.useMapPosition)();
|
|
725
724
|
if (mapPosition != null) {
|
|
726
|
-
const { mapIsRotated: mapIsRotated
|
|
725
|
+
const { mapIsRotated: mapIsRotated, mapUse3D: mapUse3D, mapIsGlobal: mapIsGlobal } = (0, $9B3TU$macrostratmapboxutils.mapViewInfo)(mapPosition);
|
|
727
726
|
className = (0, ($parcel$interopDefault($9B3TU$classnames)))(className, {
|
|
728
727
|
"map-is-rotated": mapIsRotated,
|
|
729
728
|
"map-3d-available": mapUse3D,
|
|
@@ -749,7 +748,6 @@ $parcel$export($2611a7b4364593e5$exports, "MapMarker", () => $2611a7b4364593e5$e
|
|
|
749
748
|
|
|
750
749
|
|
|
751
750
|
|
|
752
|
-
|
|
753
751
|
var $3490fc4f4bda12f7$exports = {};
|
|
754
752
|
|
|
755
753
|
$parcel$export($3490fc4f4bda12f7$exports, "getMapPadding", () => $3490fc4f4bda12f7$export$bb78f9f01775eef1);
|
|
@@ -789,7 +787,7 @@ function $3490fc4f4bda12f7$export$278090850f6b3a9f(mapRef, markerRef, markerPosi
|
|
|
789
787
|
}
|
|
790
788
|
|
|
791
789
|
|
|
792
|
-
function $2611a7b4364593e5$export$31b2e088aff2dc5d({ containerRef: containerRef
|
|
790
|
+
function $2611a7b4364593e5$export$31b2e088aff2dc5d({ containerRef: containerRef }) {
|
|
793
791
|
const mapRef = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
794
792
|
const debouncedResize = (0, $9B3TU$react.useRef)((0, $9B3TU$underscore.debounce)(()=>{
|
|
795
793
|
mapRef.current?.resize();
|
|
@@ -800,7 +798,7 @@ function $2611a7b4364593e5$export$31b2e088aff2dc5d({ containerRef: containerRef
|
|
|
800
798
|
});
|
|
801
799
|
return null;
|
|
802
800
|
}
|
|
803
|
-
function $2611a7b4364593e5$export$2ab96428dea558d6({ containerRef: containerRef
|
|
801
|
+
function $2611a7b4364593e5$export$2ab96428dea558d6({ containerRef: containerRef, parentRef: parentRef, infoMarkerPosition: infoMarkerPosition }) {
|
|
804
802
|
const mapRef = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
805
803
|
const [padding, setPadding] = (0, $9B3TU$react.useState)((0, $3490fc4f4bda12f7$export$bb78f9f01775eef1)(containerRef, parentRef));
|
|
806
804
|
const updateMapPadding = (0, $9B3TU$react.useCallback)(()=>{
|
|
@@ -828,7 +826,7 @@ function $2611a7b4364593e5$export$2ab96428dea558d6({ containerRef: containerRef
|
|
|
828
826
|
(0, $9B3TU$macrostratmapboxreact.useMapEaseToCenter)(infoMarkerPosition, padding);
|
|
829
827
|
return null;
|
|
830
828
|
}
|
|
831
|
-
function $2611a7b4364593e5$export$f6eeee399afc4e9a({ onMapMoved: onMapMoved = null
|
|
829
|
+
function $2611a7b4364593e5$export$f6eeee399afc4e9a({ onMapMoved: onMapMoved = null }) {
|
|
832
830
|
const mapRef = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
833
831
|
const dispatch = (0, $9B3TU$macrostratmapboxreact.useMapDispatch)();
|
|
834
832
|
const mapMovedCallback = (0, $9B3TU$react.useCallback)(()=>{
|
|
@@ -862,7 +860,7 @@ function $2611a7b4364593e5$export$f6eeee399afc4e9a({ onMapMoved: onMapMoved = nu
|
|
|
862
860
|
]);
|
|
863
861
|
return null;
|
|
864
862
|
}
|
|
865
|
-
function $2611a7b4364593e5$export$e57f9eaa51773f82({ ignoredSources: ignoredSources
|
|
863
|
+
function $2611a7b4364593e5$export$e57f9eaa51773f82({ ignoredSources: ignoredSources, onMapLoading: onMapLoading = null, onMapIdle: onMapIdle = null, mapIsLoading: mapIsLoading }) {
|
|
866
864
|
const mapRef = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
867
865
|
const loadingRef = (0, $9B3TU$react.useRef)(false);
|
|
868
866
|
const dispatch = (0, $9B3TU$macrostratmapboxreact.useMapDispatch)();
|
|
@@ -900,11 +898,11 @@ function $2611a7b4364593e5$export$e57f9eaa51773f82({ ignoredSources: ignoredSour
|
|
|
900
898
|
}, [
|
|
901
899
|
ignoredSources,
|
|
902
900
|
mapRef.current,
|
|
903
|
-
|
|
901
|
+
mapIsLoading
|
|
904
902
|
]);
|
|
905
903
|
return null;
|
|
906
904
|
}
|
|
907
|
-
function $2611a7b4364593e5$export$5c90a91c7455938c({ position: position
|
|
905
|
+
function $2611a7b4364593e5$export$5c90a91c7455938c({ position: position, setPosition: setPosition, centerMarker: centerMarker = true }) {
|
|
908
906
|
const mapRef = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
909
907
|
const markerRef = (0, $9B3TU$react.useRef)(null);
|
|
910
908
|
(0, $3490fc4f4bda12f7$export$278090850f6b3a9f)(mapRef, markerRef, position);
|
|
@@ -946,17 +944,18 @@ $parcel$export($12b6032029db16d4$exports, "MapTerrainManager", () => $12b6032029
|
|
|
946
944
|
|
|
947
945
|
var $094b46e231302b09$exports = {};
|
|
948
946
|
|
|
949
|
-
$parcel$export($094b46e231302b09$exports, "mapbox-map", () => $094b46e231302b09$export$d0dcaf774d09fc4c, (v) => $094b46e231302b09$export$d0dcaf774d09fc4c = v);
|
|
950
947
|
$parcel$export($094b46e231302b09$exports, "map-view-container", () => $094b46e231302b09$export$11aa7dc57218208d, (v) => $094b46e231302b09$export$11aa7dc57218208d = v);
|
|
951
|
-
|
|
948
|
+
$parcel$export($094b46e231302b09$exports, "mapbox-map", () => $094b46e231302b09$export$d0dcaf774d09fc4c, (v) => $094b46e231302b09$export$d0dcaf774d09fc4c = v);
|
|
952
949
|
var $094b46e231302b09$export$11aa7dc57218208d;
|
|
953
|
-
$094b46e231302b09$export$d0dcaf774d09fc4c
|
|
950
|
+
var $094b46e231302b09$export$d0dcaf774d09fc4c;
|
|
954
951
|
$094b46e231302b09$export$11aa7dc57218208d = `-mD4Aa_map-view-container`;
|
|
952
|
+
$094b46e231302b09$export$d0dcaf774d09fc4c = `-mD4Aa_mapbox-map`;
|
|
955
953
|
|
|
956
954
|
|
|
957
955
|
|
|
956
|
+
// We should merge this with code in @macrostrat/mapbox-react/src/terrain.ts:
|
|
958
957
|
function $ecfbeec2ae4211a4$export$b730542ee281c4b1(map, shouldEnable, sourceID = null) {
|
|
959
|
-
let demSourceID =
|
|
958
|
+
let demSourceID = sourceID ?? $ecfbeec2ae4211a4$var$getTerrainSourceID(map) ?? "mapbox-dem";
|
|
960
959
|
console.log("Enabling 3D terrain with source", demSourceID);
|
|
961
960
|
if (!map.style?._loaded) {
|
|
962
961
|
map.once("style.load", ()=>{
|
|
@@ -1006,12 +1005,13 @@ function $ecfbeec2ae4211a4$var$getTerrainSourceID(map) {
|
|
|
1006
1005
|
|
|
1007
1006
|
|
|
1008
1007
|
|
|
1008
|
+
|
|
1009
1009
|
const $12b6032029db16d4$var$h = (0, ($parcel$interopDefault($9B3TU$macrostrathyper))).styled({
|
|
1010
1010
|
...(0, (/*@__PURE__*/$parcel$interopDefault($094b46e231302b09$exports))),
|
|
1011
1011
|
...(0, (/*@__PURE__*/$parcel$interopDefault($35f1bc0112883d51$exports)))
|
|
1012
1012
|
});
|
|
1013
1013
|
function $12b6032029db16d4$var$defaultInitializeMap(container, args = {}) {
|
|
1014
|
-
const { mapPosition: mapPosition
|
|
1014
|
+
const { mapPosition: mapPosition, ...rest } = args;
|
|
1015
1015
|
const map = new (0, ($parcel$interopDefault($9B3TU$mapboxgl))).Map({
|
|
1016
1016
|
container: container,
|
|
1017
1017
|
maxZoom: 18,
|
|
@@ -1035,15 +1035,22 @@ const $12b6032029db16d4$var$defaultMapPosition = {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
};
|
|
1037
1037
|
function $12b6032029db16d4$export$ab1e7a67d6ec5ad8(props) {
|
|
1038
|
-
let { terrainSourceID: terrainSourceID
|
|
1039
|
-
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;
|
|
1040
1041
|
if (enableTerrain) terrainSourceID ??= "mapbox-3d-dem";
|
|
1041
|
-
|
|
1042
|
+
const _mapboxToken = mapboxToken ?? accessToken;
|
|
1043
|
+
if (_mapboxToken != null) (0, ($parcel$interopDefault($9B3TU$mapboxgl))).accessToken = _mapboxToken;
|
|
1042
1044
|
const dispatch = (0, $9B3TU$macrostratmapboxreact.useMapDispatch)();
|
|
1043
1045
|
let mapRef = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
1044
1046
|
const ref = (0, $9B3TU$react.useRef)();
|
|
1045
1047
|
const parentRef = (0, $9B3TU$react.useRef)();
|
|
1046
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
|
+
]);
|
|
1047
1054
|
(0, $9B3TU$react.useEffect)(()=>{
|
|
1048
1055
|
if (style == null) return;
|
|
1049
1056
|
if (mapRef.current != null) {
|
|
@@ -1057,6 +1064,9 @@ function $12b6032029db16d4$export$ab1e7a67d6ec5ad8(props) {
|
|
|
1057
1064
|
mapPosition: mapPosition,
|
|
1058
1065
|
...rest
|
|
1059
1066
|
});
|
|
1067
|
+
map.setPadding((0, $3490fc4f4bda12f7$export$bb78f9f01775eef1)(ref, parentRef), {
|
|
1068
|
+
animate: false
|
|
1069
|
+
});
|
|
1060
1070
|
map.on("style.load", ()=>{
|
|
1061
1071
|
onStyleLoaded?.(map);
|
|
1062
1072
|
dispatch({
|
|
@@ -1084,7 +1094,7 @@ function $12b6032029db16d4$export$ab1e7a67d6ec5ad8(props) {
|
|
|
1084
1094
|
// setMapPosition(map, mapPosition);
|
|
1085
1095
|
// }, [mapPosition]);
|
|
1086
1096
|
const _computedMapPosition = (0, $9B3TU$macrostratmapboxreact.useMapPosition)();
|
|
1087
|
-
const { mapUse3D: mapUse3D
|
|
1097
|
+
const { mapUse3D: mapUse3D, mapIsRotated: mapIsRotated } = (0, $9B3TU$macrostratmapboxutils.mapViewInfo)(_computedMapPosition);
|
|
1088
1098
|
// Get map projection
|
|
1089
1099
|
const _projection = mapRef.current?.getProjection()?.name ?? "mercator";
|
|
1090
1100
|
const className = (0, ($parcel$interopDefault($9B3TU$classnames)))({
|
|
@@ -1117,10 +1127,10 @@ function $12b6032029db16d4$export$ab1e7a67d6ec5ad8(props) {
|
|
|
1117
1127
|
mapUse3D: mapUse3D,
|
|
1118
1128
|
terrainSourceID: terrainSourceID
|
|
1119
1129
|
}),
|
|
1120
|
-
children
|
|
1130
|
+
children
|
|
1121
1131
|
]);
|
|
1122
1132
|
}
|
|
1123
|
-
function $12b6032029db16d4$export$cee395a8a2a00b29({ mapUse3D: mapUse3D
|
|
1133
|
+
function $12b6032029db16d4$export$cee395a8a2a00b29({ mapUse3D: mapUse3D, terrainSourceID: terrainSourceID }) {
|
|
1124
1134
|
const mapRef = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
1125
1135
|
(0, $9B3TU$react.useEffect)(()=>{
|
|
1126
1136
|
const map = mapRef.current;
|
|
@@ -1183,13 +1193,13 @@ $parcel$export($abbe8d0af34cbbed$exports, "TileExtentLayer", () => $abbe8d0af34c
|
|
|
1183
1193
|
|
|
1184
1194
|
|
|
1185
1195
|
|
|
1186
|
-
function $abbe8d0af34cbbed$export$86c09739b12f23cd({ tile: tile
|
|
1196
|
+
function $abbe8d0af34cbbed$export$86c09739b12f23cd({ tile: tile, color: color = "red" }) {
|
|
1187
1197
|
const styleCallback = (0, $9B3TU$react.useCallback)((map, val)=>{
|
|
1188
1198
|
const style = map.getStyle();
|
|
1189
1199
|
if (style.layers == null) return;
|
|
1190
1200
|
style.layers = style.layers.filter((l)=>l.id != "tile-extent");
|
|
1191
1201
|
if (val == null) return map.setStyle(style);
|
|
1192
|
-
const { x: x
|
|
1202
|
+
const { x: x, y: y, z: z } = val;
|
|
1193
1203
|
const extent = (0, $9B3TU$mapboxtilebelt.tileToGeoJSON)([
|
|
1194
1204
|
x,
|
|
1195
1205
|
y,
|
|
@@ -1214,8 +1224,8 @@ function $abbe8d0af34cbbed$export$86c09739b12f23cd({ tile: tile , color: color =
|
|
|
1214
1224
|
}, [
|
|
1215
1225
|
color
|
|
1216
1226
|
]);
|
|
1217
|
-
const
|
|
1218
|
-
(0, $9B3TU$macrostratmapboxreact.useMapConditionalStyle)(
|
|
1227
|
+
const map = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
1228
|
+
(0, $9B3TU$macrostratmapboxreact.useMapConditionalStyle)(map, tile, styleCallback);
|
|
1219
1229
|
return null;
|
|
1220
1230
|
}
|
|
1221
1231
|
|
|
@@ -1305,22 +1315,21 @@ $b1c160aff794b8f5$export$494f9067c39d24ef = "expansion-panel-detail-body_1340c8"
|
|
|
1305
1315
|
|
|
1306
1316
|
|
|
1307
1317
|
|
|
1308
|
-
|
|
1309
1318
|
const $a0970d22776f9f4c$var$h = (0, ($parcel$interopDefault($9B3TU$macrostrathyper))).styled((0, (/*@__PURE__*/$parcel$interopDefault($b1c160aff794b8f5$exports))));
|
|
1310
1319
|
function $a0970d22776f9f4c$export$ed081779ec3709aa(props) {
|
|
1311
|
-
const { title: title
|
|
1320
|
+
const { title: title, component: component = "h3", children: children, ...rest } = props;
|
|
1312
1321
|
return $a0970d22776f9f4c$var$h("div.panel-subhead", rest, [
|
|
1313
1322
|
$a0970d22776f9f4c$var$h(component, {
|
|
1314
1323
|
className: "title"
|
|
1315
1324
|
}, title),
|
|
1316
|
-
children
|
|
1325
|
+
children
|
|
1317
1326
|
]);
|
|
1318
1327
|
}
|
|
1319
1328
|
|
|
1320
1329
|
|
|
1321
1330
|
const $750d69d73bfbdc9a$var$h = (0, ($parcel$interopDefault($9B3TU$macrostrathyper))).styled((0, (/*@__PURE__*/$parcel$interopDefault($b1c160aff794b8f5$exports))));
|
|
1322
1331
|
function $750d69d73bfbdc9a$export$cea00a9d724d5a32(props) {
|
|
1323
|
-
const { expanded: expanded
|
|
1332
|
+
const { expanded: expanded, children: children, onChange: onChange, className: className, title: title, titleComponent: titleComponent } = props;
|
|
1324
1333
|
const icon = expanded ? "chevron-up" : "chevron-down";
|
|
1325
1334
|
return $750d69d73bfbdc9a$var$h((0, $a0970d22776f9f4c$export$ed081779ec3709aa), {
|
|
1326
1335
|
className: (0, ($parcel$interopDefault($9B3TU$classnames)))("expansion-panel-header", className),
|
|
@@ -1335,7 +1344,7 @@ function $750d69d73bfbdc9a$export$cea00a9d724d5a32(props) {
|
|
|
1335
1344
|
]);
|
|
1336
1345
|
}
|
|
1337
1346
|
function $750d69d73bfbdc9a$var$ExpansionPanelBase(props) {
|
|
1338
|
-
let { title: title
|
|
1347
|
+
let { title: title, titleComponent: titleComponent = "h3", children: children, expanded: expanded, helpText: helpText, onChange: onChange = ()=>{}, sideComponent: sideComponent = null, className: className } = props;
|
|
1339
1348
|
const [isOpen, setOpen] = (0, $9B3TU$react.useState)(expanded || false);
|
|
1340
1349
|
const onChange_ = ()=>{
|
|
1341
1350
|
onChange();
|
|
@@ -1355,20 +1364,20 @@ function $750d69d73bfbdc9a$var$ExpansionPanelBase(props) {
|
|
|
1355
1364
|
}, $750d69d73bfbdc9a$var$h("div.expansion-summary-title-help", [
|
|
1356
1365
|
$750d69d73bfbdc9a$var$h("span.expansion-panel-subtext", helpText),
|
|
1357
1366
|
" ",
|
|
1358
|
-
sideComponent
|
|
1367
|
+
sideComponent
|
|
1359
1368
|
])),
|
|
1360
1369
|
$750d69d73bfbdc9a$var$h((0, $9B3TU$blueprintjscore.Collapse), {
|
|
1361
1370
|
isOpen: isOpen
|
|
1362
|
-
}, $750d69d73bfbdc9a$var$h("div.expansion-children", null, children))
|
|
1371
|
+
}, $750d69d73bfbdc9a$var$h("div.expansion-children", null, children))
|
|
1363
1372
|
]);
|
|
1364
1373
|
}
|
|
1365
1374
|
function $750d69d73bfbdc9a$export$39c134eb0b07cf0e(props) {
|
|
1366
|
-
let { title: title
|
|
1375
|
+
let { title: title, children: children, className: className, headerElement: headerElement = null } = props;
|
|
1367
1376
|
return $750d69d73bfbdc9a$var$h("div.info-panel-section", {
|
|
1368
1377
|
className: className
|
|
1369
1378
|
}, [
|
|
1370
1379
|
$750d69d73bfbdc9a$var$h("div.panel-subhead", null, headerElement ?? $750d69d73bfbdc9a$var$h("h3", title)),
|
|
1371
|
-
$750d69d73bfbdc9a$var$h("div.panel-content", null, children)
|
|
1380
|
+
$750d69d73bfbdc9a$var$h("div.panel-content", null, children)
|
|
1372
1381
|
]);
|
|
1373
1382
|
}
|
|
1374
1383
|
function $750d69d73bfbdc9a$export$40e646e38e6ed100(props) {
|
|
@@ -1385,7 +1394,7 @@ function $750d69d73bfbdc9a$export$d7160281aff7c3b8(props) {
|
|
|
1385
1394
|
});
|
|
1386
1395
|
}
|
|
1387
1396
|
function $750d69d73bfbdc9a$export$44ad9ff780615135(props) {
|
|
1388
|
-
let { title: title
|
|
1397
|
+
let { title: title, children: children, value: value, headerElement: headerElement, className: className } = props;
|
|
1389
1398
|
const [isOpen, setIsOpen] = (0, $9B3TU$react.useState)(false);
|
|
1390
1399
|
headerElement ??= $750d69d73bfbdc9a$var$h([
|
|
1391
1400
|
$750d69d73bfbdc9a$var$h("div.title", title),
|
|
@@ -1403,45 +1412,45 @@ function $750d69d73bfbdc9a$export$44ad9ff780615135(props) {
|
|
|
1403
1412
|
active: isOpen,
|
|
1404
1413
|
onClick: ()=>setIsOpen(!isOpen),
|
|
1405
1414
|
icon: "more"
|
|
1406
|
-
})
|
|
1407
|
-
])
|
|
1415
|
+
})
|
|
1416
|
+
])
|
|
1408
1417
|
]),
|
|
1409
1418
|
$750d69d73bfbdc9a$var$h((0, $9B3TU$blueprintjscore.Collapse), {
|
|
1410
1419
|
isOpen: isOpen
|
|
1411
|
-
}, $750d69d73bfbdc9a$var$h("div.expandable-details-children", null, children))
|
|
1420
|
+
}, $750d69d73bfbdc9a$var$h("div.expandable-details-children", null, children))
|
|
1412
1421
|
]);
|
|
1413
1422
|
}
|
|
1414
|
-
function $750d69d73bfbdc9a$export$263416b670b3f129({ title: title
|
|
1423
|
+
function $750d69d73bfbdc9a$export$263416b670b3f129({ title: title, className: className, children: children }) {
|
|
1415
1424
|
return $750d69d73bfbdc9a$var$h("div.expansion-body", {
|
|
1416
1425
|
className: className
|
|
1417
1426
|
}, [
|
|
1418
1427
|
$750d69d73bfbdc9a$var$h("div.expansion-panel-detail-header", title),
|
|
1419
|
-
$750d69d73bfbdc9a$var$h("div.expansion-panel-detail-body", null, children)
|
|
1428
|
+
$750d69d73bfbdc9a$var$h("div.expansion-panel-detail-body", null, children)
|
|
1420
1429
|
]);
|
|
1421
1430
|
}
|
|
1422
1431
|
|
|
1423
1432
|
|
|
1424
1433
|
const $db14eb7a5c07abdb$var$h = (0, ($parcel$interopDefault($9B3TU$macrostrathyper))).styled((0, (/*@__PURE__*/$parcel$interopDefault($33088e8384af337c$exports))));
|
|
1425
|
-
function $db14eb7a5c07abdb$export$2906e7f4b228efe9({ data: data
|
|
1434
|
+
function $db14eb7a5c07abdb$export$2906e7f4b228efe9({ data: data, ...rest }) {
|
|
1426
1435
|
return $db14eb7a5c07abdb$var$h("div.feature-properties", [
|
|
1427
1436
|
$db14eb7a5c07abdb$var$h((0, $9B3TU$macrostratuicomponents.JSONView), {
|
|
1428
1437
|
data: data,
|
|
1429
1438
|
hideRoot: true,
|
|
1430
1439
|
...rest
|
|
1431
|
-
})
|
|
1440
|
+
})
|
|
1432
1441
|
]);
|
|
1433
1442
|
}
|
|
1434
|
-
function $db14eb7a5c07abdb$export$dc87b4d46cea200d({ feature: feature
|
|
1443
|
+
function $db14eb7a5c07abdb$export$dc87b4d46cea200d({ feature: feature }) {
|
|
1435
1444
|
const props = feature.properties;
|
|
1436
1445
|
return $db14eb7a5c07abdb$var$h("div.feature-record", [
|
|
1437
1446
|
$db14eb7a5c07abdb$var$h.if(Object.keys(props).length > 0)($db14eb7a5c07abdb$export$2906e7f4b228efe9, {
|
|
1438
1447
|
data: props
|
|
1439
|
-
})
|
|
1448
|
+
})
|
|
1440
1449
|
]);
|
|
1441
1450
|
}
|
|
1442
|
-
function $db14eb7a5c07abdb$export$214daccdda0f4ac6({ selectedLocation: selectedLocation
|
|
1451
|
+
function $db14eb7a5c07abdb$export$214daccdda0f4ac6({ selectedLocation: selectedLocation, setFeatures: setFeatures, radius: radius = 2 }) {
|
|
1443
1452
|
const mapRef = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
1444
|
-
const { isLoading: isLoading
|
|
1453
|
+
const { isLoading: isLoading } = (0, $9B3TU$macrostratmapboxreact.useMapStatus)();
|
|
1445
1454
|
const prevLocation = (0, $9B3TU$macrostratuicomponents.usePrevious)(selectedLocation);
|
|
1446
1455
|
(0, $9B3TU$react.useEffect)(()=>{
|
|
1447
1456
|
const map = mapRef?.current;
|
|
@@ -1462,7 +1471,7 @@ function $db14eb7a5c07abdb$export$214daccdda0f4ac6({ selectedLocation: selectedL
|
|
|
1462
1471
|
[
|
|
1463
1472
|
pt.x + r,
|
|
1464
1473
|
pt.y + r
|
|
1465
|
-
]
|
|
1474
|
+
]
|
|
1466
1475
|
];
|
|
1467
1476
|
const features = map.queryRenderedFeatures(bbox);
|
|
1468
1477
|
setFeatures(features);
|
|
@@ -1473,7 +1482,7 @@ function $db14eb7a5c07abdb$export$214daccdda0f4ac6({ selectedLocation: selectedL
|
|
|
1473
1482
|
]);
|
|
1474
1483
|
return null;
|
|
1475
1484
|
}
|
|
1476
|
-
function $db14eb7a5c07abdb$var$FeatureHeader({ feature: feature
|
|
1485
|
+
function $db14eb7a5c07abdb$var$FeatureHeader({ feature: feature }) {
|
|
1477
1486
|
return $db14eb7a5c07abdb$var$h("div.feature-header", [
|
|
1478
1487
|
$db14eb7a5c07abdb$var$h("h3", [
|
|
1479
1488
|
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$KeyValue, {
|
|
@@ -1483,20 +1492,20 @@ function $db14eb7a5c07abdb$var$FeatureHeader({ feature: feature }) {
|
|
|
1483
1492
|
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$KeyValue, {
|
|
1484
1493
|
label: "Source layer",
|
|
1485
1494
|
value: feature.sourceLayer
|
|
1486
|
-
})
|
|
1487
|
-
])
|
|
1495
|
+
})
|
|
1496
|
+
])
|
|
1488
1497
|
]);
|
|
1489
1498
|
}
|
|
1490
|
-
function $db14eb7a5c07abdb$var$KeyValue({ label: label
|
|
1499
|
+
function $db14eb7a5c07abdb$var$KeyValue({ label: label, value: value }) {
|
|
1491
1500
|
return $db14eb7a5c07abdb$var$h("span.key-value", [
|
|
1492
1501
|
$db14eb7a5c07abdb$var$h("span.key", label),
|
|
1493
1502
|
$db14eb7a5c07abdb$var$h("code.value", value)
|
|
1494
1503
|
]);
|
|
1495
1504
|
}
|
|
1496
|
-
function $db14eb7a5c07abdb$var$LoadingAwareFeatureSet({ features: features
|
|
1505
|
+
function $db14eb7a5c07abdb$var$LoadingAwareFeatureSet({ features: features, sourceID: sourceID }) {
|
|
1497
1506
|
const map = (0, $9B3TU$macrostratmapboxreact.useMapRef)();
|
|
1498
1507
|
if (map?.current == null) return null;
|
|
1499
|
-
const [
|
|
1508
|
+
const [isLoaded, setIsLoaded] = (0, $9B3TU$react.useState)(false);
|
|
1500
1509
|
const sourceFeatures = features.filter((d)=>d.source == "burwell");
|
|
1501
1510
|
(0, $9B3TU$react.useEffect)(()=>{
|
|
1502
1511
|
if (sourceFeatures.length > 0) {
|
|
@@ -1513,12 +1522,12 @@ function $db14eb7a5c07abdb$var$LoadingAwareFeatureSet({ features: features , sou
|
|
|
1513
1522
|
sourceID,
|
|
1514
1523
|
sourceFeatures.length
|
|
1515
1524
|
]);
|
|
1516
|
-
if (!
|
|
1525
|
+
if (!isLoaded) return $db14eb7a5c07abdb$var$h((0, $9B3TU$blueprintjscore.Spinner));
|
|
1517
1526
|
return $db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$export$617d79dae526d2cf, {
|
|
1518
1527
|
features: sourceFeatures
|
|
1519
1528
|
});
|
|
1520
1529
|
}
|
|
1521
|
-
function $db14eb7a5c07abdb$export$43c75dec9d0b96c({ feature: feature
|
|
1530
|
+
function $db14eb7a5c07abdb$export$43c75dec9d0b96c({ feature: feature, showExtent: showExtent, setShowExtent: setShowExtent }) {
|
|
1522
1531
|
if (feature == null) return null;
|
|
1523
1532
|
const size = feature._vectorTileFeature._pbf.length;
|
|
1524
1533
|
return $db14eb7a5c07abdb$var$h("div.tile-info", [
|
|
@@ -1535,7 +1544,7 @@ function $db14eb7a5c07abdb$export$43c75dec9d0b96c({ feature: feature , showExten
|
|
|
1535
1544
|
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$KeyValue, {
|
|
1536
1545
|
label: "z",
|
|
1537
1546
|
value: feature._z
|
|
1538
|
-
})
|
|
1547
|
+
})
|
|
1539
1548
|
]),
|
|
1540
1549
|
$db14eb7a5c07abdb$var$h("div.spacer"),
|
|
1541
1550
|
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$KeyValue, {
|
|
@@ -1549,7 +1558,7 @@ function $db14eb7a5c07abdb$export$43c75dec9d0b96c({ feature: feature , showExten
|
|
|
1549
1558
|
onChange () {
|
|
1550
1559
|
setShowExtent(!showExtent);
|
|
1551
1560
|
}
|
|
1552
|
-
})
|
|
1561
|
+
})
|
|
1553
1562
|
]);
|
|
1554
1563
|
}
|
|
1555
1564
|
function $db14eb7a5c07abdb$var$formatSize(size) {
|
|
@@ -1563,13 +1572,13 @@ function $db14eb7a5c07abdb$var$formatSize(size) {
|
|
|
1563
1572
|
});
|
|
1564
1573
|
return `${size} bytes`;
|
|
1565
1574
|
}
|
|
1566
|
-
function $db14eb7a5c07abdb$var$UnitNumber({ value: value
|
|
1575
|
+
function $db14eb7a5c07abdb$var$UnitNumber({ value: value, unit: unit, precision: precision = 1 }) {
|
|
1567
1576
|
return $db14eb7a5c07abdb$var$h("span.unit-number", [
|
|
1568
1577
|
$db14eb7a5c07abdb$var$h("span.number", value.toFixed(precision)),
|
|
1569
|
-
$db14eb7a5c07abdb$var$h("span.unit", unit)
|
|
1578
|
+
$db14eb7a5c07abdb$var$h("span.unit", unit)
|
|
1570
1579
|
]);
|
|
1571
1580
|
}
|
|
1572
|
-
function $db14eb7a5c07abdb$export$43277c51a01761c1({ features: features
|
|
1581
|
+
function $db14eb7a5c07abdb$export$43277c51a01761c1({ features: features, focusedSource: focusedSource = null, focusedSourceTitle: focusedSourceTitle = null }) {
|
|
1573
1582
|
if (features == null) return null;
|
|
1574
1583
|
let focusedSourcePanel = null;
|
|
1575
1584
|
let filteredFeatures = features;
|
|
@@ -1584,7 +1593,7 @@ function $db14eb7a5c07abdb$export$43277c51a01761c1({ features: features , focuse
|
|
|
1584
1593
|
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$LoadingAwareFeatureSet, {
|
|
1585
1594
|
features: features,
|
|
1586
1595
|
sourceID: focusedSource
|
|
1587
|
-
})
|
|
1596
|
+
})
|
|
1588
1597
|
]);
|
|
1589
1598
|
filteredFeatures = features.filter((d)=>d.source != focusedSource);
|
|
1590
1599
|
}
|
|
@@ -1597,13 +1606,13 @@ function $db14eb7a5c07abdb$export$43277c51a01761c1({ features: features , focuse
|
|
|
1597
1606
|
}, [
|
|
1598
1607
|
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$FeatureGroups, {
|
|
1599
1608
|
features: filteredFeatures
|
|
1600
|
-
})
|
|
1601
|
-
])
|
|
1609
|
+
})
|
|
1610
|
+
])
|
|
1602
1611
|
]);
|
|
1603
1612
|
}
|
|
1604
|
-
function $db14eb7a5c07abdb$var$FeatureGroups({ features:
|
|
1605
|
-
/** Group features by source and sourceLayer */ if (
|
|
1606
|
-
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}`);
|
|
1607
1616
|
return $db14eb7a5c07abdb$var$h("div.feature-groups", Array.from(groups).map(([key, features])=>{
|
|
1608
1617
|
return $db14eb7a5c07abdb$var$h("div.feature-group", [
|
|
1609
1618
|
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$var$FeatureHeader, {
|
|
@@ -1611,11 +1620,11 @@ function $db14eb7a5c07abdb$var$FeatureGroups({ features: features1 }) {
|
|
|
1611
1620
|
}),
|
|
1612
1621
|
$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$export$617d79dae526d2cf, {
|
|
1613
1622
|
features: features
|
|
1614
|
-
})
|
|
1623
|
+
})
|
|
1615
1624
|
]);
|
|
1616
1625
|
}));
|
|
1617
1626
|
}
|
|
1618
|
-
function $db14eb7a5c07abdb$export$617d79dae526d2cf({ features: features
|
|
1627
|
+
function $db14eb7a5c07abdb$export$617d79dae526d2cf({ features: features }) {
|
|
1619
1628
|
return $db14eb7a5c07abdb$var$h("div.features", features.map((feature, i)=>$db14eb7a5c07abdb$var$h($db14eb7a5c07abdb$export$dc87b4d46cea200d, {
|
|
1620
1629
|
key: i,
|
|
1621
1630
|
feature: feature
|
|
@@ -1623,19 +1632,19 @@ function $db14eb7a5c07abdb$export$617d79dae526d2cf({ features: features }) {
|
|
|
1623
1632
|
}
|
|
1624
1633
|
|
|
1625
1634
|
|
|
1626
|
-
|
|
1627
|
-
(function(
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1635
|
+
var $6f5ca387ac26c0b5$export$dce4b6e67bb5f25a;
|
|
1636
|
+
(function(MacrostratVectorTileset) {
|
|
1637
|
+
MacrostratVectorTileset["Carto"] = "carto";
|
|
1638
|
+
MacrostratVectorTileset["CartoSlim"] = "carto-slim";
|
|
1639
|
+
MacrostratVectorTileset["IGCPOrogens"] = "igcp-orogens";
|
|
1631
1640
|
})($6f5ca387ac26c0b5$export$dce4b6e67bb5f25a || ($6f5ca387ac26c0b5$export$dce4b6e67bb5f25a = {}));
|
|
1632
|
-
|
|
1633
|
-
(function(
|
|
1634
|
-
|
|
1635
|
-
|
|
1641
|
+
var $6f5ca387ac26c0b5$export$cc7c195070dfb906;
|
|
1642
|
+
(function(MacrostratRasterTileset) {
|
|
1643
|
+
MacrostratRasterTileset["Carto"] = "carto";
|
|
1644
|
+
MacrostratRasterTileset["Emphasized"] = "emphasized";
|
|
1636
1645
|
})($6f5ca387ac26c0b5$export$cc7c195070dfb906 || ($6f5ca387ac26c0b5$export$cc7c195070dfb906 = {}));
|
|
1637
1646
|
const $6f5ca387ac26c0b5$export$dda1d9f60106f0e9 = (0, ($parcel$interopDefault($9B3TU$macrostrathyper))).styled((0, (/*@__PURE__*/$parcel$interopDefault($33088e8384af337c$exports))));
|
|
1638
|
-
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 }) {
|
|
1639
1648
|
/* We apply a custom style to the panel container when we are interacting
|
|
1640
1649
|
with the search bar, so that we can block map interactions until search
|
|
1641
1650
|
bar focus is lost.
|
|
@@ -1650,7 +1659,7 @@ function $6f5ca387ac26c0b5$export$2391061fbdfb71ef({ title: title = "Map inspect
|
|
|
1650
1659
|
showTileExtent: false,
|
|
1651
1660
|
xRay: false
|
|
1652
1661
|
});
|
|
1653
|
-
const { showTileExtent: showTileExtent
|
|
1662
|
+
const { showTileExtent: showTileExtent, xRay: xRay } = state;
|
|
1654
1663
|
const [actualStyle, setActualStyle] = (0, $9B3TU$react.useState)(style);
|
|
1655
1664
|
(0, $9B3TU$react.useEffect)(()=>{
|
|
1656
1665
|
(0, $8646508ae99a5857$export$e739dc8dfc0db9a6)(style, overlayStyle, {
|
|
@@ -1691,7 +1700,7 @@ function $6f5ca387ac26c0b5$export$2391061fbdfb71ef({ title: title = "Map inspect
|
|
|
1691
1700
|
features: data,
|
|
1692
1701
|
focusedSource: focusedSource,
|
|
1693
1702
|
focusedSourceTitle: focusedSourceTitle
|
|
1694
|
-
})
|
|
1703
|
+
})
|
|
1695
1704
|
]);
|
|
1696
1705
|
let tile = null;
|
|
1697
1706
|
if (showTileExtent && data?.[0] != null) {
|
|
@@ -1702,7 +1711,6 @@ function $6f5ca387ac26c0b5$export$2391061fbdfb71ef({ title: title = "Map inspect
|
|
|
1702
1711
|
z: f._z
|
|
1703
1712
|
};
|
|
1704
1713
|
}
|
|
1705
|
-
console.log("Style", actualStyle);
|
|
1706
1714
|
return $6f5ca387ac26c0b5$export$dda1d9f60106f0e9((0, $c3311f59335df34d$export$9fa5da0bcfd0a290), {
|
|
1707
1715
|
navbar: $6f5ca387ac26c0b5$export$dda1d9f60106f0e9((0, $fce5fc950d1fe35b$export$a8cc0062d02a3841), [
|
|
1708
1716
|
headerElement ?? $6f5ca387ac26c0b5$export$dda1d9f60106f0e9("h2", title),
|
|
@@ -1710,7 +1718,7 @@ function $6f5ca387ac26c0b5$export$2391061fbdfb71ef({ title: title = "Map inspect
|
|
|
1710
1718
|
$6f5ca387ac26c0b5$export$dda1d9f60106f0e9((0, $fce5fc950d1fe35b$export$9e3bae3c08bde368), {
|
|
1711
1719
|
active: isOpen,
|
|
1712
1720
|
onClick: ()=>setOpen(!isOpen)
|
|
1713
|
-
})
|
|
1721
|
+
})
|
|
1714
1722
|
]),
|
|
1715
1723
|
contextPanel: $6f5ca387ac26c0b5$export$dda1d9f60106f0e9((0, $c3311f59335df34d$export$ec68dd77edbe678b), [
|
|
1716
1724
|
$6f5ca387ac26c0b5$export$dda1d9f60106f0e9((0, $9B3TU$blueprintjscore.Switch), {
|
|
@@ -1723,7 +1731,7 @@ function $6f5ca387ac26c0b5$export$2391061fbdfb71ef({ title: title = "Map inspect
|
|
|
1723
1731
|
});
|
|
1724
1732
|
}
|
|
1725
1733
|
}),
|
|
1726
|
-
children
|
|
1734
|
+
children
|
|
1727
1735
|
]),
|
|
1728
1736
|
detailPanel: detailElement,
|
|
1729
1737
|
contextPanelOpen: isOpen
|
|
@@ -1731,7 +1739,10 @@ function $6f5ca387ac26c0b5$export$2391061fbdfb71ef({ title: title = "Map inspect
|
|
|
1731
1739
|
style: actualStyle,
|
|
1732
1740
|
transformRequest: transformRequest,
|
|
1733
1741
|
mapPosition: mapPosition,
|
|
1734
|
-
projection:
|
|
1742
|
+
projection: {
|
|
1743
|
+
name: "globe"
|
|
1744
|
+
},
|
|
1745
|
+
mapboxToken: mapboxToken
|
|
1735
1746
|
}, [
|
|
1736
1747
|
$6f5ca387ac26c0b5$export$dda1d9f60106f0e9((0, $db14eb7a5c07abdb$export$214daccdda0f4ac6), {
|
|
1737
1748
|
selectedLocation: inspectPosition,
|
|
@@ -1744,7 +1755,7 @@ function $6f5ca387ac26c0b5$export$2391061fbdfb71ef({ title: title = "Map inspect
|
|
|
1744
1755
|
$6f5ca387ac26c0b5$export$dda1d9f60106f0e9((0, $abbe8d0af34cbbed$export$86c09739b12f23cd), {
|
|
1745
1756
|
tile: tile,
|
|
1746
1757
|
color: isEnabled ? "white" : "black"
|
|
1747
|
-
})
|
|
1758
|
+
})
|
|
1748
1759
|
]));
|
|
1749
1760
|
}
|
|
1750
1761
|
|