assign map var

This commit is contained in:
Thomas Rudin 2019-07-19 19:58:59 +02:00
parent 1f8109e8b8
commit 332ec2bd26

View File

@ -179,7 +179,8 @@ export default L.LayerGroup.extend({
},
onAdd: function(/*map*/) {
onAdd: function(map) {
this.map = map;
this.layerMgr.addListener(() => this.reDraw());
this.wsChannel.addListener("minetest-info", () => this.onMinetestUpdate());
this.reDraw();