Adds a way to set scale level to the layer
LSD.Layer.Scale = {
properties: {
scale: [['x', 'y'], 'collection'],
x: ['number', 'percentage'],
y: ['number', 'percentage']
},
paint: function(x, y) {
if (x != null || y != null) return {
size: {
width: - this.size.width * (1 - x),
height: - this.size.height * (1 - y)
}
}
}
}