-
Notifications
You must be signed in to change notification settings - Fork 196
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
How to change color of all areas in a row in jquery #418
Comments
Hello @sophiejarlier , I think the more appropriate way to update the bg color of all the area would be to generate a full JSON object (ie updatedOptions) with the new parameters for all the areas (by looping on all the available areas) and trigger the 'update' event with this object a single time. If you don't want to loop over all the areas and if all the areas share the same bg color, you just have to use map.defaultArea option. This option allows you to define or update the default bg color for all the areas. I hope it will help you ! |
Hi,
I am using Mapael map and I would need to change the color of all our areas in a single row..
I know I can change the color of an area as follow:
But how to change the color of all areas in the same time?
I tried this but it does not work:
Thanks for your help
The text was updated successfully, but these errors were encountered: