[openstreetmap/openstreetmap-website] Migrate the user diary to be maplibre based (PR #6676)
Frank Elsinga
notifications at github.com
Mon Jan 5 10:08:04 UTC 2026
@CommanderStorm commented on this pull request.
> -
- map.setView(centre, params.zoom);
+ locale: OSM.MapLibre.Locale,
+ rollEnabled: false,
+ dragRotate: false,
+ pitchWithRotate: false,
+ bearingSnap: 180,
+ maxPitch: 0,
+ center: [params.lon, params.lat],
+ zoom: params.zoom - 1
+ });
+
+ const position = $("html").attr("dir") === "rtl" ? "top-left" : "top-right";
+ const navigationControl = new maplibregl.NavigationControl({ showCompass: false });
+ map.addControl(navigationControl, position);
+ map.touchZoomRotate.disableRotation();
I only see one `map.on("click", setLocation);`
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6676#discussion_r2660958603
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6676/review/3626235077 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260105/36eb1065/attachment.htm>
More information about the rails-dev
mailing list