Skip to content

Commit

Permalink
Fix custom layer render opacity config (#289) (#292)
Browse files Browse the repository at this point in the history
* Fix custom layer render opacity config

Signed-off-by: Junqiu Lei <[email protected]>

* update release note

Signed-off-by: Junqiu Lei <[email protected]>

---------

Signed-off-by: Junqiu Lei <[email protected]>
(cherry picked from commit a6b8912)

Co-authored-by: Junqiu Lei <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and junqiu-lei committed Feb 23, 2023
1 parent ddb8e49 commit 4ef3997
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions public/model/customLayerFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const addNewLayer = (
layerConfig.zoomRange[0],
layerConfig.zoomRange[1]
);
maplibreInstance.setPaintProperty(layerConfig.id, 'raster-opacity', layerConfig.opacity / 100);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ Compatible with OpenSearch and OpenSearch Dashboards Version 2.6.0
* Add scroll bar when more layers added ([#254](https://github.com/opensearch-project/dashboards-maps/pull/254))
* Align items in add new layer modal ([#256](https://github.com/opensearch-project/dashboards-maps/pull/256))
* Add indexPatterns to map embeddable output for dashboard filters ([#272](https://github.com/opensearch-project/dashboards-maps/pull/272))

### Bug Fixes
* Fix custom layer render opacity config ([#289](https://github.com/opensearch-project/dashboards-maps/pull/289))

0 comments on commit 4ef3997

Please sign in to comment.