restrict adding notes to zoom >= 16

This commit is contained in:
Thomas Hervey
2018-07-20 10:40:04 -04:00
parent 5daffe3d25
commit e9aa36e812
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -772,7 +772,7 @@
"report": "Report",
"new": "New Note",
"newDescription": "Describe the issue.",
"newNote": "Add Note"
"newNote": "Add Note",
"login": "You must log in to change or comment on this note.",
"upload_explanation": "Your comments will be publicly visible to all OpenStreetMap users.",
"upload_explanation_with_user": "Your comments as {user} will be publicly visible to all OpenStreetMap users."
+1 -1
View File
@@ -36,7 +36,7 @@ export function uiModes(context) {
function toggleNewNote() {
return svgNotes().enabled()
&& context.connection().authenticated()
&& ~~context.map().zoom() >= 12;
&& ~~context.map().zoom() >= 16;
}