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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | leaflet-widget_path_style_setting_fix-3349158-2.patch | 1.4 KB | antongp |
Comments
Comment #2
antongp commentedHere 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.
Comment #5
itamair commentedThanks 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.