Requires

Provides

Scale.js

Adds a way to set scale level to the layer

License:
Public domain (http://unlicense.org).
Authors:
Yaroslaff Fedin
  1. 22
  2. 23
  3. 24
  4. 25
  5. 26
  6. 27
  7. 28
  8. 29
  9. 30
  10. 31
  11. 32
  12. 33
  13. 34
  14. 35
  15. 36
  16. 37
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) } } } }