]> git.openstreetmap.org Git - rails.git/commitdiff
Disable home marker tab focus and cursor change
authorAnton Khorev <tony29@yandex.ru>
Thu, 10 Aug 2023 00:19:12 +0000 (03:19 +0300)
committerAnton Khorev <tony29@yandex.ru>
Fri, 11 Aug 2023 18:47:14 +0000 (21:47 +0300)
app/assets/javascripts/user.js

index c0afd6b8d88bd01169e55a26f690b8a402e85b12..f6c4151857fef2c9bb6dad0bff9ecf14f18ed422 100644 (file)
@@ -44,7 +44,11 @@ $(document).ready(function () {
     }
 
     if ($("#map").hasClass("set_location")) {
-      marker = L.marker([0, 0], { icon: OSM.getUserIcon() });
+      marker = L.marker([0, 0], {
+        icon: OSM.getUserIcon(),
+        keyboard: false,
+        interactive: false
+      });
 
       if (OSM.home) {
         marker.setLatLng([OSM.home.lat, OSM.home.lon]);