I recently downloaded a choropleth map from leafletjs.com. The problem I have is I have multiple js files that are labeled by year (i.e. us-states2012.js, us-states2013.js) and I need to create a drop down menu so that based on the selection from the list (2012, 2013, etc.) the right js file is put into effect.
I am a complete novice and I have no idea how to create the appropriate list function let alone how to call each variable.
Should I place each javascript files into one and sort by name/year (var)? Should I just keep each file separate and call each javascript from the drop down menu? Is any of this possible?