Add control for hide/show of component layers (only regions for now)

This commit is contained in:
Mike Primm 2011-08-25 17:07:00 -05:00
parent 625b62fa36
commit bfb12e4f81
3 changed files with 15 additions and 1 deletions

View file

@ -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,