1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 1 200 250 250 250 2 | /* L.Handler is a base class for handler classes that are used internally to inject interaction features like dragging to classes like Map and Marker. */ L.Handler = L.Class.extend({ initialize: function (map) { this._map = map; }, enable: function () { Iif (this._enabled) { return; } this._enabled = true; this.addHooks(); }, disable: function () { Eif (!this._enabled) { return; } this._enabled = false; this.removeHooks(); }, enabled: function () { return !!this._enabled; } }); |