new DecorateLayer()
Provides a function that adds properties (using
Object.defineProperty
) to the layer, making it possible to control layer
properties with ngModel.
Example:
<input type="checkbox" ngModel="layer.visible" />
See our live examples: ../examples/layeropacity.html ../examples/layervisibility.html