Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request/Idea: Display dataset search results on a geographical map #580

Open
PaulBoon opened this issue Jan 11, 2025 · 1 comment

Comments

@PaulBoon
Copy link

PaulBoon commented Jan 11, 2025

Add the option to display search results (datasets) that have location information (coordinates in the metadata) on an interactive map. The map could either be an alternative 'search results view', instead of the paged list view, or it could be on the side along with the facets.

This feature request comes from the archaeological community that uses our Dataverse archival system specfic for archaeological research data (excavation results etc. ).
Most dataset in that archive (https://archaeology.datastations.nl) have a location specified in the metadata which was used in our previous online system (non-Dataverse) to display the dataset locations on a map.

As a prove of concept (PoC) I developed javscript code that gets inserted into the custom footer (html) file. This script will add 'tabs' for the 'listview' and the 'mapview' just above the result listing area on the dataverse page. When the 'mapview' tab is selected the map (Leaflet with OSM tiles) is displayd with markers for every dataset that has coordinates.

Explanantion and code of the PoC can be found here:
https://github.com/Dans-labs/landscape-analysis-GeoMapDataverseIntegration/blob/main/experiments/MapViewExtention.md

Some screenshots from our test site:

test-archaeology-listview

test-archaeology-mapview

Demo screencast:

GeoMapViewDemoOnTestServer.mp4

One of the main challenges is that the community will have those coordinates in different places (custom metadata) and also in different systems, so configuring that is not straightforward in TSV files.

Configuration would be to specify;

  • The subverse/collection for which you want it (default root)
  • The query addition needed to retrieve the metadata fields (from a custom block).
  • The script code (or some other 'pluggable' code) to extract and convert that metadata into geojson

Another changeling thing is the relative long time it takes to get the results from the search API and the fact that the total number of results might be high; 150k hits on our archive for instance would require 150 http requests. Also, 150k markers on the map is probably making it unusable.

@pdurbin
Copy link
Member

pdurbin commented Jan 31, 2025

@PaulBoon thanks for creating this issue. I'm planning closing the corresponding support ticket.

Also, I kicked off a thread on Zulip to discuss this map of yours. Looks great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants