@macrostrat/map-interface 0.0.6 → 0.0.8
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.js +158 -180
- package/dist/index.js.map +1 -1
- package/package.json +4 -5
- package/src/container.ts +0 -5
package/dist/index.js
CHANGED
|
@@ -34,22 +34,6 @@ function $parcel$interopDefault(a) {
|
|
|
34
34
|
function $parcel$export(e, n, v, s) {
|
|
35
35
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
36
36
|
}
|
|
37
|
-
function $parcel$exportWildcard(dest, source) {
|
|
38
|
-
Object.keys(source).forEach(function(key) {
|
|
39
|
-
if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
Object.defineProperty(dest, key, {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function get() {
|
|
46
|
-
return source[key];
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
return dest;
|
|
52
|
-
}
|
|
53
37
|
var $6e914c81c8e053da$exports = {};
|
|
54
38
|
|
|
55
39
|
$parcel$export($6e914c81c8e053da$exports, "LoadingButton", () => $6e914c81c8e053da$export$4ec83e90d030b2f3);
|
|
@@ -60,18 +44,18 @@ $parcel$export($6e914c81c8e053da$exports, "FloatingNavbar", () => $6e914c81c8e05
|
|
|
60
44
|
|
|
61
45
|
var $fbe402416678c280$exports = {};
|
|
62
46
|
|
|
63
|
-
$parcel$export($fbe402416678c280$exports, "
|
|
47
|
+
$parcel$export($fbe402416678c280$exports, "searchbar", () => $fbe402416678c280$export$2ac23befe9d406ee, (v) => $fbe402416678c280$export$2ac23befe9d406ee = v);
|
|
64
48
|
$parcel$export($fbe402416678c280$exports, "searchbar-holder", () => $fbe402416678c280$export$3a39e67bbbcbd4ae, (v) => $fbe402416678c280$export$3a39e67bbbcbd4ae = v);
|
|
49
|
+
$parcel$export($fbe402416678c280$exports, "status-tongue", () => $fbe402416678c280$export$764ade2d69041360, (v) => $fbe402416678c280$export$764ade2d69041360 = v);
|
|
65
50
|
$parcel$export($fbe402416678c280$exports, "navbar-holder", () => $fbe402416678c280$export$d8779dd86528d602, (v) => $fbe402416678c280$export$d8779dd86528d602 = v);
|
|
66
|
-
|
|
67
|
-
var $fbe402416678c280$export$764ade2d69041360;
|
|
51
|
+
var $fbe402416678c280$export$2ac23befe9d406ee;
|
|
68
52
|
var $fbe402416678c280$export$3a39e67bbbcbd4ae;
|
|
53
|
+
var $fbe402416678c280$export$764ade2d69041360;
|
|
69
54
|
var $fbe402416678c280$export$d8779dd86528d602;
|
|
70
|
-
|
|
71
|
-
$fbe402416678c280$export$764ade2d69041360 = `_8hZKsW_status-tongue`;
|
|
55
|
+
$fbe402416678c280$export$2ac23befe9d406ee = `_8hZKsW_searchbar`;
|
|
72
56
|
$fbe402416678c280$export$3a39e67bbbcbd4ae = `_8hZKsW_searchbar-holder`;
|
|
57
|
+
$fbe402416678c280$export$764ade2d69041360 = `_8hZKsW_status-tongue`;
|
|
73
58
|
$fbe402416678c280$export$d8779dd86528d602 = `_8hZKsW_navbar-holder`;
|
|
74
|
-
$fbe402416678c280$export$2ac23befe9d406ee = `_8hZKsW_searchbar`;
|
|
75
59
|
|
|
76
60
|
|
|
77
61
|
|
|
@@ -814,33 +798,33 @@ $parcel$export($f50c3537aaff0cff$exports, "LocationPanel", () => $f50c3537aaff0c
|
|
|
814
798
|
|
|
815
799
|
var $29ab0212ea6844d0$exports = {};
|
|
816
800
|
|
|
817
|
-
$parcel$export($29ab0212ea6844d0$exports, "
|
|
818
|
-
$parcel$export($29ab0212ea6844d0$exports, "
|
|
801
|
+
$parcel$export($29ab0212ea6844d0$exports, "infodrawer-header-item", () => $29ab0212ea6844d0$export$333d72514239bce8, (v) => $29ab0212ea6844d0$export$333d72514239bce8 = v);
|
|
802
|
+
$parcel$export($29ab0212ea6844d0$exports, "position-controls", () => $29ab0212ea6844d0$export$dfae07a3bf0fbd6, (v) => $29ab0212ea6844d0$export$dfae07a3bf0fbd6 = v);
|
|
819
803
|
$parcel$export($29ab0212ea6844d0$exports, "infodrawer-body", () => $29ab0212ea6844d0$export$310e8f86a84c074f, (v) => $29ab0212ea6844d0$export$310e8f86a84c074f = v);
|
|
820
804
|
$parcel$export($29ab0212ea6844d0$exports, "location-panel-header", () => $29ab0212ea6844d0$export$d821beb98a87c6d7, (v) => $29ab0212ea6844d0$export$d821beb98a87c6d7 = v);
|
|
805
|
+
$parcel$export($29ab0212ea6844d0$exports, "left-icon", () => $29ab0212ea6844d0$export$f750577db09821ce, (v) => $29ab0212ea6844d0$export$f750577db09821ce = v);
|
|
806
|
+
$parcel$export($29ab0212ea6844d0$exports, "loading", () => $29ab0212ea6844d0$export$46c1c92549715335, (v) => $29ab0212ea6844d0$export$46c1c92549715335 = v);
|
|
821
807
|
$parcel$export($29ab0212ea6844d0$exports, "spacer", () => $29ab0212ea6844d0$export$8cc075c801fd6817, (v) => $29ab0212ea6844d0$export$8cc075c801fd6817 = v);
|
|
822
|
-
$parcel$export($29ab0212ea6844d0$exports, "infodrawer-header-item", () => $29ab0212ea6844d0$export$333d72514239bce8, (v) => $29ab0212ea6844d0$export$333d72514239bce8 = v);
|
|
823
808
|
$parcel$export($29ab0212ea6844d0$exports, "infodrawer", () => $29ab0212ea6844d0$export$b5017f7ff265217d, (v) => $29ab0212ea6844d0$export$b5017f7ff265217d = v);
|
|
824
|
-
$parcel$export($29ab0212ea6844d0$exports, "
|
|
825
|
-
|
|
826
|
-
var $29ab0212ea6844d0$export$
|
|
827
|
-
var $29ab0212ea6844d0$export$d1352d0c31a65024;
|
|
809
|
+
$parcel$export($29ab0212ea6844d0$exports, "copy-link-button", () => $29ab0212ea6844d0$export$d1352d0c31a65024, (v) => $29ab0212ea6844d0$export$d1352d0c31a65024 = v);
|
|
810
|
+
var $29ab0212ea6844d0$export$333d72514239bce8;
|
|
811
|
+
var $29ab0212ea6844d0$export$dfae07a3bf0fbd6;
|
|
828
812
|
var $29ab0212ea6844d0$export$310e8f86a84c074f;
|
|
829
813
|
var $29ab0212ea6844d0$export$d821beb98a87c6d7;
|
|
814
|
+
var $29ab0212ea6844d0$export$f750577db09821ce;
|
|
815
|
+
var $29ab0212ea6844d0$export$46c1c92549715335;
|
|
830
816
|
var $29ab0212ea6844d0$export$8cc075c801fd6817;
|
|
831
|
-
var $29ab0212ea6844d0$export$333d72514239bce8;
|
|
832
817
|
var $29ab0212ea6844d0$export$b5017f7ff265217d;
|
|
833
|
-
var $29ab0212ea6844d0$export$
|
|
834
|
-
|
|
835
|
-
$29ab0212ea6844d0$export$
|
|
836
|
-
$29ab0212ea6844d0$export$d1352d0c31a65024 = `VPa3-W_copy-link-button`;
|
|
818
|
+
var $29ab0212ea6844d0$export$d1352d0c31a65024;
|
|
819
|
+
$29ab0212ea6844d0$export$333d72514239bce8 = `VPa3-W_infodrawer-header-item`;
|
|
820
|
+
$29ab0212ea6844d0$export$dfae07a3bf0fbd6 = `VPa3-W_position-controls`;
|
|
837
821
|
$29ab0212ea6844d0$export$310e8f86a84c074f = `VPa3-W_infodrawer-body`;
|
|
838
822
|
$29ab0212ea6844d0$export$d821beb98a87c6d7 = `VPa3-W_location-panel-header`;
|
|
823
|
+
$29ab0212ea6844d0$export$f750577db09821ce = `VPa3-W_left-icon`;
|
|
824
|
+
$29ab0212ea6844d0$export$46c1c92549715335 = `VPa3-W_loading`;
|
|
839
825
|
$29ab0212ea6844d0$export$8cc075c801fd6817 = `VPa3-W_spacer`;
|
|
840
|
-
$29ab0212ea6844d0$export$333d72514239bce8 = `VPa3-W_infodrawer-header-item`;
|
|
841
826
|
$29ab0212ea6844d0$export$b5017f7ff265217d = `VPa3-W_infodrawer`;
|
|
842
|
-
$29ab0212ea6844d0$export$
|
|
843
|
-
$29ab0212ea6844d0$export$dfae07a3bf0fbd6 = `VPa3-W_position-controls`;
|
|
827
|
+
$29ab0212ea6844d0$export$d1352d0c31a65024 = `VPa3-W_copy-link-button`;
|
|
844
828
|
|
|
845
829
|
|
|
846
830
|
|
|
@@ -4106,73 +4090,76 @@ function $91d5aa004eeb2226$export$db1a2e058a06fb5c() {
|
|
|
4106
4090
|
|
|
4107
4091
|
|
|
4108
4092
|
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
$
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
var $1ea1ddb7a7b84e13$exports = {};
|
|
4122
|
-
|
|
4123
|
-
$parcel$export($1ea1ddb7a7b84e13$exports, "map-view-container", () => $1ea1ddb7a7b84e13$export$11aa7dc57218208d, (v) => $1ea1ddb7a7b84e13$export$11aa7dc57218208d = v);
|
|
4124
|
-
var $1ea1ddb7a7b84e13$export$11aa7dc57218208d;
|
|
4125
|
-
$1ea1ddb7a7b84e13$export$11aa7dc57218208d = `-mD4Aa_map-view-container`;
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
function $286fbb15f2139dc1$export$b730542ee281c4b1(map, shouldEnable, sourceID = null) {
|
|
4130
|
-
let demSourceID = (sourceID ?? $286fbb15f2139dc1$var$getTerrainSourceID(map)) ?? "mapbox-dem";
|
|
4131
|
-
console.log("Enabling 3D terrain with source", demSourceID);
|
|
4132
|
-
if (!map.style?._loaded) {
|
|
4133
|
-
map.once("style.load", ()=>{
|
|
4134
|
-
$286fbb15f2139dc1$export$b730542ee281c4b1(map, shouldEnable, demSourceID);
|
|
4135
|
-
});
|
|
4136
|
-
return;
|
|
4137
|
-
}
|
|
4138
|
-
// Enable or disable terrain depending on our current desires...
|
|
4139
|
-
const currentTerrain = map.getTerrain();
|
|
4140
|
-
if (!shouldEnable) {
|
|
4141
|
-
if (currentTerrain != null) map.setTerrain(null);
|
|
4142
|
-
return;
|
|
4143
|
-
}
|
|
4144
|
-
if (currentTerrain != null) return;
|
|
4145
|
-
// Add a DEM source if one is not found already.
|
|
4146
|
-
if (map.getSource(demSourceID) == null) map.addSource(demSourceID, {
|
|
4147
|
-
type: "raster-dem",
|
|
4148
|
-
url: "mapbox://mapbox.mapbox-terrain-dem-v1",
|
|
4149
|
-
tileSize: 512,
|
|
4150
|
-
maxzoom: 14
|
|
4151
|
-
});
|
|
4152
|
-
// add a sky layer that will show when the map is highly pitched
|
|
4153
|
-
if (map.getLayer("sky") == null) map.addLayer({
|
|
4154
|
-
id: "sky",
|
|
4155
|
-
type: "sky",
|
|
4156
|
-
paint: {
|
|
4157
|
-
"sky-type": "atmosphere",
|
|
4158
|
-
"sky-atmosphere-sun": [
|
|
4159
|
-
0.0,
|
|
4160
|
-
0.0
|
|
4161
|
-
],
|
|
4162
|
-
"sky-atmosphere-sun-intensity": 15
|
|
4163
|
-
}
|
|
4164
|
-
});
|
|
4165
|
-
map.setTerrain({
|
|
4166
|
-
source: demSourceID,
|
|
4167
|
-
exaggeration: 1
|
|
4093
|
+
function $4bdfa9cd8240b2fd$export$57b87f3e07d4bb90() {
|
|
4094
|
+
return $4bdfa9cd8240b2fd$var$h("div", "Hello world");
|
|
4095
|
+
}
|
|
4096
|
+
const $4bdfa9cd8240b2fd$var$h = (0, $Zz0sd$macrostrathyper).styled((0, (/*@__PURE__*/$parcel$interopDefault($1f5c274a1b8d54c3$exports))));
|
|
4097
|
+
const $4bdfa9cd8240b2fd$export$ec68dd77edbe678b = (props)=>$4bdfa9cd8240b2fd$var$h((0, $Zz0sd$Card), {
|
|
4098
|
+
...props,
|
|
4099
|
+
className: (0, $Zz0sd$classnames)("panel-card", props.className)
|
|
4168
4100
|
});
|
|
4101
|
+
function $4bdfa9cd8240b2fd$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 = $4bdfa9cd8240b2fd$var$h((0, $91d5aa004eeb2226$export$db1a2e058a06fb5c)) , contextStackProps: contextStackProps = null , detailStackProps: detailStackProps = null , mapPosition: mapPosition = null , fitViewport: fitViewport = true , ...rest }) {
|
|
4102
|
+
const _detailPanelOpen = detailPanelOpen ?? detailPanel != null;
|
|
4103
|
+
const contextPanelTrans = (0, $Zz0sd$useTransition)(contextPanelOpen, 800);
|
|
4104
|
+
const detailPanelTrans = (0, $Zz0sd$useTransition)(_detailPanelOpen, 800);
|
|
4105
|
+
/*- We apply a custom style to the panel container when we are interacting
|
|
4106
|
+
with the search bar, so that we can block map interactions until search
|
|
4107
|
+
bar focus is lost.
|
|
4108
|
+
- We also apply a custom style when the infodrawer is open so we can hide
|
|
4109
|
+
the search bar on mobile platforms
|
|
4110
|
+
- These styles are doubly applied so we can have both namespaced and
|
|
4111
|
+
outside-accessible styles for each case.
|
|
4112
|
+
*/ const _className = (0, $Zz0sd$classnames)({
|
|
4113
|
+
searching: false,
|
|
4114
|
+
"detail-panel-open": _detailPanelOpen,
|
|
4115
|
+
"map-context-open": _detailPanelOpen,
|
|
4116
|
+
"fit-viewport": fitViewport
|
|
4117
|
+
}, `context-panel-${contextPanelTrans.stage}`, `map-context-${contextPanelTrans.stage}`, `detail-panel-${detailPanelTrans.stage}`, `map-detail-${detailPanelTrans.stage}`);
|
|
4118
|
+
return $4bdfa9cd8240b2fd$var$h($4bdfa9cd8240b2fd$export$fa395a37c3898ae3, {
|
|
4119
|
+
className: (0, $Zz0sd$classnames)("map-page", className),
|
|
4120
|
+
mapPosition: mapPosition
|
|
4121
|
+
}, [
|
|
4122
|
+
$4bdfa9cd8240b2fd$var$h("div.main-ui", {
|
|
4123
|
+
className: _className,
|
|
4124
|
+
...rest
|
|
4125
|
+
}, [
|
|
4126
|
+
$4bdfa9cd8240b2fd$var$h("div.context-stack", contextStackProps, [
|
|
4127
|
+
navbar,
|
|
4128
|
+
$4bdfa9cd8240b2fd$var$h.if(contextPanelTrans.shouldMount)([
|
|
4129
|
+
contextPanel
|
|
4130
|
+
]),
|
|
4131
|
+
]),
|
|
4132
|
+
//h(MapView),
|
|
4133
|
+
children ?? mainPanel,
|
|
4134
|
+
$4bdfa9cd8240b2fd$var$h("div.detail-stack.infodrawer-container", detailStackProps, [
|
|
4135
|
+
detailPanel,
|
|
4136
|
+
$4bdfa9cd8240b2fd$var$h((0, $e4df11ee33ce76ab$export$dd36b6cb96de1ba3), {
|
|
4137
|
+
className: "zoom-control"
|
|
4138
|
+
}),
|
|
4139
|
+
$4bdfa9cd8240b2fd$var$h("div.spacer"),
|
|
4140
|
+
mapControls,
|
|
4141
|
+
]),
|
|
4142
|
+
]),
|
|
4143
|
+
$4bdfa9cd8240b2fd$var$h("div.bottom", null, bottomPanel),
|
|
4144
|
+
]);
|
|
4169
4145
|
}
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4146
|
+
const $4bdfa9cd8240b2fd$var$MapProviders = ({ children: children })=>$4bdfa9cd8240b2fd$var$h((0, $c8a29764c15c7584$export$9194c0aa0cd7a9ff), $4bdfa9cd8240b2fd$var$h((0, $dc75c8651942e3cf$export$5e21c9300e1e71dd), children));
|
|
4147
|
+
const $4bdfa9cd8240b2fd$export$9fa5da0bcfd0a290 = (props)=>$4bdfa9cd8240b2fd$var$h($4bdfa9cd8240b2fd$var$MapProviders, $4bdfa9cd8240b2fd$var$h($4bdfa9cd8240b2fd$var$_MapAreaContainer, props));
|
|
4148
|
+
function $4bdfa9cd8240b2fd$export$fa395a37c3898ae3({ className: className , children: children }) {
|
|
4149
|
+
const { mapPosition: mapPosition } = (0, $dc75c8651942e3cf$export$6b15394f69cd8f33)();
|
|
4150
|
+
if (mapPosition != null) {
|
|
4151
|
+
const { mapIsRotated: mapIsRotated , mapUse3D: mapUse3D , mapIsGlobal: mapIsGlobal } = (0, $b2a9fc2ffc60e62a$export$df38eeea86a10661)(mapPosition);
|
|
4152
|
+
className = (0, $Zz0sd$classnames)(className, {
|
|
4153
|
+
"map-is-rotated": mapIsRotated,
|
|
4154
|
+
"map-3d-available": mapUse3D,
|
|
4155
|
+
"map-is-global": mapIsGlobal
|
|
4156
|
+
});
|
|
4173
4157
|
}
|
|
4174
|
-
return
|
|
4175
|
-
|
|
4158
|
+
return $4bdfa9cd8240b2fd$var$h("div", {
|
|
4159
|
+
className: className
|
|
4160
|
+
}, children);
|
|
4161
|
+
} //const _MapPage = compose(HotkeysProvider, MapPage);
|
|
4162
|
+
|
|
4176
4163
|
|
|
4177
4164
|
|
|
4178
4165
|
|
|
@@ -4359,6 +4346,75 @@ function $4bc3dd5f0732eed3$export$5c90a91c7455938c({ position: position , setPos
|
|
|
4359
4346
|
}
|
|
4360
4347
|
|
|
4361
4348
|
|
|
4349
|
+
|
|
4350
|
+
var $9e150e311a3261e9$exports = {};
|
|
4351
|
+
|
|
4352
|
+
$parcel$export($9e150e311a3261e9$exports, "MapView", () => $9e150e311a3261e9$export$ab1e7a67d6ec5ad8);
|
|
4353
|
+
$parcel$export($9e150e311a3261e9$exports, "MapTerrainManager", () => $9e150e311a3261e9$export$cee395a8a2a00b29);
|
|
4354
|
+
|
|
4355
|
+
|
|
4356
|
+
|
|
4357
|
+
|
|
4358
|
+
|
|
4359
|
+
|
|
4360
|
+
var $1ea1ddb7a7b84e13$exports = {};
|
|
4361
|
+
|
|
4362
|
+
$parcel$export($1ea1ddb7a7b84e13$exports, "map-view-container", () => $1ea1ddb7a7b84e13$export$11aa7dc57218208d, (v) => $1ea1ddb7a7b84e13$export$11aa7dc57218208d = v);
|
|
4363
|
+
var $1ea1ddb7a7b84e13$export$11aa7dc57218208d;
|
|
4364
|
+
$1ea1ddb7a7b84e13$export$11aa7dc57218208d = `-mD4Aa_map-view-container`;
|
|
4365
|
+
|
|
4366
|
+
|
|
4367
|
+
|
|
4368
|
+
function $286fbb15f2139dc1$export$b730542ee281c4b1(map, shouldEnable, sourceID = null) {
|
|
4369
|
+
let demSourceID = (sourceID ?? $286fbb15f2139dc1$var$getTerrainSourceID(map)) ?? "mapbox-dem";
|
|
4370
|
+
console.log("Enabling 3D terrain with source", demSourceID);
|
|
4371
|
+
if (!map.style?._loaded) {
|
|
4372
|
+
map.once("style.load", ()=>{
|
|
4373
|
+
$286fbb15f2139dc1$export$b730542ee281c4b1(map, shouldEnable, demSourceID);
|
|
4374
|
+
});
|
|
4375
|
+
return;
|
|
4376
|
+
}
|
|
4377
|
+
// Enable or disable terrain depending on our current desires...
|
|
4378
|
+
const currentTerrain = map.getTerrain();
|
|
4379
|
+
if (!shouldEnable) {
|
|
4380
|
+
if (currentTerrain != null) map.setTerrain(null);
|
|
4381
|
+
return;
|
|
4382
|
+
}
|
|
4383
|
+
if (currentTerrain != null) return;
|
|
4384
|
+
// Add a DEM source if one is not found already.
|
|
4385
|
+
if (map.getSource(demSourceID) == null) map.addSource(demSourceID, {
|
|
4386
|
+
type: "raster-dem",
|
|
4387
|
+
url: "mapbox://mapbox.mapbox-terrain-dem-v1",
|
|
4388
|
+
tileSize: 512,
|
|
4389
|
+
maxzoom: 14
|
|
4390
|
+
});
|
|
4391
|
+
// add a sky layer that will show when the map is highly pitched
|
|
4392
|
+
if (map.getLayer("sky") == null) map.addLayer({
|
|
4393
|
+
id: "sky",
|
|
4394
|
+
type: "sky",
|
|
4395
|
+
paint: {
|
|
4396
|
+
"sky-type": "atmosphere",
|
|
4397
|
+
"sky-atmosphere-sun": [
|
|
4398
|
+
0.0,
|
|
4399
|
+
0.0
|
|
4400
|
+
],
|
|
4401
|
+
"sky-atmosphere-sun-intensity": 15
|
|
4402
|
+
}
|
|
4403
|
+
});
|
|
4404
|
+
map.setTerrain({
|
|
4405
|
+
source: demSourceID,
|
|
4406
|
+
exaggeration: 1
|
|
4407
|
+
});
|
|
4408
|
+
}
|
|
4409
|
+
function $286fbb15f2139dc1$var$getTerrainSourceID(map) {
|
|
4410
|
+
for (const [key, source] of Object.entries(map.getStyle().sources)){
|
|
4411
|
+
if (source.type == "raster-dem") return key;
|
|
4412
|
+
}
|
|
4413
|
+
return null;
|
|
4414
|
+
}
|
|
4415
|
+
|
|
4416
|
+
|
|
4417
|
+
|
|
4362
4418
|
const $9e150e311a3261e9$var$h = (0, $Zz0sd$macrostrathyper).styled({
|
|
4363
4419
|
...(0, (/*@__PURE__*/$parcel$interopDefault($1ea1ddb7a7b84e13$exports))),
|
|
4364
4420
|
...(0, (/*@__PURE__*/$parcel$interopDefault($1f5c274a1b8d54c3$exports)))
|
|
@@ -4486,84 +4542,6 @@ function $9e150e311a3261e9$export$cee395a8a2a00b29({ mapUse3D: mapUse3D , terrai
|
|
|
4486
4542
|
}
|
|
4487
4543
|
|
|
4488
4544
|
|
|
4489
|
-
function $4bdfa9cd8240b2fd$export$57b87f3e07d4bb90() {
|
|
4490
|
-
return $4bdfa9cd8240b2fd$var$h("div", "Hello world");
|
|
4491
|
-
}
|
|
4492
|
-
const $4bdfa9cd8240b2fd$var$h = (0, $Zz0sd$macrostrathyper).styled((0, (/*@__PURE__*/$parcel$interopDefault($1f5c274a1b8d54c3$exports))));
|
|
4493
|
-
const $4bdfa9cd8240b2fd$export$ec68dd77edbe678b = (props)=>$4bdfa9cd8240b2fd$var$h((0, $Zz0sd$Card), {
|
|
4494
|
-
...props,
|
|
4495
|
-
className: (0, $Zz0sd$classnames)("panel-card", props.className)
|
|
4496
|
-
});
|
|
4497
|
-
function $4bdfa9cd8240b2fd$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 = $4bdfa9cd8240b2fd$var$h((0, $91d5aa004eeb2226$export$db1a2e058a06fb5c)) , contextStackProps: contextStackProps = null , detailStackProps: detailStackProps = null , mapPosition: mapPosition = null , fitViewport: fitViewport = true , ...rest }) {
|
|
4498
|
-
const _detailPanelOpen = detailPanelOpen ?? detailPanel != null;
|
|
4499
|
-
const contextPanelTrans = (0, $Zz0sd$useTransition)(contextPanelOpen, 800);
|
|
4500
|
-
const detailPanelTrans = (0, $Zz0sd$useTransition)(_detailPanelOpen, 800);
|
|
4501
|
-
/*- We apply a custom style to the panel container when we are interacting
|
|
4502
|
-
with the search bar, so that we can block map interactions until search
|
|
4503
|
-
bar focus is lost.
|
|
4504
|
-
- We also apply a custom style when the infodrawer is open so we can hide
|
|
4505
|
-
the search bar on mobile platforms
|
|
4506
|
-
- These styles are doubly applied so we can have both namespaced and
|
|
4507
|
-
outside-accessible styles for each case.
|
|
4508
|
-
*/ const _className = (0, $Zz0sd$classnames)({
|
|
4509
|
-
searching: false,
|
|
4510
|
-
"detail-panel-open": _detailPanelOpen,
|
|
4511
|
-
"map-context-open": _detailPanelOpen,
|
|
4512
|
-
"fit-viewport": fitViewport
|
|
4513
|
-
}, `context-panel-${contextPanelTrans.stage}`, `map-context-${contextPanelTrans.stage}`, `detail-panel-${detailPanelTrans.stage}`, `map-detail-${detailPanelTrans.stage}`);
|
|
4514
|
-
return $4bdfa9cd8240b2fd$var$h($4bdfa9cd8240b2fd$export$fa395a37c3898ae3, {
|
|
4515
|
-
className: (0, $Zz0sd$classnames)("map-page", className),
|
|
4516
|
-
mapPosition: mapPosition
|
|
4517
|
-
}, [
|
|
4518
|
-
$4bdfa9cd8240b2fd$var$h("div.main-ui", {
|
|
4519
|
-
className: _className,
|
|
4520
|
-
...rest
|
|
4521
|
-
}, [
|
|
4522
|
-
$4bdfa9cd8240b2fd$var$h("div.context-stack", contextStackProps, [
|
|
4523
|
-
navbar,
|
|
4524
|
-
$4bdfa9cd8240b2fd$var$h.if(contextPanelTrans.shouldMount)([
|
|
4525
|
-
contextPanel
|
|
4526
|
-
]),
|
|
4527
|
-
]),
|
|
4528
|
-
//h(MapView),
|
|
4529
|
-
children ?? mainPanel,
|
|
4530
|
-
$4bdfa9cd8240b2fd$var$h("div.detail-stack.infodrawer-container", detailStackProps, [
|
|
4531
|
-
detailPanel,
|
|
4532
|
-
$4bdfa9cd8240b2fd$var$h((0, $e4df11ee33ce76ab$export$dd36b6cb96de1ba3), {
|
|
4533
|
-
className: "zoom-control"
|
|
4534
|
-
}),
|
|
4535
|
-
$4bdfa9cd8240b2fd$var$h("div.spacer"),
|
|
4536
|
-
mapControls,
|
|
4537
|
-
]),
|
|
4538
|
-
]),
|
|
4539
|
-
$4bdfa9cd8240b2fd$var$h("div.bottom", null, bottomPanel),
|
|
4540
|
-
]);
|
|
4541
|
-
}
|
|
4542
|
-
const $4bdfa9cd8240b2fd$var$MapProviders = ({ children: children })=>$4bdfa9cd8240b2fd$var$h((0, $c8a29764c15c7584$export$9194c0aa0cd7a9ff), $4bdfa9cd8240b2fd$var$h((0, $dc75c8651942e3cf$export$5e21c9300e1e71dd), children));
|
|
4543
|
-
const $4bdfa9cd8240b2fd$export$9fa5da0bcfd0a290 = (props)=>$4bdfa9cd8240b2fd$var$h($4bdfa9cd8240b2fd$var$MapProviders, $4bdfa9cd8240b2fd$var$h($4bdfa9cd8240b2fd$var$_MapAreaContainer, props));
|
|
4544
|
-
function $4bdfa9cd8240b2fd$export$fa395a37c3898ae3({ className: className , children: children }) {
|
|
4545
|
-
const { mapPosition: mapPosition } = (0, $dc75c8651942e3cf$export$6b15394f69cd8f33)();
|
|
4546
|
-
if (mapPosition != null) {
|
|
4547
|
-
const { mapIsRotated: mapIsRotated , mapUse3D: mapUse3D , mapIsGlobal: mapIsGlobal } = (0, $b2a9fc2ffc60e62a$export$df38eeea86a10661)(mapPosition);
|
|
4548
|
-
className = (0, $Zz0sd$classnames)(className, {
|
|
4549
|
-
"map-is-rotated": mapIsRotated,
|
|
4550
|
-
"map-3d-available": mapUse3D,
|
|
4551
|
-
"map-is-global": mapIsGlobal
|
|
4552
|
-
});
|
|
4553
|
-
}
|
|
4554
|
-
return $4bdfa9cd8240b2fd$var$h("div", {
|
|
4555
|
-
className: className
|
|
4556
|
-
}, children);
|
|
4557
|
-
}
|
|
4558
|
-
$parcel$exportWildcard($4bdfa9cd8240b2fd$exports, $f50c3537aaff0cff$exports);
|
|
4559
|
-
$parcel$exportWildcard($4bdfa9cd8240b2fd$exports, $6e914c81c8e053da$exports);
|
|
4560
|
-
$parcel$exportWildcard($4bdfa9cd8240b2fd$exports, $9e150e311a3261e9$exports);
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
4545
|
var $bfe9593b6c29b10b$exports = {};
|
|
4568
4546
|
|
|
4569
4547
|
$parcel$export($bfe9593b6c29b10b$exports, "feature-panel", () => $bfe9593b6c29b10b$export$d27ce8c17b289f33, (v) => $bfe9593b6c29b10b$export$d27ce8c17b289f33 = v);
|
|
@@ -5158,5 +5136,5 @@ function $b6d2ac1192949c28$export$2391061fbdfb71ef({ title: title = "Map inspect
|
|
|
5158
5136
|
|
|
5159
5137
|
|
|
5160
5138
|
|
|
5161
|
-
export {$6e914c81c8e053da$export$4ec83e90d030b2f3 as LoadingButton, $6e914c81c8e053da$export$
|
|
5139
|
+
export {$6e914c81c8e053da$export$4ec83e90d030b2f3 as LoadingButton, $6e914c81c8e053da$export$9e3bae3c08bde368 as MapLoadingButton, $6e914c81c8e053da$export$a8cc0062d02a3841 as FloatingNavbar, $f50c3537aaff0cff$export$83f9a19cf91c2d06 as InfoDrawerContainer, $f50c3537aaff0cff$export$aa4baff5242ea6e1 as LocationPanel, $b6d2ac1192949c28$export$dce4b6e67bb5f25a as MacrostratVectorTileset, $b6d2ac1192949c28$export$cc7c195070dfb906 as MacrostratRasterTileset, $b6d2ac1192949c28$export$dda1d9f60106f0e9 as h, $b6d2ac1192949c28$export$2391061fbdfb71ef as DevMapPage, $4bdfa9cd8240b2fd$export$57b87f3e07d4bb90 as MapInterface, $4bdfa9cd8240b2fd$export$ec68dd77edbe678b as PanelCard, $4bdfa9cd8240b2fd$export$fa395a37c3898ae3 as MapStyledContainer, $4bdfa9cd8240b2fd$export$9fa5da0bcfd0a290 as MapAreaContainer, $9e150e311a3261e9$export$ab1e7a67d6ec5ad8 as MapView, $9e150e311a3261e9$export$cee395a8a2a00b29 as MapTerrainManager};
|
|
5162
5140
|
//# sourceMappingURL=index.js.map
|