mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
Remove unused
This commit is contained in:
@@ -10,7 +10,6 @@ iD.behavior.AddWay = function(context) {
|
||||
.on('finish', addWay.cancel);
|
||||
|
||||
context.map()
|
||||
.fastEnable(false)
|
||||
.minzoom(16)
|
||||
.dblclickEnable(false);
|
||||
|
||||
@@ -19,7 +18,6 @@ iD.behavior.AddWay = function(context) {
|
||||
|
||||
addWay.off = function(surface) {
|
||||
context.map()
|
||||
.fastEnable(true)
|
||||
.minzoom(0)
|
||||
.tail(false);
|
||||
|
||||
|
||||
@@ -65,7 +65,6 @@ iD.behavior.DrawWay = function(context, wayId, index, mode, baseGraph) {
|
||||
.on('finish', drawWay.finish);
|
||||
|
||||
context.map()
|
||||
.fastEnable(false)
|
||||
.minzoom(16)
|
||||
.dblclickEnable(false);
|
||||
|
||||
@@ -83,7 +82,6 @@ iD.behavior.DrawWay = function(context, wayId, index, mode, baseGraph) {
|
||||
context.pop();
|
||||
|
||||
context.map()
|
||||
.fastEnable(true)
|
||||
.minzoom(0)
|
||||
.tail(false);
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@ iD.Map = function(context) {
|
||||
.scaleExtent([1024, 256 * Math.pow(2, 24)])
|
||||
.on('zoom', zoomPan),
|
||||
dblclickEnabled = true,
|
||||
fastEnabled = true,
|
||||
transformStart,
|
||||
minzoom = 0,
|
||||
background = iD.Background()
|
||||
@@ -216,12 +215,6 @@ iD.Map = function(context) {
|
||||
return map;
|
||||
};
|
||||
|
||||
map.fastEnable = function(_) {
|
||||
if (!arguments.length) return fastEnabled;
|
||||
fastEnabled = _;
|
||||
return map;
|
||||
};
|
||||
|
||||
function setZoom(z, force) {
|
||||
if (z === map.zoom() && !force)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user