Adjust minimum changeset bbox to 20 pixels
This commit is contained in:
parent
bdcc33ae7f
commit
091818da5d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue