diff --git a/src/WMSTileLayer.js b/src/WMSTileLayer.js index cb28436..368b3ee 100644 --- a/src/WMSTileLayer.js +++ b/src/WMSTileLayer.js @@ -21,7 +21,7 @@ export default class WMSTileLayer extends GridLayer { } createLeafletElement(props: Props): LeafletElement { - const { url, opacity: _o, zIndex: _z, ...params } = props + const { url, ...params } = props return new TileLayer.WMS(url, this.getOptions(params)) }