Fixes #4081 on `/changeset/:id` pages.

Previously changeset bbox was loaded using `L.OSM.DataLayer`. That requied 
additional http request. Also `L.OSM.DataLayer` assumed that all changesets 
have bounding boxes which is not true.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Remove 'center' argument of addChangeset()
  * Move changeset data to a helper
  * Write details attribute to changeset page
  * Use details attribute to render changeset bounding box

-- File Changes --

    M app/assets/javascripts/index/changeset.js (17)
    M app/assets/javascripts/leaflet.map.js (25)
    M app/helpers/changesets_helper.rb (16)
    M app/views/changesets/_changeset.html.erb (14)
    M app/views/changesets/show.html.erb (4)

-- Patch Links --

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

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5471
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to