Implement widget for address selection on the form view
Idea
There is widget that allows to select geolocation on the map in generic_location
module for version 14.0.
That widget only works for version 14.0, but we need it to work on version 13.0-16.0.
Also, it have sense to decouple it from generic_location, this allowing to use it in other modules.
To Do
We have to create module crnd_web_widget_select_geolocation
that will implement this widget in portable way, that allows to use it in any form view that has longitude
and latitude
fields.
Ideally without need to create separate JSON field with coordinates, but if it is difficult, that it is ok to use separate json field and attach widget to it.
It is good to create separate test model for this widget in module test_crnd_web_models
Also, it would be nice to create separate module (crnd_website_widget_select_geolocation
) with similar widget for website, that will allow website users to choose their geolocation on website. This could be useful in our helpdesk, to allow users to easily tell us where incident happened.
Additionally, it would be nice if system could automatically detect address based on provided geolocation. But this feature have to be optional. Possibly this feature have to be implemented as separate task.