<p>I believe we have already refused this in the past.</p>

<p>Certainly I have no wish to expose any sort of API in this way - if anything my goal is to eliminate all global scope variables in our javascript.</p>

<p>Consider this - if we had done back when we were using OpenLayers what sort of screams of protest would there have been when we switched to Leaflet and everything broken because our "API" had changed? That's why I don't want to codify anything here.</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/1166#issuecomment-189676368">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLXOMUyl126Kb3Xk_-7WeMHHs07sCks5pocOWgaJpZM4HkhPq.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/1166#issuecomment-189676368"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>