Closed kaijagahm closed 3 years ago
Under the server function, you can request the user's screen dimensions, we think. Then can maybe write code that bases the map dimensions on the user's screen size.
Ian fixed this; I implemented his code in https://github.com/kaijagahm/ygdpDashboard/commit/f9bc5656b1bde94c6dc65c00286408cab5b2e5cb.
Right now, the size of the map is defined manually as 475 px. Consider changing to a percentage, and/or putting the "reset map zoom" button on top of the leaflet map.
Ian notes that this will be helpful for other screen sizes.