Skip to content

Commit

Permalink
Merge pull request #87 from USGS-VIZLAB/fix_mobile_map
Browse files Browse the repository at this point in the history
Fix mobile map
  • Loading branch information
hcorson-dosch-usgs authored Jan 28, 2023
2 parents 06db2eb + 58b4164 commit 97f82b6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/assets/gw-conditions-labels-map.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 11 additions & 17 deletions src/components/GWL.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,13 @@
<!-- <caption id="caption-gwl">Daily groundwater levels</caption> -->
</div>
<div id="map-container">
<svg
id="map_svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 1000 700"
preserveAspectRatio="xMidYMid meet"
version="1.1"
role="img"
class="map"
>
<GWLmap
id="map_gwl"
class="map"
/>
<g transform="translate(-10, 20)">
<mapLabels
class="map"
/>
</g>
</svg>
<mapLabels
class="map labels"
/>
</div>
<div id="legend-container">
<Legend />
Expand Down Expand Up @@ -720,7 +707,7 @@ section {
}
}
#map-container{
#map-container {
grid-area: map;
padding: 0rem;
padding-bottom: 0px;
Expand All @@ -730,8 +717,15 @@ section {
align-items: center;
svg.map {
max-height: 68vh;
max-width: 98vw;
width: 100%;
height: 100%;
}
svg.map.labels {
position: absolute;
}
}
#line-container {
grid-area: line;
width: 100%;
Expand Down

0 comments on commit 97f82b6

Please sign in to comment.