[openstreetmap/openstreetmap-website] Bootstrap contextmenu (PR #6410)
mmd
notifications at github.com
Sat Sep 27 13:38:39 UTC 2025
@mmd-osm commented on this pull request.
>
- const updateMenu = function updateMenu() {
- map.contextmenu.setDisabled(2, map.getZoom() < 12);
- map.contextmenu.setDisabled(4, map.getZoom() < 14);
- };
+ OSM.renderContextMenu($contextMenu, contextmenuItems);
+};
+
+OSM.createSeparator = function () {
They're meant to be used in app/assets/javascripts/index/history-changesets-layer.js -> addChangesetLayer later on, which needs some dynamic changes to the contextmenu.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6410#discussion_r2384170607
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6410/review/3274938982 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250927/5662e0d0/attachment.htm>
More information about the rails-dev
mailing list