-
Notifications
You must be signed in to change notification settings - Fork 195
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
I can not update legend #43
Comments
Hello, I'm sorry, for now, mapael doesn't let you update legend. You can only update the elements attributes (and the values if you use a legend) (see this example : http://jsfiddle.net/neveldo/TKUy4/). Feel free to make a pull request in order to make mapael allow legend update ! |
Hi @neveldo I need to update the legend as well. I looked the plugin code but I must confess I still didn't figured out how to make a workaround. Are you planning to make a function to update the legend? |
Hello, Unfortunately, I didn't planned to add this function in a short term, but I add it to the todo. Not the best solution but in order to refresh the legend, you could refresh the entire map by emptying the appropriate DIV container and calling again $.mapael()with the new options. |
Hey,
I tried exactly this with ajax, but don't know if it's because of my map, but after the first 5 updates page starts getting slow and the browser not responding... |
This feature is implemented in upcoming version 2.0. Closing this thread. |
I need to update legend but not have options, any idea.
The text was updated successfully, but these errors were encountered: