Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control path opacity #59

Open
francescocretti opened this issue Jul 6, 2022 · 1 comment
Open

Control path opacity #59

francescocretti opened this issue Jul 6, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@francescocretti
Copy link

francescocretti commented Jul 6, 2022

Hi, thanks for the useful tool!

I'm wondering if there's an handy way to control the opacity of a map region (so an SVG path).

I'm building an heatmap with an opacity scale based on data incoming from an API, so is not really possible to do that as in the Heatmap example.

Or rather, it's not possible without defining a CSS class for each possible opacity value, that's not something I really wanna do :)

Any suggestions?

Thanks a lot

@VictorCazanave VictorCazanave self-assigned this Feb 24, 2023
@VictorCazanave VictorCazanave added the enhancement New feature or request label Feb 24, 2023
@VictorCazanave
Copy link
Owner

Hi,
It's currently not possible (without defining a CSS class for each possible opacity value), but I think adding the feature to set the style attribute of each location (with a new locationStyle prop for example) would solve your problem.
I'll try to work on it in the following weeks, or feel free to create a pull request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants