wet-boew / wet-boew

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.
https://wet-boew.github.io/wet-boew/index-en.html
Other
1.6k stars 660 forks source link

[BUG] Geomap - Area Of Interest (AOI) drawing on iPhones and iPads #9386

Open jpardey opened 2 years ago

jpardey commented 2 years ago

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?

jvanulde commented 2 years ago

As far as I am aware this is not supported on iOS. Perhaps we hide the draw button on iOS devices?