Problem/Motivation

I'm using Elasticsearch with search api. And when configuring the leaflet module with my index I didn't see any results in my map. The field type for my indexed GeoField is String (but same issue on Full Text). The problem occurs in the leafletProcessGeofield function where $this->geoPhpWrapper->load is called. It doens't recognize my data as a GeoType. This is because my data is in lowercase "point(4.456855 51.262471)" but the function only recongizes it as uppercase so it should be "POINT(4.456855 51.262471)".

I made a small adjustment to alter the result to uppercase.

There might be something wrong in my configuration but don't see what, this fixed my problem and I don't see further issues with making it uppercase.

CommentFileSizeAuthor
uppercase-indexed-values-leaflet.patch782 bytescedricl

Issue fork leaflet-3508252

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

cedricl created an issue. See original summary.

ressa’s picture

Status: Needs review » Needs work

Thanks! Maybe you could use the Gitlab workflow, by creating an issue fork and a Merge Request? Then it can also get tested, and follow the ordinary process.

ressa’s picture

Version: 10.2.41 » 10.2.x-dev

cedricl’s picture

Status: Needs work » Needs review