Sha256: 46cb3748fc46068e8a6cd3db00d57bd9f4eb1bb743522e1b48d323af228a11a6

Contents?: true

Size: 506 Bytes

Versions: 10

Compression:

Stored size: 506 Bytes

Contents

L.FeatureGroup.include({
	// TODO: remove this when AOP is supported in Leaflet, need this as we cannot put code in removeLayer()
	clearLayers: function () {
		this.unbindLabel();
		this.eachLayer(this.removeLayer, this);
		return this;
	},

	bindLabel: function (content, options) {
		return this.invoke('bindLabel', content, options);
	},

	unbindLabel: function () {
		return this.invoke('unbindLabel');
	},

	updateLabelContent: function (content) {
		this.invoke('updateLabelContent', content);
	}
});

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
leaflet-js-0.7.9 vendor/assets/Leaflet.label/src/FeatureGroup.Label.js
leaflet-js-0.7.8 vendor/assets/Leaflet.label/src/FeatureGroup.Label.js
leaflet-js-0.7.7 vendor/assets/Leaflet.label/src/FeatureGroup.Label.js
leaflet-js-0.8.dev2 lib/leaflet.label/src/FeatureGroup.Label.js
leaflet-js-0.7.0.4 lib/leaflet.label/src/FeatureGroup.Label.js
leaflet-js-0.7.0.3 lib/leaflet.label/src/FeatureGroup.Label.js
leaflet-js-0.7.0.2 lib/leaflet.label/src/FeatureGroup.Label.js
leaflet-js-0.7.0.1 lib/leaflet.label/src/FeatureGroup.Label.js
leaflet-js-0.7.0 lib/leaflet.label/src/FeatureGroup.Label.js
leaflet-js-0.6.beta4 lib/leaflet.label/src/FeatureGroup.Label.js