Skip to content

Commit

Permalink
Fix WMTS opacity from permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed May 8, 2024
1 parent 3f297cd commit c8f4cec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/datasource/ExternalDataSourcesManager.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// The MIT License (MIT)
//
// Copyright (c) 2017-2023 Camptocamp SA
// Copyright (c) 2017-2024 Camptocamp SA
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion src/import/wmtsCapabilityLayertreeComponent.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// The MIT License (MIT)
//
// Copyright (c) 2017-2021 Camptocamp SA
// Copyright (c) 2017-2024 Camptocamp SA
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
Expand Down
6 changes: 4 additions & 2 deletions src/permalink/Permalink.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// The MIT License (MIT)
//
// Copyright (c) 2016-2022 Camptocamp SA
// Copyright (c) 2016-2024 Camptocamp SA
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
Expand Down Expand Up @@ -1337,7 +1337,9 @@ PermalinkService.prototype.initLayers_ = function () {
);
if (treeCtrl.layer) {
if (opacity !== undefined) {
treeCtrl.layer.setOpacity(opacity);
this.$timeout_(() => {
treeCtrl.layer.setOpacity(opacity);
}, 100);
}
// === Set the gmfLayerBeingSwipe layer ===
if (
Expand Down

0 comments on commit c8f4cec

Please sign in to comment.