@hlfan 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();
Could we keep the event handling modifications to the end of the function?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6676#pullrequestreview-3625988338
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/6676/review/[email protected]>_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev