1ec5 created an issue (openstreetmap/openstreetmap-website#6640)

### URL

https://www.openstreetmap.org/dashboard

### How to reproduce the issue?

The dashboard map allows the user to rotate and tilt the map [using the 
keyboard](https://maplibre.org/maplibre-gl-js/docs/API/classes/KeyboardHandler/)
 or [the 
mouse](https://maplibre.org/maplibre-gl-js/docs/API/classes/DragRotateHandler/).
 While this feature could be useful on the main slippy map on the homepage, I 
think it’s extraneous on the dashboard. Additionally, this map shows the 
Standard layer, a raster tile layer that is incapable of legible labels when 
rotated or tilted. We should disable these interactions.

Disabling the [drag to 
rotate](https://maplibre.org/maplibre-gl-js/docs/API/type-aliases/MapOptions/#dragrotate)
 gesture also takes care of tilting. I think we’d need to disable the key 
bindings individually on [the map’s keyboard 
handler](https://maplibre.org/maplibre-gl-js/docs/API/classes/Map/#keyboard).

### Screenshot(s) or anything else?

<img width="446" height="398" alt="Two pins overlapping each other on a tilted 
and rotated map. Labels are still attached to the tilted and rotated map." 
src="https://github.com/user-attachments/assets/f4f04edc-ac3c-4432-99d6-5233bc9ff4ca";
 />

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6640
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to