<p>I don't know the internals, so I'll just discuss the user-visible behavior.  We agree on the basics with <a href="https://github.com/math1985" class="user-mention">@math1985</a>, the tricky case is the user's recently added note suddenly disappearing after adding it.</p>

<p>One way to look at it is to do nothing : the user might be surprised to not see his note, but he'll see it again when he tries to add the note again.</p>

<p>Second option is to leave all notes open after clicking "add note" (as opposed to clicking the cross).</p>

<p>Third option is to leave only the newly-created note visible, but that may be too much trouble for what it's worth ?</p>

<p>While we're at it, what about following an <a href="http://www.openstreetmap.org/note/276303">url to an existing note</a> ? Currently it doesn't activate the note layer, and closing the left panel makes the note disappear. I think the behavior when following a url should be consistent with the behavior when creating a new note.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/openstreetmap-website/issues/867#issuecomment-69562573">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLWlmpmH7uxrmpX4uyKNl6IokSkF5ks5ng7RhgaJpZM4DQey1.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/issues/867#issuecomment-69562573"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>