routing permalink

This commit is contained in:
Norbert Renner 2014-05-15 20:37:17 +02:00
parent 88e4c164c2
commit 136a182539
7 changed files with 234 additions and 12 deletions

View file

@ -58,6 +58,16 @@ BR.NogoAreas = L.Control.Draw.extend({
};
},
setOptions: function(options) {
var nogos = options.nogos;
if (nogos) {
this.drawnItems.clearLayers();
for (var i = 0; i < nogos.length; i++) {
this.drawnItems.addLayer(nogos[i]);
}
}
},
_fireUpdate: function () {
this.fire('update', {options: this.getOptions()});
}