aboutsummaryrefslogtreecommitdiffstats
path: root/extlib/leaflet/src/layer/FeatureGroup.js
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2015-02-14 13:34:41 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2015-02-17 15:48:28 -0600
commit9252fc84840220106e696cc2116e7804c9529c5a (patch)
treec1bafe27ad0cac8e4b49bd476ad2e3947fe4fca9 /extlib/leaflet/src/layer/FeatureGroup.js
parent572106e23037997db9a4e131029b0a4f7cb969b5 (diff)
downloadmediagoblin-9252fc84840220106e696cc2116e7804c9529c5a.tar.lz
mediagoblin-9252fc84840220106e696cc2116e7804c9529c5a.tar.xz
mediagoblin-9252fc84840220106e696cc2116e7804c9529c5a.zip
Remove extlib deps moved into bower
Diffstat (limited to 'extlib/leaflet/src/layer/FeatureGroup.js')
-rw-r--r--extlib/leaflet/src/layer/FeatureGroup.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/extlib/leaflet/src/layer/FeatureGroup.js b/extlib/leaflet/src/layer/FeatureGroup.js
deleted file mode 100644
index 6e45d84c..00000000
--- a/extlib/leaflet/src/layer/FeatureGroup.js
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * L.FeatureGroup extends L.LayerGroup by introducing mouse events and bindPopup method shared between a group of layers.
- */
-
-L.FeatureGroup = L.LayerGroup.extend({
- includes: L.Mixin.Events,
-
- addLayer: function(layer) {
- this._initEvents(layer);
- L.LayerGroup.prototype.addLayer.call(this, layer);
-
- if (this._popupContent && layer.bindPopup) {
- layer.bindPopup(this._popupContent);
- }
- },
-
- bindPopup: function(content) {
- this._popupContent = content;
-
- for (var i in this._layers) {
- if (this._layers.hasOwnProperty(i) && this._layers[i].bindPopup) {
- this._layers[i].bindPopup(content);
- }
- }
- },
-
- _events: ['click', 'dblclick', 'mouseover', 'mouseout'],
-
- _initEvents: function(layer) {
- for (var i = 0, len = this._events.length; i < len; i++) {
- layer.on(this._events[i], this._propagateEvent, this);
- }
- },
-
- _propagateEvent: function(e) {
- e.layer = e.target;
- e.target = this;
- this.fire(e.type, e);
- }
-}); \ No newline at end of file