mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
16 lines
256 B
JavaScript
16 lines
256 B
JavaScript
export function behaviorEdit(context) {
|
|
|
|
function behavior() {
|
|
context.map()
|
|
.minzoom(context.minEditableZoom());
|
|
}
|
|
|
|
|
|
behavior.off = function() {
|
|
context.map()
|
|
.minzoom(0);
|
|
};
|
|
|
|
return behavior;
|
|
}
|