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

I can not update legend #43

Closed
ruby232 opened this issue Nov 6, 2014 · 5 comments
Closed

I can not update legend #43

ruby232 opened this issue Nov 6, 2014 · 5 comments

Comments

@ruby232
Copy link

ruby232 commented Nov 6, 2014

I need to update legend but not have options, any idea.

@neveldo
Copy link
Owner

neveldo commented Nov 11, 2014

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 !

@ghost
Copy link

ghost commented Feb 12, 2015

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?

@neveldo
Copy link
Owner

neveldo commented Feb 26, 2015

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.

@RASMiranda
Copy link

Hey,

you could refresh the entire map by emptying the appropriate DIV container and calling again $.mapael()with the new options

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...
Legend update would be really really cool, bump this!

@Indigo744
Copy link
Collaborator

This feature is implemented in upcoming version 2.0. Closing this thread.

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

No branches or pull requests

4 participants