Skip to content

Commit 77e565b

Browse files
authored
Merge pull request #391 from kgiacobbi/master
Fixes #367 : Options are now given to the JS control
2 parents 7a54383 + 980227a commit 77e565b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/src/controls/FullScreenControl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var LeafletFullScreenControlView = LeafletControlView.extend({
1919
},
2020

2121
create_obj: function () {
22-
this.obj = L.control.fullscreen();
22+
this.obj = L.control.fullscreen(this.get_options());
2323
},
2424
});
2525

js/src/controls/LayersControl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ var LeafletLayersControlView = LeafletControlView.extend({
5858
}
5959
return ov;
6060
}, {});
61-
that.obj = L.control.layers(baselayers, overlays);
61+
that.obj = L.control.layers(baselayers, overlays, that.get_options());
6262
return that;
6363
}).then(function() {
6464
that.obj.addTo(that.map_view.obj);

0 commit comments

Comments
 (0)