mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 01:54:18 -08:00
Additional review changes
This commit is contained in:
parent
c7be85c413
commit
902e8037fe
2 changed files with 6 additions and 3 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
$sidebar-background: rgba(35, 55, 75, 0.9);
|
||||||
|
$sidebar-color: #ffffff;
|
||||||
|
|
||||||
.mapContainer {
|
.mapContainer {
|
||||||
height: 676px;
|
height: 676px;
|
||||||
margin-bottom: 29px;
|
margin-bottom: 29px;
|
||||||
|
@ -6,8 +9,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
background-color: rgba(35, 55, 75, 0.9);
|
background-color: $sidebar-background;
|
||||||
color: #ffffff;
|
color: $sidebar-color;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
|
@ -76,7 +76,7 @@ const MapWrapper = ({features}: IMapWrapperProps) => {
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
const extent = featuresLayer?.getSource().getExtent();
|
const extent = featuresLayer?.getSource().getExtent();
|
||||||
if (extent != null) {
|
if (extent) {
|
||||||
// fit map to feature extent (with 100px of padding)
|
// fit map to feature extent (with 100px of padding)
|
||||||
map?.getView().fit(extent, {
|
map?.getView().fit(extent, {
|
||||||
padding: [100, 100, 100, 100],
|
padding: [100, 100, 100, 100],
|
||||||
|
|
Loading…
Add table
Reference in a new issue