]> git.openstreetmap.org Git - rails.git/commit
Use details attribute to render changeset bounding box
authorAnton Khorev <tony29@yandex.ru>
Sun, 5 Jan 2025 14:59:47 +0000 (17:59 +0300)
committerAnton Khorev <tony29@yandex.ru>
Sun, 5 Jan 2025 15:18:33 +0000 (18:18 +0300)
commitc887f1d7b29ff6a125ebe70ff15609a005f99fba
treee4e3e4be87bfa740f52942cffd00afcad8b84b5c
parent0b0569f150afc4bfc3acefbdc477f50eb56ffeae
Use details attribute to render changeset bounding box

Do this instead of using L.OSM.DataLayer. DataLayer makes an extra request just to get the bbox. Also it expects bbox to always exist, which is not true for some changesets.
app/assets/javascripts/index/changeset.js
app/assets/javascripts/leaflet.map.js