<p>This pull adds an overpass based query tool. A new icon on the right hand side of the map activates query mode where clicking on the map will ask overpass for both "nearby" and "enclosing" features and display the resulting lists in the side bar.</p>
<p>There are a few things that I no need to be resolved before this is merged:</p>
<ul class="task-list">
<li class="task-list-item">
<input type="checkbox" class="task-list-item-checkbox" disabled> Need a better icon for the tool</li>
<li class="task-list-item">
<input type="checkbox" class="task-list-item-checkbox" disabled> Work out what to do about https</li>
</ul><p>Comments, criticisms, code reviews etc welcome...</p>
<hr>
<h4>You can merge this Pull Request by running</h4>
<pre> git pull https://github.com/tomhughes/openstreetmap-website overpass</pre>
<p>Or view, comment on, or merge it at:</p>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/721'>https://github.com/openstreetmap/openstreetmap-website/pull/721</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Drop client side parsing of lat/lon parameters</li>
<li>Initial work on overpass based query API</li>
<li>Filter out nodes which are too far away</li>
<li>Improve styling of feature list</li>
<li>Show a message when no features are found</li>
<li>Increase search radius at lower zooms</li>
<li>Disable query feature tool below z14</li>
<li>Style feature in query mode to match browse mode</li>
<li>Consider addr:housename as a name source for features</li>
<li>Build and show partial geometries for relatons</li>
<li>Use POST for overpass queries</li>
<li>Make overpass server URL configurable</li>
<li>Abort any existing requests when starting new ones</li>
<li>Pivot areas to the underlying way or relation object</li>
<li>Merge branch 'master' into overpass</li>
<li>Make sure the query location is always in view</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/721/files#diff-0">app/assets/images/sprite.png</a>
(0)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/721/files#diff-1">app/assets/images/sprite.svg</a>
(33)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/721/files#diff-2">app/assets/javascripts/index.js</a>
(10)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/721/files#diff-3">app/assets/javascripts/index/query.js</a>
(283)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/721/files#diff-4">app/assets/javascripts/leaflet.query.js</a>
(38)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/721/files#diff-5">app/assets/javascripts/osm.js.erb</a>
(20)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/721/files#diff-6">app/assets/stylesheets/common.css.scss</a>
(42)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/721/files#diff-7">app/views/browse/query.html.erb</a>
(22)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/721/files#diff-8">config/example.application.yml</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/721/files#diff-9">config/i18n-js.yml</a>
(1)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/721/files#diff-10">config/locales/en.yml</a>
(16)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/721/files#diff-11">config/routes.rb</a>
(1)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/721/files#diff-12">test/javascripts/osm_test.js</a>
(24)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/721.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/721.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/721.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/721.diff</a></li>
</ul>
<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/pull/721'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/1419053__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxMDYwNzkxNSwiZGF0YSI6eyJpZCI6Mjc4MDAzNDB9fQ==--0b9c9aedcc27e0c18b6ebb6e4db277078f796196.gif' height='1' width='1'></p>