From d3cd57d0ba1d2b6c573d1039d8ade04a4b2fece4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B8gh?= Date: Tue, 14 Jun 2022 14:23:31 +0200 Subject: [PATCH] Working --- public/js/lib/Leaflet.utfgrid/L.NonTiledUTFGrid.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/js/lib/Leaflet.utfgrid/L.NonTiledUTFGrid.js b/public/js/lib/Leaflet.utfgrid/L.NonTiledUTFGrid.js index d75507722..f18e7dc72 100644 --- a/public/js/lib/Leaflet.utfgrid/L.NonTiledUTFGrid.js +++ b/public/js/lib/Leaflet.utfgrid/L.NonTiledUTFGrid.js @@ -25,9 +25,6 @@ _cache: null, // {: } _map: null, - _updateCursor: function (cursor) { - //this._container.style.cursor = cursor; - }, //no-op, overridden below _throttleMove: null, // holds throttled mousemove handler // override this method in the inherited class // getImageUrl: function (bounds, width, height) {}, @@ -40,6 +37,9 @@ this._cache = {}; this._map = map; + this._updateCursor = function (cursor) { + //console.log(this) + }; //no-op, overridden below if (!this._div) { this._div = leaflet.DomUtil.create('div', 'leaflet-utfgrid-layer'); if (this.options.pointerEvents) { @@ -309,7 +309,7 @@ }; } - var charCode = data.grid[gridY].charCodeAt(gridX); + var charCode = data.grid?.[gridY]?.charCodeAt(gridX); var idx = this._utfDecode(charCode), key = data.keys[idx], result = data.data[key];