Implementation of Replacement Patterns (tokens) to Path Geometries Options in Geofield Map Formatter & Geofield Map View

Created on 30 September 2019, about 5 years ago
Updated 16 April 2023, over 1 year ago

This task will allow the Replacement Patterns (tokens and twig variables) to be used also in the Path Geometries Option both in the Geofield Map Formatter and Geofield Map View settings, making it possible to dynamically define the Path Geometries options on the base of entity properties or fields values.

This replicates in the Geofield Map module what already implemented in the Leaflet module with this issue: https://www.drupal.org/project/leaflet/issues/3083603

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇹Italy itamair

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 bcobin

    I know it's been a while on this. This should also probably be on Leaflet, but a thread there points here.

    I'm using this on a D7 site, and it works great. But in creating a Drupal 9 site, I've found (to my shock) that once you create a select list field, you can't add or delete terms. At least, you get a nasty warning if you try. So I'm not using lists and I've been using taxonomy instead.

    Unfortunately, using tokens here borks the map, even though there's a token browser on the Leaflet interface. (This is Drupal 10, BTW.)

    This is just a list of colors, so I guess I could use a list for this; that's what my fallback will be. But if anyone has any ideas in the meantime, that would be great... thanks!

Production build 0.71.5 2024