Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Oct 17, 2016
1 parent ffbaac9 commit 49118ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/client/utils/MapUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function defaultGetZoomForExtent(extent, mapSize, minZoom, maxZoom, dpi, mapReso
return diff > previous.diff ? previous : {diff: diff, zoom: index};
}, {diff: Number.POSITIVE_INFINITY, zoom: 0});

return Math.max(0, zoom, Math.min(zoom, maxZoom));
return Math.max(0, Math.min(zoom, maxZoom));
}

/**
Expand Down

0 comments on commit 49118ef

Please sign in to comment.