Description
At the moment we have DrawControl
to manually specify some polyline/polygon on the map. I have tried to use it for selecting an "area of interest" which would be observable and could be used with a callback to operate on the shown data or add some other mini plot to the map or whatever. But DrawControl
is just not usable quick enough for that purpose. And it is kind of "hard" to define a really rectangular area, anyway.
So, having something like a dead-simple SelectControl
which can be used quickly by clicking on one point and dragging to the opposite corner of the resulting bounding box would be really useful, and maybe also easy to implement. I guess having only one such area at any time should make it quite simple and avoid the temptation to make it too DrawControl
-like (which can create several polylines/polygons, but provides only one handle to the latest one created, anyway).
Maybe there would be a better name, too, like BBoxControl
or the like...