[openstreetmap-website] Add an overpass based query tool (#721)

Tom Hughes notifications at github.com
Sun Mar 16 16:51:55 UTC 2014


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.

There are a few things that I no need to be resolved before this is merged:

- [ ] Need a better icon for the tool
- [ ] Work out what to do about https

Comments, criticisms, code reviews etc welcome...
You can merge this Pull Request by running:

  git pull https://github.com/tomhughes/openstreetmap-website overpass

Or you can view, comment on it, or merge it online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/721

-- Commit Summary --

  * Drop client side parsing of lat/lon parameters
  * Initial work on overpass based query API
  * Filter out nodes which are too far away
  * Improve styling of feature list
  * Show a message when no features are found
  * Increase search radius at lower zooms
  * Disable query feature tool below z14
  * Style feature in query mode to match browse mode
  * Consider addr:housename as a name source for features
  * Build and show partial geometries for relatons
  * Use POST for overpass queries
  * Make overpass server URL configurable
  * Abort any existing requests when starting new ones
  * Pivot areas to the underlying way or relation object
  * Merge branch 'master' into overpass
  * Make sure the query location is always in view

-- File Changes --

    M app/assets/images/sprite.png (0)
    M app/assets/images/sprite.svg (33)
    M app/assets/javascripts/index.js (10)
    A app/assets/javascripts/index/query.js (283)
    A app/assets/javascripts/leaflet.query.js (38)
    M app/assets/javascripts/osm.js.erb (20)
    M app/assets/stylesheets/common.css.scss (42)
    A app/views/browse/query.html.erb (22)
    M config/example.application.yml (2)
    M config/i18n-js.yml (1)
    M config/locales/en.yml (16)
    M config/routes.rb (1)
    M test/javascripts/osm_test.js (24)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/721.patch
https://github.com/openstreetmap/openstreetmap-website/pull/721.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/721
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20140316/85c63fb1/attachment.html>


More information about the rails-dev mailing list