NestroyCA / nestroyca-astro-base

https://nestroyca.acdh-dev.oeaw.ac.at
MIT License
0 stars 0 forks source link

build map #10

Closed cfhaak closed 1 year ago

cfhaak commented 1 year ago

Need to create a map to display coordinates derived from corpus and stored in pmb. @csae8092 could you please drop a link on what library/services I should use for that?

csae8092 commented 1 year ago

https://leafletjs.com/ (oldie but gooldie) plus https://github.com/Leaflet/Leaflet.markercluster

siehe e.g. https://schnitzler-briefe.acdh.oeaw.ac.at/listplace.html (hier gibts auch gleich eine verbindung zur tabelle, sprich es werden nur gefilterte ergebisse angezeigt

hot fancy stuff: https://deck.gl/

(see e.g. https://schnitzler-orte.acdh.oeaw.ac.at/towers.html)

cfhaak commented 1 year ago

thanks a lot

cfhaak commented 1 year ago

When to best get data from https://github.com/NestroyCA/baserow-entities/raw/main/json_dumps/places.json? For now, I do it at buildtime, create list of triples and iterate over it, creating the pins

cfhaak commented 1 year ago

better like that? https://leafletjs.com/examples/quick-start/

csae8092 commented 1 year ago

Whatever gets the Job done https://github.com/Leaflet/Leaflet.markercluster/blob/master/example/geojson.html

cfhaak commented 1 year ago

after failing to use the provided components I came up with something