Skip to content

Commit

Permalink
🐛 [Bug fixes] fix UI bug when customizing intervention map style (#3800)
Browse files Browse the repository at this point in the history
  • Loading branch information
njourdane committed Oct 23, 2023
1 parent 56db43f commit 39efce0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,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)

Expand Down
11 changes: 7 additions & 4 deletions geotrek/maintenance/static/maintenance/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 39efce0

Please sign in to comment.