gridviz 3.0.7 → 3.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/gridviz.js +107 -104
- package/dist/gridviz.min.js +1 -1
- package/package.json +1 -1
- package/src/core/Dataset.js +1 -1
- package/src/core/Map.js +1 -1
- package/src/index.js +1 -0
package/package.json
CHANGED
package/src/core/Dataset.js
CHANGED
|
@@ -107,7 +107,7 @@ export class Dataset {
|
|
|
107
107
|
if (this.mixedResolution) {
|
|
108
108
|
for (const c of cells) {
|
|
109
109
|
/** @type {number} */
|
|
110
|
-
const r = this.mixedResolution(c)
|
|
110
|
+
const r = +this.mixedResolution(c)
|
|
111
111
|
if (posGeo.x < c.x) continue
|
|
112
112
|
else if (c.x + r < posGeo.x) continue
|
|
113
113
|
else if (posGeo.y < c.y) continue
|
package/src/core/Map.js
CHANGED
|
@@ -304,7 +304,7 @@ export class Map {
|
|
|
304
304
|
|
|
305
305
|
//rare case for a dataset with mixed resolutions
|
|
306
306
|
if (dsc.mixedResolution) {
|
|
307
|
-
const r = dsc.mixedResolution(cell)
|
|
307
|
+
const r = +dsc.mixedResolution(cell)
|
|
308
308
|
const html = layer.cellInfoHTML(cell, r)
|
|
309
309
|
if (!html) return undefined
|
|
310
310
|
return { cell: cell, html: html, resolution: r }
|
package/src/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export { Map } from './core/Map.js'
|
|
|
6
6
|
export { GeoCanvas } from './core/GeoCanvas.js'
|
|
7
7
|
export { Style } from './core/Style.js'
|
|
8
8
|
export { Layer } from './core/Layer.js'
|
|
9
|
+
export { Dataset } from './core/Dataset.js'
|
|
9
10
|
export { MultiResolutionDataset } from './core/MultiResolutionDataset.js'
|
|
10
11
|
|
|
11
12
|
// export dataset types
|