aboutsummaryrefslogtreecommitdiffstats
path: root/extlib/leaflet/src/layer/marker/Marker.Popup.js
diff options
context:
space:
mode:
Diffstat (limited to 'extlib/leaflet/src/layer/marker/Marker.Popup.js')
-rw-r--r--extlib/leaflet/src/layer/marker/Marker.Popup.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/extlib/leaflet/src/layer/marker/Marker.Popup.js b/extlib/leaflet/src/layer/marker/Marker.Popup.js
deleted file mode 100644
index 4c5cad04..00000000
--- a/extlib/leaflet/src/layer/marker/Marker.Popup.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Popup extension to L.Marker, adding openPopup & bindPopup methods.
- */
-
-L.Marker.include({
- openPopup: function() {
- this._popup.setLatLng(this._latlng);
- this._map.openPopup(this._popup);
-
- return this;
- },
-
- closePopup: function() {
- if (this._popup) {
- this._popup._close();
- }
- },
-
- bindPopup: function(content, options) {
- options = L.Util.extend({offset: this.options.icon.popupAnchor}, options);
-
- this._popup = new L.Popup(options);
- this._popup.setContent(content);
- this.on('click', this.openPopup, this);
-
- return this;
- }
-}); \ No newline at end of file