uniq frames

This commit is contained in:
javi 2013-08-28 12:37:45 +02:00
parent 5a8461a6c1
commit 2bfc8a154b

View File

@ -349,6 +349,11 @@ CartoCSS.prototype = {
layer.frames.push(def.frame_offset);
}
// uniq the frames
for(i = 0; i < ordered_layers.length; ++i) {
ordered_layers[i].frames = _.uniq(ordered_layers[i].frames);
}
return ordered_layers;
}