commit 5119644986644aa0165b9f5c83c7296a64ac3275 parent 48b0eac181a181c178b40c813fb20a2fcc56ea69 Author: Sergej Orlov <wladimirych@gmail.com> Date: Wed, 15 Feb 2017 22:13:53 +0300 [wikimapia] fix linter warnings Diffstat:
M | src/lib/leaflet.layer.wikimapia/index.js | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/leaflet.layer.wikimapia/index.js b/src/lib/leaflet.layer.wikimapia/index.js @@ -11,7 +11,7 @@ function isPointInPolygon(polygon, p) { for (i = 0; i < polygon.length; i++) { node = polygon[i]; if ( - ((node[0] <= p[0] && p[0] < prevNode[0]) || prevNode[0] <= p[0] && p[0] < node[0]) && + ((node[0] <= p[0] && p[0] < prevNode[0]) || (prevNode[0] <= p[0] && p[0] < node[0])) && p[1] < (prevNode[1] - node[1]) * (p[0] - node[0]) / (prevNode[0] - node[0]) + node[1] ) { inside = !inside; @@ -160,7 +160,7 @@ L.Wikimapia = L.GridLayer.extend({ onMouseMove: function(e) { const place = this.getPlaceAtMousePos(e); - if (this.highlightedPlace && (!place || this.highlightedPlace.id != place.id)) { + if (this.highlightedPlace && (!place || this.highlightedPlace.id !== place.id)) { this._map.removeLayer(this.highlightedPlace.polygon); this._map.removeLayer(this.highlightedPlace.label); this.highlightedPlace = null;