coherenza / gebouwenpaspoort-webui

Zoekapplicatie met kaartweergave om gebouwen en adressen te bekijken. Combineert BAG, PDOK, Squit en meer data. In opdracht voor de Gemeente Utrecht
https://gebouwenpaspoort.pandata.nl
1 stars 1 forks source link

Maps, geosearch #3

Closed joepio closed 1 year ago

joepio commented 1 year ago

I want users to be able to see hits on the map, move the map around and use that as a filter for the results.

Google Maps + GeoSearch

Algolia's react-instantsearch has some GeoSearch components that should allow doing this.

A limitation of this approach, is that we'll be bound to Google maps rendering.

See PR algolia/react-instantsearch#1

Hooks + OpenLayers / Leaflet

We could also try the approach with hooks algolia/react-instantsearch#2, which is their new way of doing things. However, there is no pre-built maps component here. There's a guide for geo hooks here. It allows custom map rendering (using openlayers / leaflet), which is good, because we may want to use PDOK's custom layers. However, this approach means we need some geo library from meilisearch, which is either missing or maybe bugged.