setOpacity(opacity) {
    assert(typeof opacity === 'number', 'Layer opacity must be a number');
    this.set(LayerProperty.OPACITY, opacity);
  }
Set the opacity of the layer, allowed values range from 0 to 1.
@param {number} opacity The opacity of the layer.
@observable
@api