@india-boundary-corrector/data 0.1.0 → 0.2.0
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 +4 -2
- package/index.js +2 -1
- package/india_boundary_corrections.pmtiles +0 -0
- package/india_boundary_corrections.pmtiles.gz +0 -0
- package/package.json +1 -1
- package/version.js +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ PMTiles data package for India boundary corrections.
|
|
|
8
8
|
|
|
9
9
|
## Layers
|
|
10
10
|
|
|
11
|
-
The PMTiles file contains
|
|
11
|
+
The PMTiles file contains 12 layers:
|
|
12
12
|
|
|
13
13
|
| Layer | Description |
|
|
14
14
|
|-------|-------------|
|
|
@@ -22,10 +22,12 @@ The PMTiles file contains 10 layers:
|
|
|
22
22
|
| `to-del-ne` | Boundary lines to mask/delete from Natural Earth tiles |
|
|
23
23
|
| `to-add-ne-disp` | Disputed boundary lines to add over Natural Earth tiles |
|
|
24
24
|
| `to-del-ne-disp` | Disputed boundary lines to delete from Natural Earth tiles (same as add-disp) |
|
|
25
|
+
| `to-add-ne-internal` | Internal state boundary lines to add over Natural Earth tiles (J&K + PoK combined) |
|
|
26
|
+
| `to-del-ne-internal` | Internal boundary lines to delete from Natural Earth tiles (Chinese state boundaries within India's claimed territory) |
|
|
25
27
|
|
|
26
28
|
The `-disp` layers contain boundaries of disputed regions that fall on India's official boundary. These are boundaries that India claims but are disputed by China or Pakistan. The `to-del-*-disp` layers are identical to `to-add-*-disp` layers - they delete the original lines at the same location where the corrected disputed lines are drawn.
|
|
27
29
|
|
|
28
|
-
The `-internal` layers handle internal state boundaries within India's claimed territory. `to-del
|
|
30
|
+
The `-internal` layers handle internal state boundaries within India's claimed territory. `to-del-*-internal` contains Chinese state boundaries (e.g., Tibet) that fall within India's claimed boundary. `to-add-osm-internal` contains Indian state boundaries (e.g., Ladakh, Jammu and Kashmir, Arunachal Pradesh) that overlap with the main deletion areas. `to-add-ne-internal` contains India's official J&K boundary (combining Jammu and Kashmir + PoK).
|
|
29
31
|
|
|
30
32
|
## Usage
|
|
31
33
|
|
package/index.js
CHANGED
|
@@ -13,8 +13,9 @@ const PMTILES_FILENAME = 'india_boundary_corrections.pmtiles.gz';
|
|
|
13
13
|
/**
|
|
14
14
|
* CDNs that need fallback to jsDelivr:
|
|
15
15
|
* - esm.sh, skypack: JS module transformers only, don't serve static files
|
|
16
|
+
* - unpkg.com: has problems with content-length headers and range requests for .pmtiles files
|
|
16
17
|
*/
|
|
17
|
-
const FALLBACK_CDNS = new Set(['esm.sh', 'skypack.dev', 'cdn.skypack.dev']);
|
|
18
|
+
const FALLBACK_CDNS = new Set(['esm.sh', 'skypack.dev', 'cdn.skypack.dev', 'unpkg.com']);
|
|
18
19
|
|
|
19
20
|
// Default fallback CDN (jsDelivr has multi-CDN architecture, more reliable)
|
|
20
21
|
export const DEFAULT_CDN_URL = `https://cdn.jsdelivr.net/npm/${PACKAGE_NAME}@${packageVersion}/${PMTILES_FILENAME}`;
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Auto-generated by scripts/generate-version.js - DO NOT EDIT
|
|
2
|
-
export const packageVersion = '0.
|
|
2
|
+
export const packageVersion = '0.2.0';
|