Web Experience Toolkit (WET): Open source code library for building innovative websites that are accessible, usable, interoperable, mobile-friendly and multilingual. This collaborative open source project is led by the Government of Canada.
It seems like the iPad and iPhone Safari (and I assume all other browsers on iOS and iPadOS) cannot select an area of interest rectangle via dragging. Attempting to use a connected mouse on an iPhone, along with the "assistive touch" option to view the pointer, also does not function.
As dragging interactions can be problematic on mobile (along with the low accuracy of presses), the numerical entry of corner coordinates seems to make more sense anyway.
To Reproduce
Visit the Geomap Working Example and navigate to the first example, with an AOI widget enabled, on an iOS device.
Press "Draw" and attempt to select an area on the map
Expected behaviour
Either:
clicking multiple points would select a box
dragging would select a box
the "draw" button would not be shown on unsupported devices, or be accompanied by a warning that it may not work.
Discussion
I'm not sure if OpenLayers has a way to use boxstart and boxend on mobile, or if some other interaction would be appropriate. However, due to the lower accuracy of finger presses and smaller map sizes, having AOI drawing on the map on mobile would seem to have massive limitations anyway.
It seems like the iPad and iPhone Safari (and I assume all other browsers on iOS and iPadOS) cannot select an area of interest rectangle via dragging. Attempting to use a connected mouse on an iPhone, along with the "assistive touch" option to view the pointer, also does not function.
As dragging interactions can be problematic on mobile (along with the low accuracy of presses), the numerical entry of corner coordinates seems to make more sense anyway.
To Reproduce Visit the Geomap Working Example and navigate to the first example, with an AOI widget enabled, on an iOS device.
Press "Draw" and attempt to select an area on the map
Expected behaviour Either:
Discussion I'm not sure if OpenLayers has a way to use boxstart and boxend on mobile, or if some other interaction would be appropriate. However, due to the lower accuracy of finger presses and smaller map sizes, having AOI drawing on the map on mobile would seem to have massive limitations anyway.
Any thoughts on this?