<p dir="auto">If</p>
<ul dir="auto">
<li>you open <code class="notranslate">/note/new</code> while your zoom is too low as described in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="177755599" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1291" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/1291/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/1291">#1291</a></li>
<li>you zoom out far enough while on <code class="notranslate">/note/new</code>,</li>
</ul>
<p dir="auto">show a warning message and disable the submit button.</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/abb8e7d1-316b-411c-94fb-614b87355330">image.png (view on web)</a></p>
<p dir="auto"><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #1291.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="177755599" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1291" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/1291/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/1291">#1291</a> and another bug: note marker was disappearing together with notes layer when visible area became too large.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5443'>https://github.com/openstreetmap/openstreetmap-website/pull/5443</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5443/commits/77aa7fcce7b61aa6258224fb44ed88dec679f311" class="commit-link">77aa7fc</a>  Rename newNote to newNoteMarker</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5443/commits/6d0a2ce4bb198bab3d5fd7754138e46422fe30d7" class="commit-link">6d0a2ce</a>  Don't pass marker to createNote()</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5443/commits/d44251d64e00f4f4dc3fcbf3bd88b414e027cab1" class="commit-link">d44251d</a>  Rename updateMarker() to addCreatedNoteMarker()</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5443/commits/0cca76516dbe561a5b4a61598db744bac3164324" class="commit-link">0cca765</a>  Remove unused return value of addCreatedNoteMarker()</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5443/commits/989e402793ddb1620c7ab7bbd7844caf63913cdf" class="commit-link">989e402</a>  Add new note marker to root map layer instead of noteLayer</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5443/commits/477fecb67b7fdf0cdc39f7d1bb1edfea9a19db6a" class="commit-link">477fecb</a>  Move new note page.pushstate/popstate next to page.load</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5443/commits/0de9c977d71b923fa4228583c949020f852c2f1f" class="commit-link">0de9c97</a>  Convert newHalo() to addHal() and removeHalo()</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5443/commits/9611c4569eab4158a7002eb797775cf19fc4d74d" class="commit-link">9611c45</a>  Add addNewNoteMarker() and removeNewNoteMarker() functions</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5443/commits/dbaeb7056e6b4248d2f4c1223fa1cbf24cdc0bbd" class="commit-link">dbaeb70</a>  Call removeNewNoteMarker() only from page.unload()</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5443/commits/7a8d3ee430e99c63c1c5134bba9665c843369870" class="commit-link">7a8d3ee</a>  Remove active class from addNoteButton only in page.unload()</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5443/commits/19579baae5c1e0335d48be677b0c0f3850d05b1e" class="commit-link">19579ba</a>  Let page.load proceed when zoomed out, disabling submit</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5443/commits/312abc04229eff81163316b1eecea8e42d4b2648" class="commit-link">312abc0</a>  Decrease new note marker opacity when zoomed out</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5443/commits/7c8e2f2a72a7c9081975820f4c83febdc9a5977a" class="commit-link">7c8e2f2</a>  Move new note marker to click location</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5443/files">4 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5443/files#diff-08fd2f80528286cf96375b12d81cac98954dee8e6a6899f5f261a127861fdd49">app/assets/javascripts/index/new_note.js</a>
    (143)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5443/files#diff-ffadccc633e42804425bc8e2e023dc83e8fd879d1910165d2d41c11b76c78b4d">app/assets/javascripts/leaflet.note.js</a>
    (13)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5443/files#diff-cb517058985c89ad2c4fa3503e6e5c62cc9953e2972bd6128c2f34156905f94f">app/views/notes/new.html.erb</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5443/files#diff-9f6aab4572a1599c9156a25f43ec038cc485dd0245d0bfcd3b4705126002304e">test/system/create_note_test.rb</a>
    (21)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5443.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5443.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5443.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5443.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5443">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLL7SBJ6QUGLBDKMYVL2HM43RAVCNFSM6AAAAABUGNR5IOVHI2DSMVQWIX3LMV43ASLTON2WKOZSG42TSMJSGE2TSMA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIIPIYPNM6ALIYVQCD2HM43RA5CNFSM6AAAAABUGNR5IOWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKI5G2WY.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5443</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5443",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5443",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>