mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-22 03:36:37 +02:00
restrict adding notes to zoom >= 16
This commit is contained in:
Vendored
+1
-1
@@ -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
@@ -36,7 +36,7 @@ export function uiModes(context) {
|
||||
function toggleNewNote() {
|
||||
return svgNotes().enabled()
|
||||
&& context.connection().authenticated()
|
||||
&& ~~context.map().zoom() >= 12;
|
||||
&& ~~context.map().zoom() >= 16;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user