Additional review changes

This commit is contained in:
Nat Hillard 2021-06-29 14:43:44 -04:00
parent c7be85c413
commit 902e8037fe
2 changed files with 6 additions and 3 deletions

View file

@ -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;

View file

@ -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],