Commit 6e211c3f authored by Peter Vanhee's avatar Peter Vanhee
Browse files

Following leaflet development: provide jquery trigger when new features are added to the map

parent 303ddee3
Loading
Loading
Loading
Loading
+3 −0
Changes for leaflet_markercluster.drupal.js: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -119,6 +119,9 @@
              lFeature.bindPopup(feature.popup, {autoPanPadding: L.point(25,25)});
            }
          }

          // Allow others to do something with the feature that was just added to the map
          $(document).trigger('leaflet.feature', [lFeature, feature]);
        }

        // add layer switcher