Leaflet views does not support field rewriting?

Created on 10 December 2021, over 3 years ago
Updated 15 July 2024, 11 months ago

I have a node type with two geofield fields. I want to display the nodes on a map as lines from field 1 to field 2. So I created a view with field 1 and field 2, and rewrote the output of field 1 as plain latlong and field 2 as a WKT linestring, like this:

LINESTRING ({{ field1 }}, {{ field2__lon }} {{ field2__lat }})

Then in the Leaflet Map settings I chose field 2 as Data source.

Unfortunately the map just uses the original value of field 2, not the rewritten value.

Am I missing something or is this a bug (or missing feature)?

πŸ’¬ Support request
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands gaele

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States chucksimply

    I see the commit, but this doesn't directly address the support of rewriting fields correct? Would still be nice to manipulate the data source of the Leaflet map with respecting the field rewrite.

Production build 0.71.5 2024