mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-11 20:22:39 +02:00
20 lines
362 B
JavaScript
20 lines
362 B
JavaScript
iD.behavior.Edit = function(context) {
|
|
function disableTooHigh() {
|
|
if (!context.map().editable()) {
|
|
context.enter(iD.modes.Browse(context));
|
|
}
|
|
}
|
|
|
|
function edit() {
|
|
context.map()
|
|
.minzoom(16);
|
|
}
|
|
|
|
edit.off = function() {
|
|
context.map()
|
|
.minzoom(0);
|
|
};
|
|
|
|
return edit;
|
|
};
|