Skip to content

Commit

Permalink
added transparent option check when layer updates
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 committed May 10, 2017
1 parent 4b494f5 commit c343e02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/client/components/map/cesium/plugins/WMSLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ const createLayer = (options) => {
return layer;
};
const updateLayer = (newOptions, oldOptions) => {
if (oldOptions.singleTile !== newOptions.singleTile || oldOptions.tiled !== newOptions.tiled) {
if (oldOptions.singleTile !== newOptions.singleTile
|| oldOptions.tiled !== newOptions.tiled
|| oldOptions.transparent !== newOptions.transparent ) {
let layer;
if (newOptions.singleTile) {
layer = new Cesium.SingleTileImageryProvider(wmsToCesiumOptionsSingleTile(newOptions));
Expand Down

0 comments on commit c343e02

Please sign in to comment.