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