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

Bug: on resize, plot legend isn't updated #163

Closed
Indigo744 opened this issue Dec 10, 2015 · 0 comments
Closed

Bug: on resize, plot legend isn't updated #163

Indigo744 opened this issue Dec 10, 2015 · 0 comments

Comments

@Indigo744
Copy link
Collaborator

When resizing the map, the plots (circle, square...) are scaled to the current map scale (which is actualWidth / mapWidth).
However, the legend plot is drawn once at init and then never updated again. Which means the scale is off after a resizing of the map.

Example: http://jsfiddle.net/neveldo/n6XyQ/

  • Look first at the legend at the bottom, looks right between the plots and the legend.
  • Now resize the container to a smaller size
  • The plots on map are scaled down, but the legend remains the same
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

1 participant