Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Genesys Backend Genesys Backend
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 28
    • Issues 28
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Genesys PGRGenesys PGR
  • Genesys BackendGenesys Backend
  • Issues
  • #19
Closed
Open
Issue created May 09, 2017 by Nora Castaneda-Alvarez@ncastanedaReporter

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.

Assignee
Assign to
Time tracking