Close map options on map click on mobile
kylebarron opened this issue · comments
On mobile, it would be nice to close the options div whenever you click away from it. It seems like a simple way to do that is to add it to the map's onclick function (not onhover). And only apply on mobile...
Looks like a standard way to tell if browsing from a mobile device.
https://stackoverflow.com/a/11381730
Then also can have map options expanded by default on desktop
I tried this in 7c93fec but after testing it on my iPhone, it appeared to not detect that my iPhone XR was a mobile device.