@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/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to