Accession map: info-click
Add a click handler to the Leaflet map to load and display the list of accessions in near the point of the click.
Existing functionality
https://www.genesys-pgr.org/explore/map?filter=%7B%22institute.code%22%3A%5B%22ETH013%22%5D%7D
On click, it makes a call to: https://www.genesys-pgr.org/explore/geoJson?limit=11&filter={%22institute.code%22:[%22ETH013%22],%22geo.latitude%22:[{%22range%22:[17.28770905062193,17.497389400663824]}],%22geo.longitude%22:[{%22range%22:[-0.02197265625,0.19775390625]}]}
See current implementation in JSP: the "range" depends on map zoom level.
Update Accession API v1
Migrate the geoJson
method to AccessionController
v1. Use AccessionFilter
. The method must returns valid JSON, not a JSON string -- that's a bug in current implementation.
We do not want this code to generate new shortFilter
codes.
Use accessionProcessor#process(filter, action)
method to generate the geoJson.