@india-boundary-corrector/leaflet-layer 0.0.1 → 0.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@india-boundary-corrector/leaflet-layer",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Leaflet TileLayer plugin with India boundary corrections",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -29,9 +29,9 @@
29
29
  "leaflet": ">=1.9.0"
30
30
  },
31
31
  "dependencies": {
32
- "@india-boundary-corrector/data": "^0.0.1",
33
- "@india-boundary-corrector/layer-configs": "^0.0.1",
34
- "@india-boundary-corrector/tilefixer": "^0.0.1"
32
+ "@india-boundary-corrector/data": "^0.0.3",
33
+ "@india-boundary-corrector/layer-configs": "^0.0.3",
34
+ "@india-boundary-corrector/tilefixer": "^0.0.3"
35
35
  },
36
36
  "keywords": [
37
37
  "india",
@@ -50,5 +50,6 @@
50
50
  "bugs": {
51
51
  "url": "https://github.com/ramSeraph/india_boundary_corrector/issues"
52
52
  },
53
- "homepage": "https://github.com/ramSeraph/india_boundary_corrector#readme"
53
+ "homepage": "https://github.com/ramSeraph/india_boundary_corrector#readme",
54
+ "changelog": "https://github.com/ramSeraph/india_boundary_corrector/blob/main/packages/leaflet-layer/CHANGELOG.md"
54
55
  }
package/src/index.js CHANGED
@@ -94,6 +94,7 @@ function extendLeaflet(L) {
94
94
  // if performance becomes an issue during rapid panning.
95
95
  this._fetchAndFixTile(tileUrl, z, x, y, tileSize)
96
96
  .then(({ blob, wasFixed, correctionsFailed, correctionsError }) => {
97
+ // TODO: If abort is implemented, check for AbortError here and skip emitting correctionerror
97
98
  if (correctionsFailed) {
98
99
  console.warn('[L.TileLayer.IndiaBoundaryCorrected] Corrections fetch failed:', correctionsError);
99
100
  this.fire('correctionerror', { error: correctionsError, coords: { z, x, y }, tileUrl });