diff --git a/docs/changelog.rst b/docs/changelog.rst index 76df434cea..90a3233b34 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -23,6 +23,7 @@ CHANGELOG **Bug fixes** +- Fix UI bug when customizing intervention map style (#3800) - Fix Aggregator fails when updating Tour steps order (#3793) - Fix services list display error (refs ##3795) diff --git a/geotrek/maintenance/static/maintenance/main.js b/geotrek/maintenance/static/maintenance/main.js index 44c5414e25..7444366dea 100644 --- a/geotrek/maintenance/static/maintenance/main.js +++ b/geotrek/maintenance/static/maintenance/main.js @@ -10,10 +10,13 @@ $(window).on('entity:map', function (e, data) { var map = data.map; // Show infrastructure layer in application maps - var layer = new L.ObjectsLayer(null, { - modelname: modelname, - style: L.Util.extend(window.SETTINGS.map.styles[modelname] || {}, { clickable:false }), - }); + var style = L.Util.extend({ clickable: false }, + window.SETTINGS.map.styles[modelname] || {}); + + var layer = new L.ObjectsLayer(null, { + modelname: modelname, + style: style, + }); if (data.modelname != modelname){ map.layerscontrol.addOverlay(layer, tr('Intervention'), tr('Maintenance'));