Non-existent field type names in annotation of GeolocationGeometryWidgetLeaflet

Created on 11 February 2024, 10 months ago
Updated 3 March 2024, 9 months ago

Problem/Motivation

The "Geolocation Geometry Leaflet - GeoJSON" widget type cannot be used for some Geolocation Geometry field types because there are non-existent field type machine names in annotation of the /geolocation/modules/geolocation_leaflet/src/Plugin/Field/FieldWidget/GeolocationGeometryWidgetLeaflet.php file:
- geolocation_geometry_multi_point
- geolocation_geometry_multi_linestring
- geolocation_geometry_multi_polygon
- geolocation_geometry_multi_geometry

Instead of the above, the following names exist:
- geolocation_geometry_multipoint
- geolocation_geometry_multilinestring
- geolocation_geometry_multipolygon
- geolocation_geometry_geometrycollection

Steps to reproduce

Try using the "Geolocation Geometry Leaflet - GeoJSON" widget for the next field types, it cannot be selected:
- Geolocation Geometry - MultiPoint
- Geolocation Geometry - MultiLine
- Geolocation Geometry - MultiPolygon
- Geolocation Geometry - Geometry Collection

Proposed resolution

Patch attached, but don't use it, it's just a suggestion

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

3.0

Component

Leaflet API

Created by

🇭🇺Hungary fox mulder

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

Comments & Activities

Production build 0.71.5 2024