Improvement ideas for select from map

Hi,
we use a form with select_one_from_file with geojson file and users give us feedback. Maybe it's just not possible but it's a good idea for future releases. I give you these requests or ideas (or response) :

  • plus (+) and minus (-) buttons to zoom in addition to the fingers, which are not always easy to use, especially on small screens

  • to be able to define the initial zoom level of the map and above all to have the possibility of keeping the previous zoom level, in particular in selection loops. (we select trees quite close to each other and it is painful to resize each time)

  • Have the possibility to display data in the form of a label visible at certain zoom levels and possibly maskable by the operator

  • The color of the symbols is defined at the level of each element of the geojson file and is no longer modifiable thereafter. We manage to hide elements that have already been selected (in a repeat loop) but ideally it would be desirable to change their color.

Some features may be possible but I don't know how to implement them, others may already be expressed with more or less complex or even impossible implementations, but at least we will have expressed what would be ideal for our use and probably interesting for others.

Thanks for advance for your response

Hello @Alain_Benard and thank you for your thoughts.

I was just preparing my own comments on this great select_one from map function. I hope you don't mind if I complete your thoughts with my comments...

Loading large external csv or geojson files (hundreds of objects) to feed the selection from the map may be painfull for collect regarding the terminal you use or the size of the file.

A trick I tested successfully is to ask for a geopoint before the selection and compare (choice_filter) the rounded lat and long values of the geopoint to the rounded lat/long values of each centroid object. This works fast and is efficient but it requires an extra question and screen each time the user wants to select on the map and also to fill 2 columns in the external file.

This makes me think of different things:

  • automatically filtering objects that intersect the screen extent (at a zoom level to be defined) or that are within a defined distance of the GPS signal would be really cool (this would certainly require indexing the geometries in the external file)
  • Another approach would be to be able to retrieve the latitude and longitude of the current position without creating a question and the to compare it with lat/long attributes of each object (as in my trick).
  • or to be able to load a hidden geopoint where we want to use it in the form.
  • Displaying vertices on a polygon seems to be expensive, I'm not sure if they are still needed, since we can now tap anywhere on a polygon to select it. Maybe showing only edges would help Collect.

Hello Mathieu, no problem for completing. Any idea are welcome and can interest other person.
It's sure, this 'select_one from map' is very great and a young possibility.
Have a nice day.

1 Like