diff options
Diffstat (limited to 'extlib/leaflet/src/layer/vector/Path.Popup.js')
-rw-r--r-- | extlib/leaflet/src/layer/vector/Path.Popup.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/extlib/leaflet/src/layer/vector/Path.Popup.js b/extlib/leaflet/src/layer/vector/Path.Popup.js deleted file mode 100644 index b82a4920..00000000 --- a/extlib/leaflet/src/layer/vector/Path.Popup.js +++ /dev/null @@ -1,24 +0,0 @@ -/*
- * Popup extension to L.Path (polylines, polygons, circles), adding bindPopup method.
- */
-
-L.Path.include({
- bindPopup: function(content, options) {
- if (!this._popup || this._popup.options !== options) {
- this._popup = new L.Popup(options);
- }
- this._popup.setContent(content);
-
- if (!this._openPopupAdded) {
- this.on('click', this._openPopup, this);
- this._openPopupAdded = true;
- }
-
- return this;
- },
-
- _openPopup: function(e) {
- this._popup.setLatLng(e.latlng);
- this._map.openPopup(this._popup);
- }
-});
\ No newline at end of file |