]> git.openstreetmap.org Git - rails.git/commitdiff
Adjust minimum changeset bbox to 20 pixels
authorTom Hughes <tom@compton.nu>
Thu, 11 Oct 2018 17:52:00 +0000 (18:52 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 11 Oct 2018 17:52:00 +0000 (18:52 +0100)
app/assets/javascripts/index/history.js

index 51d854ad936decd1cfcf993c6068dd18f28bc544..b0f34a2ade0ab7229a55de947f218fca03ad599a 100644 (file)
@@ -101,7 +101,7 @@ OSM.History = function(map) {
             topRight = map.project(L.latLng(changeset.bbox.maxlat, changeset.bbox.maxlon)),
             width = topRight.x - bottomLeft.x,
             height = bottomLeft.y - topRight.y,
-            minSize = 40;  // Min width/height of changeset in pixels
+            minSize = 20;  // Min width/height of changeset in pixels
 
         if (width < minSize) {
           bottomLeft.x -= ((minSize - width) / 2);