Map with sidebar

back to documentation
          
            jQuery.getJSON('sidebar.json', function(data){
              jQuery('#map-small').shakemap({
                data:data,
                sidebar:{
                  active:true,
                  mid:"nid",
                  target:"#sidebar"
                }
              });
              
              for(var i = 0; i < data.features.length; i++){
                jQuery('#sidebar').append(data.features[i].properties.description);
              }
            });