Sha256: eb888fc5a188df2b04aadfc0ee0fac43f85d8f3ae8c763ddaad3c96338015905
Contents?: true
Size: 432 Bytes
Versions: 1
Compression:
Stored size: 432 Bytes
Contents
/* * Popup extension to L.Marker, adding popup-related methods. */ L.Marker.include({ bindPopup: function (content, options) { var anchor = L.point(this.options.icon.options.popupAnchor || [0, 0]) .add(L.Popup.prototype.options.offset); options = L.extend({offset: anchor}, options); return L.Layer.prototype.bindPopup.call(this, content, options); }, _openPopup: L.Layer.prototype.togglePopup });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
leaflet-js-0.8.dev2 | lib/leaflet/src/layer/marker/Marker.Popup.js |