CartoDB multiple layer toggle
问题 I'm trying to make one map where you can toggle between three different layers, and keep the same legend visible for all. I'm currently following this documentation: http://docs.cartodb.com/tutorials/toggle_map_view.html My map in CartoDB has three separate layers (w/ three datasets for the years 2013, 2014 and 2015). I'm trying to make a toggle map like the one in the documentation. Here's what I go so far: <html> <head> <link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/3