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.
| Comment | File | Size | Author |
|---|---|---|---|
| uppercase-indexed-values-leaflet.patch | 782 bytes | cedricl |
Issue fork leaflet-3508252
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
Comment #2
ressaThanks! 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.
Comment #3
ressaComment #5
cedricl commented