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.

Comments

antongp created an issue. See original summary.

antongp’s picture

Status: Active » Needs review
StatusFileSize
new1.4 KB

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...

  • itamair committed a1a6ac5a on 10.0.x authored by antongp
    Issue #3349158 by antongp: Field widget ignores Path Geometries Options...
itamair’s picture

Status: Needs review » Fixed

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.

Status: Fixed » Closed (fixed)

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