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

This commit is contained in:
Mike Primm 2011-08-26 06:07:00 +08:00 committed by mikeprimm
parent d9ad51edd6
commit 59b095628d
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,