Field widget ignores Path Geometries Options setting

Created on 20 March 2023, over 1 year ago

Leaflet Map (default) field widget ignores Path Geometries Options setting, so, it's not possible anymore to override path styles for the widget.

Seems this functionality was lost in this commit https://git.drupalcode.org/project/leaflet/-/commit/28292684b30d993eeb88... for 10.0.x branch and in https://git.drupalcode.org/project/leaflet/-/commit/48168b7e1db7a04a730e... for 2.2.x branch. Last working release seems to be 2.2.10.

🐛 Bug report
Status

Fixed

Version

10.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @antongp
  • Status changed to Needs review over 1 year ago
  • Here is patch. It also fixes the problem that existed before: path style setting was not applied if a field had no initial value, for example, when creating new content.

    Note: this patch doesn't restore token support for the Path Geometries Options setting. Token support is probably out of scope of this issue, and I'm not sure how often it was used actually.

    • itamair committed fd2504f4 on 10.0.x
      Issue #3349158 by antongp and itamair: enabled entity fields tokens...
  • Status changed to Fixed over 1 year ago
  • 🇮🇹Italy itamair

    Thanks a lot @antongp, super nice and inspirational catch.
    I committed into dev your patch, and I was also able to quickly extend the entity fields token support to for Path Geometries Options setting in Field widget.
    A brand new 10.0.10 Leaflet release is worth and going to be released now with all this.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024