Closed (fixed)
Project:
Geolocation Field
Version:
4.0.0-beta2
Component:
Leaflet API
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Jun 2026 at 23:00 UTC
Updated:
6 Jul 2026 at 13:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
christianadamski commentedHey,
works perfectly fine for me. No further action needed. "Draw Shapes" is also for the formatter/output, not the widget. I tested this with the Geometry Demo Article - Polygon field.
See attached image.
Any different settings?
Comment #3
janc48 commentedHere is what I do:
1. Add geospatial field of type "Geolocation Geometry - Polygon"
2. Set form widget type to "Geolocation Geometry Leaflet - GeoJSON"
3. Open the widget settings once to populate its values but leave them default. (you said that "Draw Shapes" is only for the display)
As a result I am getting a map without drawing controls and a GeoJSON field. The widget doesn't have that header "Map Widget - " and the description text like yours (see attached image). I get those only when using the field type "Geolocation - Coordinates" but not for the other field types.
I tried to install "Geometry Demo" but that gave me a "InvalidArgumentException:
Field field_geolocation_geometry_point is unknown.".
Comment #4
christianadamski commentedHmm. Could you test latest 4.x-dev? I just tested on simplytest.me and 4-dev works perfectly fine there.
If you can confirm, I would prepare a new release
Comment #5
janc48 commentedYes, 4.x-dev shows me drawing controls. That's awesome!
There is no Leaflet widget for multi-typed fields (Geometry, Geometry Collection), so I can only have one geometry type per field. Right?
Comment #6
christianadamski commentedRight. It's just to complicated.
Comment #8
janc48 commentedIs drawing for types Geometry Line and Geometry Point not working yet? When using a Point Field I can't actually set the point on the map, with the Line field are no drawing controls at all.