Allow user to add custom layers

This commit is contained in:
Gautier Pelloux-Prayer 2017-05-02 15:41:35 +02:00
parent 3cc0a3b9ee
commit 8dcf23b170
3 changed files with 153 additions and 0 deletions

View file

@ -120,6 +120,8 @@ BR.Map = {
L.control.scale().addTo(map);
new BR.Layers().init(map, layersControl, baseLayers, overlays);
// expose map instance for console debugging
BR.debug = BR.debug || {};
BR.debug.map = map;