Add hidebydefault setting to playermarkers component too
This commit is contained in:
parent
ff0bb2430d
commit
a01441992d
3 changed files with 8 additions and 3 deletions
|
|
@ -128,6 +128,7 @@ componentconstructors['playermarkers'] = function(dynmap, configuration) {
|
|||
}
|
||||
});
|
||||
dynmap.playermarkergroup = new L.LayerGroup();
|
||||
dynmap.map.addLayer(dynmap.playermarkergroup);
|
||||
if(!configuration.hidebydefault)
|
||||
dynmap.map.addLayer(dynmap.playermarkergroup);
|
||||
dynmap.layercontrol.addOverlay(dynmap.playermarkergroup, 'Players');
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue