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.
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.