Skip to content

Commit

Permalink
Don't remove zIndex/opacity from initial WMS props (#405)
Browse files Browse the repository at this point in the history
See PaulLeCam/react-leaflet#404.  Initial values were being removed
from the parameters passed to the leaflet element when it was first
created; later updates were still correctly applied.
  • Loading branch information
markhepburn authored and riseeverytime committed Oct 31, 2017
1 parent d39c580 commit bc691a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WMSTileLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class WMSTileLayer extends GridLayer<LeafletElement, Props> {
}

createLeafletElement(props: Props): LeafletElement {
const { url, opacity: _o, zIndex: _z, ...params } = props
const { url, ...params } = props
return new TileLayer.WMS(url, this.getOptions(params))
}

Expand Down

0 comments on commit bc691a9

Please sign in to comment.