Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix exception in mouse event handler with empty CanvasMarkerLayer
`this._markers` is undefined in `_searchPoints`, called from event listeners. Now we check markers existence in the beginning of handlers. Note 1: Could be fixed in some another place: e.g. check `_markers` in `_searchPoints` ...or initialize (empty) `_markers` on CanvasMarkerLayer init Note 2: `!this._map` removed from condition in `_onMouseMove:` 'cause it's never should be true as we detach listeners on remove from map
- Loading branch information