Skip to content

Commit

Permalink
Bugfix: Send options to WMS layers (#517)
Browse files Browse the repository at this point in the history
* Bugfix: Send options to WMS layers

* remove console.log
  • Loading branch information
tariqksoliman committed Mar 21, 2024
1 parent b073aab commit 22a9901
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/essence/Basics/Layers_/leaflet-tilelayer-middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,10 @@ L.tileLayer.colorFilter = function (url, options) {
`WARNING: WMS layer has no "layers" parameter in the url - ${url}`
)

return new L.TileLayer.WMSColorFilter(urlBaseString, wmsOptions)
return new L.TileLayer.WMSColorFilter(urlBaseString, {
...options,
...wmsOptions,
})
}

url = url.replace(/{t}/g, '_time_')
Expand Down

0 comments on commit 22a9901

Please sign in to comment.