<p>Actually to be honest I don't particularly like that <code>hasClass</code> test of yours either - might be better to fire a custom <code>resized</code> event on the div and then have the OL code bind to that event.</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/commit/b507f6c8873760a02afc9b05c3ed3e999055ee90#commitcomment-1823873'>view it on GitHub</a>.
            </p>
            <img src='https://github.com/notifications/beacon/Jshd8sI44GVrKZBvymxqKPkTt-wOxDmY6f558mzlTtN1e1a3nUl8t7ZJ7ieMW-G6.gif' height='1' width='1'>