Skip to content

Commit

Permalink
Working
Browse files Browse the repository at this point in the history
  • Loading branch information
mapcentia committed Jun 14, 2022
1 parent b37a302 commit d3cd57d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions public/js/lib/Leaflet.utfgrid/L.NonTiledUTFGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
_cache: null, // {<tileKey>: <utfgrid>}
_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) {},
Expand All @@ -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) {
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit d3cd57d

Please sign in to comment.