INL / corpus-frontend

BlackLab Frontend, a feature-rich corpus search interface for BlackLab.
16 stars 7 forks source link

Suggestion: Map functionality #454

Open stcoats opened 1 year ago

stcoats commented 1 year ago

The corpus frontend is fantastic and I am enjoying learning about how to configure and customize it.

The corpus I am working on now has geo information: Each document as latitude-longitude coordinates.

Would it be possible to add a "map" page/tab?

image

It seems like it would be relatively simple to call a map from Leaflet.js and map the hits, or better, map the relative frequency per document location and create a heatmap based on that.

The javascript examples show how to customize the "docs" page in order to show vocabulary growth or type-token ratio etc. for a single document, but for a map, I would like to take into account the relative frequencies in all of the documents and/or the specific documents that have been accessed using the filter functions.

Any thoughts on how this could be done?