Skip to content

Commit

Permalink
Fix custom layer render opacity config (#289)
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)
  • Loading branch information
junqiu-lei authored and github-actions[bot] committed Feb 23, 2023
1 parent 4591e12 commit e7abc01
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 e7abc01

Please sign in to comment.