[openstreetmap/openstreetmap-website] Use MapLibre class extensions to DRY code (PR #6726)
Marwin Hochfelsner
notifications at github.com
Mon Jan 19 22:52:08 UTC 2026
@hlfan commented on this pull request.
> + const rotationOptions = {};
+ if (allowRotation === false) {
+ Object.assign(rotationOptions, {
+ rollEnabled: false,
+ dragRotate: false,
+ pitchWithRotate: false,
+ bearingSnap: 180
+ });
This was more caused by wanting to get rid of the `disableRotation` calls. Abstracting the options away is more a "do it with the same sweep" kinda thing.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6726#discussion_r2706259715
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6726/review/3679810391 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260119/1b8004d7/attachment.htm>
More information about the rails-dev
mailing list