[openstreetmap/openstreetmap-website] Disable rotation and pitch on dashboard map (Issue #6640)

Minh Nguyễn notifications at github.com
Sat Dec 20 17:52:19 UTC 2025


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/6640 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251220/381559c0/attachment.htm>


More information about the rails-dev mailing list