Adjust minimum changeset bbox to 20 pixels

This commit is contained in:
Tom Hughes 2018-10-11 18:52:00 +01:00
parent bdcc33ae7f
commit 091818da5d

View 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);