jawj / OverlappingMarkerSpiderfier

Deals with overlapping markers in Google Maps JS API v3, Google Earth-style
http://blog.mackerron.com
836 stars 238 forks source link

Double events #121

Closed MeterSoft closed 7 years ago

MeterSoft commented 7 years ago

`spiderfier.addListener('click', function(marker, event) {

  $.ajax({
    url: '/accounts/' + marker.id + '/marker_info.js',
    data: { lid: data.lid },
    failure: function(data){
    },
    success: function(data){
      infowindow.setContent(data);
      infowindow.open(map, marker);
    }
  });
});`

But when click on marker it will send many request to server. All request is equals and count is the same as count spiderfy markers