mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-21 15:56:56 +02:00
Do not redraw tiles when in only mode
This commit is contained in:
@@ -432,8 +432,10 @@ iD.Map = function(elem) {
|
||||
});
|
||||
|
||||
function redraw(only) {
|
||||
dispatch.move(map);
|
||||
tileclient.redraw();
|
||||
if (!only) {
|
||||
dispatch.move(map);
|
||||
tileclient.redraw();
|
||||
}
|
||||
if (getZoom() > 16) {
|
||||
download();
|
||||
drawVector(only);
|
||||
|
||||
@@ -49,13 +49,15 @@ iD.Tiles = function(selection, projection) {
|
||||
.attr('class', 'tile')
|
||||
.attr('xlink:href', tileUrl);
|
||||
|
||||
tiles.attr({ width: Math.ceil(ts), height: Math.ceil(ts) })
|
||||
.attr('transform', function(d) {
|
||||
tiles.attr({
|
||||
width: Math.ceil(ts),
|
||||
height: Math.ceil(ts),
|
||||
transform: function(d) {
|
||||
return 'translate(' +
|
||||
Math.round((d[1] * ts) - tile_origin[0]) + ',' +
|
||||
Math.round((d[2] * ts) - tile_origin[1]) +
|
||||
')';
|
||||
});
|
||||
Math.round((d[2] * ts) - tile_origin[1]) + ')';
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function setSize(x) {
|
||||
|
||||
Reference in New Issue
Block a user