Skip to content

Commit b8b9c38

Browse files
committed
testign new map
1 parent 8dbbe15 commit b8b9c38

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

pages/columns/+Page.client.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ import mapboxgl, { LngLat } from "mapbox-gl";
1616
import { MapPosition } from "@macrostrat/mapbox-utils";
1717
import { useEffect } from "react";
1818

19-
20-
2119
export function Page(props) {
2220
return h(ColumnListPage, props);
2321
}

pages/columns/main.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ h2 {
2020

2121
.search-bar {
2222
display: flex;
23+
flex-direction: row;
2324
gap: 5px;
2425
align-items: center;
2526
justify-content: center;
@@ -94,8 +95,8 @@ h2 {
9495
}
9596

9697
#map {
97-
width: 60%;
98-
height: 80%;
98+
width: 100%;
99+
height: 100%;
99100
position: absolute;
100101
z-index: 1;
101102
}

pages/columns/map.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import h from "@macrostrat/hyper";
2+
import { ColumnNavigationMap } from "@macrostrat/column-views";
3+
import { mapboxAccessToken } from "@macrostrat-web/settings";
4+
import { ErrorBoundary } from "@macrostrat/ui-components";
5+
6+
export function ColumnMap({
7+
projectID,
8+
inProcess,
9+
className,
10+
selectedColumn,
11+
onSelectColumn,
12+
}) {
13+
return h(
14+
ErrorBoundary,
15+
h(ColumnNavigationMap, {
16+
className,
17+
inProcess,
18+
projectID,
19+
accessToken: mapboxAccessToken,
20+
selectedColumn,
21+
onSelectColumn,
22+
})
23+
);
24+
}

0 commit comments

Comments
 (0)