Add control for hide/show of component layers (only regions for now)
This commit is contained in:
parent
d9ad51edd6
commit
59b095628d
3 changed files with 15 additions and 1 deletions
|
|
@ -43,6 +43,12 @@ if (!Array.prototype.indexOf) {
|
|||
}
|
||||
}
|
||||
|
||||
var DynmapLayerControl = L.Control.Layers.extend({
|
||||
getPosition: function() {
|
||||
return L.Control.Position.TOP_LEFT;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
var DynmapTileLayer = L.TileLayer.extend({
|
||||
_currentzoom: undefined,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue