mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
More reasonable limitations for min zoom, remove white borders
This commit is contained in:
@@ -30,8 +30,8 @@ iD.Background = function() {
|
||||
Math.round((d[0] * ts) - tile_origin[0]) + ',' +
|
||||
Math.round((d[1] * ts) - tile_origin[1]) + ')';
|
||||
})
|
||||
.attr("width", ts)
|
||||
.attr("height", ts);
|
||||
.attr("width", Math.ceil(ts))
|
||||
.attr("height", Math.ceil(ts));
|
||||
}
|
||||
|
||||
background.projection = function(_) {
|
||||
|
||||
@@ -10,7 +10,7 @@ iD.Map = function() {
|
||||
zoom = d3.behavior.zoom()
|
||||
.translate(projection.translate())
|
||||
.scale(projection.scale())
|
||||
.scaleExtent([256, 256 * Math.pow(2, 20)])
|
||||
.scaleExtent([1024, 256 * Math.pow(2, 20)])
|
||||
.on('zoom', zoomPan),
|
||||
only,
|
||||
dblclickEnabled = true,
|
||||
|
||||
Reference in New Issue
Block a user