There is a bug to use the geolocation module with a view based on an search api index.

The geolocation field in format/display does not show anything cause the field instance is not a GeolocationField instance but a SearchApiField Instance.

Same thing inside de render function of the view plugin, no need to check the type of the field to use it in the display

Comments

guillaumehug created an issue. See original summary.

guillaumehug’s picture

Here the patch

guillaumehug’s picture

tormi’s picture

Assigned: guillaumehug » Unassigned
Status: Needs work » Needs review

Corrected status.

christianadamski’s picture

Category: Bug report » Feature request
Priority: Critical » Normal
Status: Needs review » Needs work

This is not a bug and not critical. This is a feature request. In 8.x-2.x this should already work.

christianadamski’s picture

Status: Needs work » Postponed (maintainer needs more info)

Given that 2.x should already support SearchAPI I feel like closing this in fear of unexpected side effects. Opinions?

christianadamski’s picture

Version: 8.x-1.11 » 8.x-2.x-dev
Component: Geolocation field » Geolocation Field / Backend
Related issues: +#2907560: Add support for search_api_location indexing
christianadamski’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)