X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/168a9fc3272777fa7ab533e936715525376f8ebf..2119911aa511d7340318367ae2e3c1dc98bcab76:/app/assets/javascripts/index.js?ds=sidebyside diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 98f24a6e7..9f0c86493 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -40,7 +40,7 @@ $(document).ready(function () { } if (params.object) { - addObjectToMap(params.object, params.object_zoom); + addObjectToMap(params.object, { zoom: params.object_zoom }); } handleResize(); @@ -59,7 +59,7 @@ $(document).ready(function () { } if (data.type && data.id) { - addObjectToMap(data, true); + addObjectToMap(data, { zoom: true, style: { opacity: 0.2, fill: false } }); } if (marker) {