<p>This is a followup to the <a href="https://github.com/openstreetmap/openstreetmap-website/pull/328">map-ui</a> changes, making better use of the new "Share" sidebar. It moves the more consumer-oriented options -- "Embeddable HTML" and "Image" -- alongside the "Link" option for sharing. The OSM XML "Export" option remains, but no longer needs the prominence of a top bar tab, so is moved to the sidebar alongside GPS Traces under a new "Data" section.</p>

<p>Two additional enhancements are included:</p>

<ul>
<li>The oft-requested ability to include a marker in the permalink.</li>
<li>A shortlist of sources for bulk data downloads is provided when the selected area is too large for export.</li>
</ul>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/osmlab/openstreetmap-website map-ui</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/351'>https://github.com/openstreetmap/openstreetmap-website/pull/351</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Reorganize share/export UI</li>
  <li>Add option to include marker in permalinks</li>
  <li>Link to sources for bulk downloads</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/351/files#diff-0">app/assets/javascripts/application.js</a>
    (59)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/351/files#diff-1">app/assets/javascripts/index.js</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/351/files#diff-2">app/assets/javascripts/index/export.js</a>
    (229)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/351/files#diff-3">app/assets/javascripts/leaflet.extend.js.erb</a>
    (94)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/351/files#diff-4">app/assets/javascripts/leaflet.share.js</a>
    (247)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/351/files#diff-5">app/assets/stylesheets/common.css.scss</a>
    (27)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/351/files#diff-6">app/views/export/start.html.erb</a>
    (60)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/351/files#diff-7">app/views/layouts/site.html.erb</a>
    (17)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/351/files#diff-8">app/views/site/_sidebar.html.erb</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/351/files#diff-9">config/locales/en.yml</a>
    (28)
  </li>
</ul>

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