lucasnetau / formBuilder-plugins

A set of plugins that can be used with kevinchappell/formBuilder
MIT License
3 stars 1 forks source link

Geolocation field plugin #1

Open numeropi opened 7 months ago

numeropi commented 7 months ago

Many map-mesh web applications are being created, and there's a common need for geolocation fields that are not provided by default in form creation. This enhancement request aims to address this gap, making Liberaforms an even more versatile tool for developers working on such projects.

Related Issue: https://gitlab.com/liberaforms/liberaforms/-/issues/135

Check out this video demonstrating the need for geolocation fields in action (this is the Wagtail plugin used for that field) https://gitlab.com/liberaforms/liberaforms/uploads/c933e1bc6e1fef614c45558494070e55/2023-12-20T11_27_22.101Z.webm

Optional: Street search. Obviously it would make more sense to have a MapBox or OpenStreetMap map using leaflet for example and use Nominatum or Mapbox streetsearch API service. Context: Liberaforms has been utilizing FormBuilder since its inception.

How this enhancement benefits users:

Simplifies the creation of map-mesh web applications.
Addresses a common need in the development community.
Enhances the overall functionality and appeal of Liberaforms and FormBuilder.

Steps to Reproduce: Not applicable for this enhancement request.

Expected Behavior: Geolocation fields should be available in the form builder to cater to the specific requirements of map-mesh web applications.

Additional Information: Feel free to explore the related GitLab issue for more context and discussion.

lucasnetau commented 7 months ago

Hi @numeropi

I have done a similar thing for a client previously using leaflet.js to do the map selection and GeoJSON to encode the features. Streetsearch would be an extension to that.

image

At the current time I would be looking for sponsorship from the community to code such a plugin and maintain it.