From e9aa36e812cb87024e6324ef111a9bf418e6035f Mon Sep 17 00:00:00 2001 From: Thomas Hervey Date: Fri, 20 Jul 2018 10:40:04 -0400 Subject: [PATCH] restrict adding notes to zoom >= 16 --- dist/locales/en.json | 2 +- modules/ui/modes.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/locales/en.json b/dist/locales/en.json index 21fc4efc6..a7599f7fb 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -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." diff --git a/modules/ui/modes.js b/modules/ui/modes.js index 4d01b6820..8a93b9ce7 100644 --- a/modules/ui/modes.js +++ b/modules/ui/modes.js @@ -36,7 +36,7 @@ export function uiModes(context) { function toggleNewNote() { return svgNotes().enabled() && context.connection().authenticated() - && ~~context.map().zoom() >= 12; + && ~~context.map().zoom() >= 16; }