NewSignature / us-map

An interactive map of the United States using Raphaël
BSD 2-Clause "Simplified" License
279 stars 184 forks source link

data #72

Closed lemetrec closed 6 years ago

lemetrec commented 6 years ago

Hi,

I must be missing something obvious, but I can't seem to get where "data" comes from in the demo example:


$('#map').usmap({
  // The click action
  click: function(event, data) {
    $('#clicked-state')
      .text('You clicked: '+data.name)
      .parent().effect('highlight', {color: '#C7F464'}, 2000);
  }
});

Could you please shed some light to me? Thanks a lot!

lemetrec commented 6 years ago

Ah nevermind, I figured out the issue!