Skip to content

Commit

Permalink
Fix custom layer render opacity config (opensearch-project#289) (open…
Browse files Browse the repository at this point in the history
…search-project#291)

* 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]>
(cherry picked from commit 728487f)
  • Loading branch information
opensearch-trigger-bot[bot] authored and A9 Swift Project User committed Mar 1, 2023
1 parent ca6dfe6 commit 2f858bc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auto_sync_commit_metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"last_github_commit": "4591e12e80434749cd91ba4942a9b6fd64b074b8",
"last_gitfarm_commit": "008ed03c51dbad03a9a934dc0ff61b9d03c601f3"
"last_github_commit": "728487f8633db61999439fa3bfe8601252e9959f",
"last_gitfarm_commit": "0427d8775875c8ec26f8b95300bc69b60e735dc5"
}
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 2f858bc

Please sign in to comment.