{"action":"created","issue":{"url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/281","repository_url":"https://api.github.com/repos/neveldo/jQuery-Mapael","labels_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/281/comments","events_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/281/events","html_url":"https://github.com/neveldo/jQuery-Mapael/issues/281","id":195082359,"number":281,"title":"Legend showing previous years data.","user":{"login":"TimHerbert","id":4966366,"avatar_url":"https://avatars.githubusercontent.com/u/4966366?v=3","gravatar_id":"","url":"https://api.github.com/users/TimHerbert","html_url":"https://github.com/TimHerbert","followers_url":"https://api.github.com/users/TimHerbert/followers","following_url":"https://api.github.com/users/TimHerbert/following{/other_user}","gists_url":"https://api.github.com/users/TimHerbert/gists{/gist_id}","starred_url":"https://api.github.com/users/TimHerbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimHerbert/subscriptions","organizations_url":"https://api.github.com/users/TimHerbert/orgs","repos_url":"https://api.github.com/users/TimHerbert/repos","events_url":"https://api.github.com/users/TimHerbert/events{/privacy}","received_events_url":"https://api.github.com/users/TimHerbert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-12T20:52:06Z","updated_at":"2016-12-14T01:00:50Z","closed_at":null,"body":"So I am trying to build an interactive map using this as the basis for the project and I love the code. I am running into an issue however with the legend showing the previous years information if that area isn't defined. \r\nIs there any way to reset what the map is showing from the legend before it shows the next year? \r\n\r\nYou can check out the project here. \r\nhttp://192.249.112.63/~uofimap/"},"comment":{"url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/comments/266911155","html_url":"https://github.com/neveldo/jQuery-Mapael/issues/281#issuecomment-266911155","issue_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/281","id":266911155,"user":{"login":"TimHerbert","id":4966366,"avatar_url":"https://avatars.githubusercontent.com/u/4966366?v=3","gravatar_id":"","url":"https://api.github.com/users/TimHerbert","html_url":"https://github.com/TimHerbert","followers_url":"https://api.github.com/users/TimHerbert/followers","following_url":"https://api.github.com/users/TimHerbert/following{/other_user}","gists_url":"https://api.github.com/users/TimHerbert/gists{/gist_id}","starred_url":"https://api.github.com/users/TimHerbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimHerbert/subscriptions","organizations_url":"https://api.github.com/users/TimHerbert/orgs","repos_url":"https://api.github.com/users/TimHerbert/repos","events_url":"https://api.github.com/users/TimHerbert/events{/privacy}","received_events_url":"https://api.github.com/users/TimHerbert/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T01:00:50Z","updated_at":"2016-12-14T01:00:50Z","body":"I guess I am confused. I am trying to not have to define every area every year. Is that possible? \r\n\r\nI am trying to let the Legend do the fill heavy lifting for me. I just need to 0 it all out when it updates so that it loads that next data set properly. I can load any year properly when it initially loads the map. But as soon as I update the map it has issues with locating some of the data even. \r\n\r\nI used some simple jquery to set the fill to #ffffff; So I can see what counties update for every year and the legend seems to be working in that regard. But I click on some of the counties and it doesn't locate the data, and if I hover over any of the previous years counties it sets the color to that it was previously set with the legend. \r\n\r\nIf I use your example code do I just populate the newMapOptions.areas[] with all of the areas on the map? I have made a list of all of them. \r\n\r\nSorry if this seems at all incoherent it's been a long day for me with other projects. I was hoping for a simple solution for this. I guess I just need some more direction as to how to use the objects to make this work properly. The first year it loads works beautifully. It's just the update function I am having a hard time figuring out how to 0 everything out and bind the data I need to show. \r\n\r\nOn the brighter note the update in code does seem to help performance. "}}
{"actor":{"display_login":"TimHerbert"}}