<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2805447527" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/leaflet-osm/issues/44" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/leaflet-osm/pull/44/hovercard" href="https://github.com/openstreetmap/leaflet-osm/pull/44">openstreetmap/leaflet-osm#44</a> introduced OSM JSON support in the underlying leaflet osm package. This PR enables the new feature by requesting application/json format (via Accept header).</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/5563'>https://github.com/openstreetmap/openstreetmap-website/pull/5563</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5563/commits/0a6d1a8dabd6a51c6f2b7de73ea8644a650d9dca" class="commit-link">0a6d1a8</a>  DataLayer to consume JSON format responses</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5563/files">2 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5563/files#diff-ef1a25386d3acf1a86026dcc1edba5a3ec22fc64053d657cb1564b25129475c6">app/assets/javascripts/index/layers/data.js</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5563/files#diff-f060eef487077b042f45b3a12e7a2cbd54a446f8c744cdb98405a1295430e8b9">app/assets/javascripts/leaflet.map.js</a>
    (6)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5563.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5563.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5563.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5563.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/5563">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMOMFUS6W3PL7MIJL32M2UXHAVCNFSM6AAAAABV7C6LW2VHI2DSMVQWIX3LMV43ASLTON2WKOZSHAYTIMJVG44TINQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLVA4OLYHTIJFEHZTD2M2UXHA5CNFSM6AAAAABV7C6LW2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKPPFEPI.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/5563</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/5563",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5563",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>