Replace permalink/Share URL feature with automatic URL rewriting on change.

This commit is contained in:
Gautier Pelloux-Prayer 2017-04-04 10:24:10 +02:00
parent 3cc0a3b9ee
commit e82f360d9c
9 changed files with 308 additions and 170 deletions

View file

@ -60,8 +60,8 @@ BR.NogoAreas = L.Control.Draw.extend({
setOptions: function(options) {
var nogos = options.nogos;
this.drawnItems.clearLayers();
if (nogos) {
this.drawnItems.clearLayers();
for (var i = 0; i < nogos.length; i++) {
this.drawnItems.addLayer(nogos[i]);
}