]> git.openstreetmap.org Git - rails.git/commitdiff
Make sure the object layer is kept in front of the data layer
authorTom Hughes <tom@compton.nu>
Tue, 22 Feb 2022 18:55:34 +0000 (18:55 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 22 Feb 2022 18:55:34 +0000 (18:55 +0000)
app/assets/javascripts/index/browse.js

index 3f888c1cdca5d7a214159ff5bb4cc40b665b7cfb..1140515f5629b93ebd8b04079b806d69493fd5cb 100644 (file)
@@ -110,6 +110,10 @@ OSM.initializeBrowse = function (map) {
           displayFeatureWarning(features.length, maxFeatures, addFeatures, cancelAddFeatures);
         }
 
+        if (map._objectLayer) {
+          map._objectLayer.bringToFront();
+        }
+
         dataLoader = null;
       }
     });