- Issue created by @aleix
With Facets v3 search api, views gains facets filtering as views filters, but it needs a plugin that defines the view display as search api display (@SearchApiDisplay), for facets module to be able to "autocreate" a facet source plugin.
Looking at the code of https://git.drupalcode.org/project/search_api/-/blob/8.x-1.x/src/Plugin/... is as simple as adding the plugin to the correct namespace to get facet filtering for geojson display. This way one can use urls like:
https://example.org/map-geojson?field_district[94]=94
to obtain a filtered map (that could be enhanced with a lot of nice facets filtering).
Add the facet plugin.
Active
1.0
Code