Avoid exceptions on mouse-events while initializing.

Change-Id: I7f25e08edcc7a34b08016211c599774973fd506d
This commit is contained in:
Michael Meeks 2019-11-13 16:48:56 +00:00
parent 9859a5f56b
commit db20596a0a

View file

@ -262,6 +262,9 @@ L.Control.Header = L.Control.extend({
}, },
_entryAtPoint: function(point) { _entryAtPoint: function(point) {
if (!this._tickMap)
return false;
var position = this._getParallelPos(point); var position = this._getParallelPos(point);
position = position - this._position; position = position - this._position;