Auto-center accessions map
Center accessions map to center of the accessions selected. After choosing "View map" the user is taken to a map centered in the Norwegian sea, and the user needs to manually scroll to the locality of interest.
Example: https://www.genesys-pgr.org/explore/map?filter=%7B%22orgCty.iso3%22%3A%5B%22MAR%22%5D%7D
The following would improve user experience:
- When filters are applied on the map, make a call to the server (passing the jsonFilters) to obtain the "bounding box" for the selection
- Bounding box is obtained by querying for
select min(latitude), max(latitude), min(longitude), max(longitude) from accession....
with specified filters - Apply bounding box to the leaflet map when updating the map layer URL with new filter
Example of centering the leaflet map is in /jsp/country/details.jsp
where we focus the map on the institutes.