mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-22 17:44:20 -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 {
|
||||
height: 676px;
|
||||
margin-bottom: 29px;
|
||||
|
@ -6,8 +9,8 @@
|
|||
}
|
||||
|
||||
.sidebar {
|
||||
background-color: rgba(35, 55, 75, 0.9);
|
||||
color: #ffffff;
|
||||
background-color: $sidebar-background;
|
||||
color: $sidebar-color;
|
||||
padding: 6px 12px;
|
||||
font-family: monospace;
|
||||
z-index: 1;
|
||||
|
|
|
@ -76,7 +76,7 @@ const MapWrapper = ({features}: IMapWrapperProps) => {
|
|||
}),
|
||||
);
|
||||
const extent = featuresLayer?.getSource().getExtent();
|
||||
if (extent != null) {
|
||||
if (extent) {
|
||||
// fit map to feature extent (with 100px of padding)
|
||||
map?.getView().fit(extent, {
|
||||
padding: [100, 100, 100, 100],
|
||||
|
|
Loading…
Add table
Reference in a new issue