X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0c8ad2f86edefed72052b402742cadedb0d674d9..1779347849622ade2abf4926a2db867d69f72033:/app/assets/javascripts/index.js?ds=sidebyside diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 7c80b0108..519a805bb 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -58,6 +58,10 @@ $(document).ready(function () { map.setView(centre, data.zoom); } + if (data.type && data.id) { + addObjectToMap(data, true); + } + if (marker) { map.removeLayer(marker); }