{"_id":"@caoguo/maplibre","_rev":"8-1a0d47ad8ae6557970be6ef8bde45603","name":"@caoguo/maplibre","dist-tags":{"latest":"0.0.8"},"versions":{"0.0.1":{"name":"@caoguo/maplibre","version":"0.0.1","_id":"@caoguo/maplibre@0.0.1","maintainers":[{"name":"uutan","email":"uutan@qq.com"}],"dist":{"shasum":"f3c56e5cb7423eea10a7b27416782d4de963ac3c","tarball":"https://registry.npmjs.org/@caoguo/maplibre/-/maplibre-0.0.1.tgz","fileCount":31,"integrity":"sha512-AOMBvETIdyFBc/BSVGlsQEran9Km0+UyHjuyYlhYsTb2NpXssOPIOlVr9fvvy4r2zh8u2ojvH0rQgKmgN4oNBA==","signatures":[{"sig":"MEUCIQDcJrvSjwIr+WIgyq7QS8cKNUY0q65bBG5lSxENI77PjgIgFJbaWy0GxGDzlaeqXntcC1244QoefmjRnr3w4xKBCEY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":423189},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./styles":{"types":"./dist/styles.d.ts","import":"./dist/styles.js","require":"./dist/styles.cjs"},"./offline":{"types":"./dist/offline/index.d.ts","import":"./dist/offline/index.js","require":"./dist/offline/index.cjs"},"./sources":{"types":"./dist/sources/index.d.ts","import":"./dist/sources/index.js","require":"./dist/sources/index.cjs"}},"scripts":{"test":"vitest run","build":"tsup","test:watch":"vitest"},"_npmUser":{"name":"uutan","email":"uutan@qq.com"},"deprecated":"This version was published with an invalid workspace:* dependency. Please upgrade to @caoguo/maplibre@0.0.2.","_npmVersion":"10.9.7","directories":{},"_nodeVersion":"22.22.2","dependencies":{"idb":"^8.0.0","maplibre-gl":"^4.7.1","@caoguo/theme":"workspace:*"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","jsdom":"^25.0.1","vitest":"^2.1.8"},"_npmOperationalInternal":{"tmp":"tmp/maplibre_0.0.1_1787272688702_0.5842492186199666","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@caoguo/maplibre","version":"0.0.2","_id":"@caoguo/maplibre@0.0.2","maintainers":[{"name":"uutan","email":"uutan@qq.com"}],"dist":{"shasum":"cee6483eec699993dc1b11306de46434d284b62f","tarball":"https://registry.npmjs.org/@caoguo/maplibre/-/maplibre-0.0.2.tgz","fileCount":31,"integrity":"sha512-IFRUN3n803v/MkEGXD+58xTi/k8DUKl/+7AVTQGQguSNp6CkpK5Pz82OyU/fnPdW7RpQqxEGv1Budjaygo4SJA==","signatures":[{"sig":"MEUCIFho1Ld0IClyG8BCreFZ93XXKbb1WtNWFUSUmAQG1jtpAiEAyW6BKW04W0YBVQyT5O81shnap0pn4BaVyIRL50yIAvo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":423182},"main":"./dist/index.cjs","type":"module","_from":"file:caoguo-maplibre-0.0.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./styles":{"types":"./dist/styles.d.ts","import":"./dist/styles.js","require":"./dist/styles.cjs"},"./offline":{"types":"./dist/offline/index.d.ts","import":"./dist/offline/index.js","require":"./dist/offline/index.cjs"},"./sources":{"types":"./dist/sources/index.d.ts","import":"./dist/sources/index.js","require":"./dist/sources/index.cjs"}},"scripts":{"test":"vitest run","build":"tsup","test:watch":"vitest"},"_npmUser":{"name":"uutan","email":"uutan@qq.com"},"_resolved":"/private/var/folders/br/f3pl5_3d7m5b9qz4ym4d_plw0000gn/T/7796b3e4970616b8adfb0491c7bef6ff/caoguo-maplibre-0.0.2.tgz","_integrity":"sha512-IFRUN3n803v/MkEGXD+58xTi/k8DUKl/+7AVTQGQguSNp6CkpK5Pz82OyU/fnPdW7RpQqxEGv1Budjaygo4SJA==","_npmVersion":"10.9.7","directories":{},"_nodeVersion":"22.22.2","dependencies":{"idb":"^8.0.0","maplibre-gl":"^4.7.1","@caoguo/theme":"0.0.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","jsdom":"^25.0.1","vitest":"^2.1.8"},"_npmOperationalInternal":{"tmp":"tmp/maplibre_0.0.2_1787273516078_0.09738236276852952","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@caoguo/maplibre","version":"0.0.3","keywords":["maplibre","maplibre-gl","map","gis","caoguo","webgl","tile-server","tianditu","wgs84","gcj02","cgcs2000","offline","service-worker","indexeddb","lod","shader","china"],"author":{"name":"caoguo","email":"caoguo@hb.cn"},"license":"Apache-2.0","_id":"@caoguo/maplibre@0.0.3","maintainers":[{"name":"uutan","email":"uutan@qq.com"}],"homepage":"https://github.com/caoguo/map/blob/main/packages/maplibre/README.md","bugs":{"url":"https://github.com/caoguo/map/issues"},"dist":{"shasum":"c7ed725d711003dd2387956df31ea9330372a880","tarball":"https://registry.npmjs.org/@caoguo/maplibre/-/maplibre-0.0.3.tgz","fileCount":32,"integrity":"sha512-AIfBNJHjgw/2Q2CofVTBu586j4HceC+UDeDWuXJd7c9Yg4u+/xikJVAvcVopsKVDD5AEUwIwVnPR4VLHk4uT5g==","signatures":[{"sig":"MEUCIQD1WW7vQVH4KKh/NxenO9hmGR4e9MjgKjxqMGSf948CBgIgM7SReA1Y7N2wyWHwqgXw+EXz/aQtrYgd6LxW7xcoZpU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":427587},"main":"./dist/index.cjs","type":"module","_from":"file:caoguo-maplibre-0.0.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./styles":{"types":"./dist/styles.d.ts","import":"./dist/styles.js","require":"./dist/styles.cjs"},"./offline":{"types":"./dist/offline/index.d.ts","import":"./dist/offline/index.js","require":"./dist/offline/index.cjs"},"./sources":{"types":"./dist/sources/index.d.ts","import":"./dist/sources/index.js","require":"./dist/sources/index.cjs"}},"scripts":{"test":"vitest run","build":"tsup","test:watch":"vitest"},"_npmUser":{"name":"uutan","email":"uutan@qq.com"},"_resolved":"/private/var/folders/br/f3pl5_3d7m5b9qz4ym4d_plw0000gn/T/f60388d7ffd6260159990dbfabd9748b/caoguo-maplibre-0.0.3.tgz","_integrity":"sha512-AIfBNJHjgw/2Q2CofVTBu586j4HceC+UDeDWuXJd7c9Yg4u+/xikJVAvcVopsKVDD5AEUwIwVnPR4VLHk4uT5g==","repository":{"url":"git+https://github.com/caoguo/map.git","type":"git","directory":"packages/maplibre"},"_npmVersion":"10.9.7","description":"草果地图引擎核心 — 基于 MapLibre GL 的国内坐标系/离线瓦片/辉光/LOD 一体化封装","directories":{},"_nodeVersion":"22.22.2","dependencies":{"idb":"^8.0.0","maplibre-gl":"^4.7.1","@caoguo/theme":"0.0.2"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","jsdom":"^25.0.1","vitest":"^2.1.8"},"_npmOperationalInternal":{"tmp":"tmp/maplibre_0.0.3_1787276957907_0.7252495559514507","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@caoguo/maplibre","version":"0.0.5","keywords":["maplibre","maplibre-gl","map","gis","caoguo","webgl","tile-server","tianditu","wgs84","gcj02","cgcs2000","offline","service-worker","indexeddb","lod","shader","china"],"author":{"name":"caoguo","email":"caoguo@hb.cn"},"license":"Apache-2.0","_id":"@caoguo/maplibre@0.0.5","maintainers":[{"name":"uutan","email":"uutan@qq.com"}],"homepage":"https://github.com/caoguo/map/blob/main/packages/maplibre/README.md","bugs":{"url":"https://github.com/caoguo/map/issues"},"dist":{"shasum":"08b6bc69eb11510ca2783492f62e7fb377947b14","tarball":"https://registry.npmjs.org/@caoguo/maplibre/-/maplibre-0.0.5.tgz","fileCount":32,"integrity":"sha512-kpVWJgfwfZnlh3nVSpFdQgCLKYC9yqQKAqlytlNLoioM/d+Jby97dUaxdQJmUOJkI5axT4la7XPs7f0CefF5mw==","signatures":[{"sig":"MEUCIQDujCbZxIwu+pZn81xU8WHU15U+yKt4aO9qaXkRWFdqIgIgRX2fUHjhwiJQ+QZx5BtFT8qkXgdjGqjELyaNWEjMSjU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":522534},"main":"./dist/index.cjs","type":"module","_from":"file:caoguo-maplibre-0.0.5.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./styles":{"types":"./dist/styles.d.ts","import":"./dist/styles.js","require":"./dist/styles.cjs"},"./offline":{"types":"./dist/offline/index.d.ts","import":"./dist/offline/index.js","require":"./dist/offline/index.cjs"},"./sources":{"types":"./dist/sources/index.d.ts","import":"./dist/sources/index.js","require":"./dist/sources/index.cjs"}},"scripts":{"test":"vitest run","build":"tsup","test:watch":"vitest"},"_npmUser":{"name":"uutan","email":"uutan@qq.com"},"_resolved":"/private/var/folders/br/f3pl5_3d7m5b9qz4ym4d_plw0000gn/T/513a599dc161b8eddc5d971878d8a8ef/caoguo-maplibre-0.0.5.tgz","_integrity":"sha512-kpVWJgfwfZnlh3nVSpFdQgCLKYC9yqQKAqlytlNLoioM/d+Jby97dUaxdQJmUOJkI5axT4la7XPs7f0CefF5mw==","repository":{"url":"git+https://github.com/caoguo/map.git","type":"git","directory":"packages/maplibre"},"_npmVersion":"10.9.7","description":"草果地图引擎核心 — 基于 MapLibre GL 的国内坐标系/离线瓦片/辉光/LOD 一体化封装","directories":{},"_nodeVersion":"22.22.2","dependencies":{"idb":"^8.0.0","maplibre-gl":"^4.7.1","@caoguo/theme":"0.0.4"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","jsdom":"^25.0.1","vitest":"^2.1.8"},"_npmOperationalInternal":{"tmp":"tmp/maplibre_0.0.5_1787367058017_0.6607645893125411","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@caoguo/maplibre","version":"0.0.6","keywords":["maplibre","maplibre-gl","map","gis","caoguo","webgl","tile-server","tianditu","wgs84","gcj02","cgcs2000","offline","service-worker","indexeddb","lod","shader","china"],"author":{"name":"caoguo","email":"caoguo@hb.cn"},"license":"Apache-2.0","_id":"@caoguo/maplibre@0.0.6","maintainers":[{"name":"uutan","email":"uutan@qq.com"}],"homepage":"https://github.com/caoguo-map/maplibre/blob/main/packages/maplibre/README.md","bugs":{"url":"https://github.com/caoguo-map/maplibre/issues"},"dist":{"shasum":"71fdb24f24301a1f12d4b75a08f4101f8cbf050f","tarball":"https://registry.npmjs.org/@caoguo/maplibre/-/maplibre-0.0.6.tgz","fileCount":32,"integrity":"sha512-WcwVR8QC1+9g3w23OQjHwkYyBLub2TNwtTnswvpr3Emx1XOHz+ygD7R6o1Izdvx8i7iBNUMN0d9xcP6CuTA8Ng==","signatures":[{"sig":"MEUCIClXK54+wCgfJVfObs+YAVjmM2FbrmxPqqyQnmw1N4q2AiEAsPkTWb5ldYRySBNH5faBxkfiLOnsoSH1DpvNpgnEEhA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":538489},"main":"./dist/index.cjs","type":"module","_from":"file:caoguo-maplibre-0.0.6.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./styles":{"types":"./dist/styles.d.ts","import":"./dist/styles.js","require":"./dist/styles.cjs"},"./offline":{"types":"./dist/offline/index.d.ts","import":"./dist/offline/index.js","require":"./dist/offline/index.cjs"},"./sources":{"types":"./dist/sources/index.d.ts","import":"./dist/sources/index.js","require":"./dist/sources/index.cjs"}},"scripts":{"test":"vitest run","build":"tsup","test:watch":"vitest"},"_npmUser":{"name":"uutan","email":"uutan@qq.com"},"_resolved":"/private/var/folders/br/f3pl5_3d7m5b9qz4ym4d_plw0000gn/T/d3d368a4a509eef36f578deb68bd6ab6/caoguo-maplibre-0.0.6.tgz","_integrity":"sha512-WcwVR8QC1+9g3w23OQjHwkYyBLub2TNwtTnswvpr3Emx1XOHz+ygD7R6o1Izdvx8i7iBNUMN0d9xcP6CuTA8Ng==","repository":{"url":"git+https://github.com/caoguo-map/maplibre.git","type":"git","directory":"packages/maplibre"},"_npmVersion":"10.9.7","description":"草果地图引擎核心 — 基于 MapLibre GL 的国内坐标系/离线瓦片/辉光/LOD 一体化封装","directories":{},"_nodeVersion":"22.22.2","dependencies":{"idb":"^8.0.0","maplibre-gl":"^4.7.1","@caoguo/theme":"0.0.11"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","jsdom":"^25.0.1","vitest":"^2.1.8"},"_npmOperationalInternal":{"tmp":"tmp/maplibre_0.0.6_1787376032575_0.07385145405788496","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@caoguo/maplibre","version":"0.0.7","keywords":["maplibre","maplibre-gl","map","gis","caoguo","webgl","tile-server","tianditu","wgs84","gcj02","cgcs2000","offline","service-worker","indexeddb","lod","shader","china"],"author":{"name":"caoguo","email":"caoguo@hb.cn"},"license":"Apache-2.0","_id":"@caoguo/maplibre@0.0.7","maintainers":[{"name":"uutan","email":"uutan@qq.com"}],"homepage":"https://github.com/caoguo-map/maplibre/blob/main/packages/maplibre/README.md","bugs":{"url":"https://github.com/caoguo-map/maplibre/issues"},"dist":{"shasum":"c260c9b1cb752e1c10f5724ec86998bda3a843d4","tarball":"https://registry.npmjs.org/@caoguo/maplibre/-/maplibre-0.0.7.tgz","fileCount":80,"integrity":"sha512-U2aoOQzht9wGOzm9iPrgD/muRMAv1YPp5lTcPoDWbVCCjiNweaOC/hFONVi6HqQBz6MnNB86ZCD9hlnAnGpCng==","signatures":[{"sig":"MEUCIQCUKrefcHKMH4+FH+qCX0YPFwG8cCjjCGflCwkayRoJkAIgCRPtaarKrqSf5XHrUcaQD307TZri7hqLDAGE9IUm3Jg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":660625},"main":"./dist/index.cjs","type":"module","_from":"file:caoguo-maplibre-0.0.7.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./crs":{"types":"./dist/crs/index.d.ts","import":"./dist/crs/index.js","require":"./dist/crs/index.cjs"},"./lod":{"types":"./dist/lod/index.d.ts","import":"./dist/lod/index.js","require":"./dist/lod/index.cjs"},"./styles":{"types":"./dist/styles.d.ts","import":"./dist/styles.js","require":"./dist/styles.cjs"},"./offline":{"types":"./dist/offline/index.d.ts","import":"./dist/offline/index.js","require":"./dist/offline/index.cjs"},"./shaders":{"types":"./dist/shaders/index.d.ts","import":"./dist/shaders/index.js","require":"./dist/shaders/index.cjs"},"./sources":{"types":"./dist/sources/index.d.ts","import":"./dist/sources/index.js","require":"./dist/sources/index.cjs"},"./terrain":{"types":"./dist/terrain.d.ts","import":"./dist/terrain.js","require":"./dist/terrain.cjs"},"./controls":{"types":"./dist/controls/index.d.ts","import":"./dist/controls/index.js","require":"./dist/controls/index.cjs"},"./sourceUtils":{"types":"./dist/sourceUtils.d.ts","import":"./dist/sourceUtils.js","require":"./dist/sourceUtils.cjs"}},"scripts":{"test":"vitest run","build":"tsup","test:watch":"vitest"},"_npmUser":{"name":"uutan","email":"uutan@qq.com"},"_resolved":"/private/var/folders/br/f3pl5_3d7m5b9qz4ym4d_plw0000gn/T/393f97eea5838afb40e379d66a85be0e/caoguo-maplibre-0.0.7.tgz","_integrity":"sha512-U2aoOQzht9wGOzm9iPrgD/muRMAv1YPp5lTcPoDWbVCCjiNweaOC/hFONVi6HqQBz6MnNB86ZCD9hlnAnGpCng==","repository":{"url":"git+https://github.com/caoguo-map/maplibre.git","type":"git","directory":"packages/maplibre"},"_npmVersion":"10.9.7","description":"草果地图引擎核心 — 基于 MapLibre GL 的国内坐标系/离线瓦片/辉光/LOD 一体化封装","directories":{},"_nodeVersion":"22.22.2","dependencies":{"idb":"^8.0.0","maplibre-gl":"^4.7.1","@caoguo/theme":"0.0.11"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","jsdom":"^25.0.1","vitest":"^2.1.8"},"_npmOperationalInternal":{"tmp":"tmp/maplibre_0.0.7_1787382612015_0.7765598908291635","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"@caoguo/maplibre","version":"0.0.8","description":"草果地图引擎核心 — 基于 MapLibre GL 的国内坐标系/离线瓦片/辉光/LOD 一体化封装","license":"Apache-2.0","author":{"name":"caoguo","email":"caoguo@hb.cn"},"homepage":"https://github.com/caoguo-map/maplibre/blob/main/packages/maplibre/README.md","repository":{"type":"git","url":"git+https://github.com/caoguo-map/maplibre.git","directory":"packages/maplibre"},"bugs":{"url":"https://github.com/caoguo-map/maplibre/issues"},"keywords":["maplibre","maplibre-gl","map","gis","caoguo","webgl","tile-server","tianditu","wgs84","gcj02","cgcs2000","offline","service-worker","indexeddb","lod","shader","china"],"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./styles":{"types":"./dist/styles.d.ts","import":"./dist/styles.js","require":"./dist/styles.cjs"},"./sources":{"types":"./dist/sources/index.d.ts","import":"./dist/sources/index.js","require":"./dist/sources/index.cjs"},"./offline":{"types":"./dist/offline/index.d.ts","import":"./dist/offline/index.js","require":"./dist/offline/index.cjs"},"./controls":{"types":"./dist/controls/index.d.ts","import":"./dist/controls/index.js","require":"./dist/controls/index.cjs"},"./crs":{"types":"./dist/crs/index.d.ts","import":"./dist/crs/index.js","require":"./dist/crs/index.cjs"},"./lod":{"types":"./dist/lod/index.d.ts","import":"./dist/lod/index.js","require":"./dist/lod/index.cjs"},"./shaders":{"types":"./dist/shaders/index.d.ts","import":"./dist/shaders/index.js","require":"./dist/shaders/index.cjs"},"./terrain":{"types":"./dist/terrain.d.ts","import":"./dist/terrain.js","require":"./dist/terrain.cjs"},"./sourceUtils":{"types":"./dist/sourceUtils.d.ts","import":"./dist/sourceUtils.js","require":"./dist/sourceUtils.cjs"}},"dependencies":{"idb":"^8.0.0","maplibre-gl":"^4.7.1","@caoguo/theme":"0.0.12"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"devDependencies":{"jsdom":"^25.0.1","tsup":"^8.3.5","vitest":"^2.1.8"},"scripts":{"build":"tsup","test":"vitest run","test:watch":"vitest"},"_id":"@caoguo/maplibre@0.0.8","_integrity":"sha512-L2K3zfeBxDTtRr3nezDlS9887TlrO/TiJMOP1zQUcNW6kP8heZeLdJMK1WUD7l8MsgDG92ambJsZhFsq6BFTfA==","_resolved":"/private/var/folders/br/f3pl5_3d7m5b9qz4ym4d_plw0000gn/T/ff7539cf58390105dfdb49b3f78469d0/caoguo-maplibre-0.0.8.tgz","_from":"file:caoguo-maplibre-0.0.8.tgz","_nodeVersion":"22.22.2","_npmVersion":"10.9.7","dist":{"integrity":"sha512-L2K3zfeBxDTtRr3nezDlS9887TlrO/TiJMOP1zQUcNW6kP8heZeLdJMK1WUD7l8MsgDG92ambJsZhFsq6BFTfA==","shasum":"032d660babf939b2aa31227cf1108e4b147cccb8","tarball":"https://registry.npmjs.org/@caoguo/maplibre/-/maplibre-0.0.8.tgz","fileCount":80,"unpackedSize":662843,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEzZYIdWPkesxSfFhvgXizJiYla151psqT3eNHx56DOgAiBYZ6ShnhLEWOnDmK/31smyzHuu4mbtpzgdDRNiYXMnew=="}]},"_npmUser":{"name":"uutan","email":"uutan@qq.com"},"directories":{},"maintainers":[{"name":"uutan","email":"uutan@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/maplibre_0.0.8_1787897797344_0.8117939214530803"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-21T00:38:08.585Z","modified":"2026-08-28T06:16:37.672Z","0.0.1":"2026-08-21T00:38:08.838Z","0.0.2":"2026-08-21T00:51:56.246Z","0.0.3":"2026-08-21T01:49:18.056Z","0.0.5":"2026-08-22T02:50:58.157Z","0.0.6":"2026-08-22T05:20:32.767Z","0.0.7":"2026-08-22T07:10:12.160Z","0.0.8":"2026-08-28T06:16:37.487Z"},"bugs":{"url":"https://github.com/caoguo-map/maplibre/issues"},"author":{"name":"caoguo","email":"caoguo@hb.cn"},"license":"Apache-2.0","homepage":"https://github.com/caoguo-map/maplibre/blob/main/packages/maplibre/README.md","keywords":["maplibre","maplibre-gl","map","gis","caoguo","webgl","tile-server","tianditu","wgs84","gcj02","cgcs2000","offline","service-worker","indexeddb","lod","shader","china"],"repository":{"type":"git","url":"git+https://github.com/caoguo-map/maplibre.git","directory":"packages/maplibre"},"description":"草果地图引擎核心 — 基于 MapLibre GL 的国内坐标系/离线瓦片/辉光/LOD 一体化封装","maintainers":[{"name":"uutan","email":"uutan@qq.com"}],"readme":"# @caoguo/maplibre\n\n> 草果地图引擎核心 — 基于 MapLibre GL 的国内坐标系/离线瓦片/辉光/LOD 一体化封装\n\n[![npm version](https://img.shields.io/npm/v/@caoguo/maplibre.svg)](https://www.npmjs.com/package/@caoguo/maplibre)\n[![license](https://img.shields.io/npm/l/@caoguo/maplibre.svg)](LICENSE)\n\n## 安装\n\n```bash\nnpm install @caoguo/maplibre @caoguo/theme\n# 或\npnpm add @caoguo/maplibre @caoguo/theme\n```\n\nPeer / 运行时依赖：`maplibre-gl@^4.7.1`、`@caoguo/theme`。\n\n## 功能\n\n- **国内坐标系**：GCJ-02 / CGCS2000 / WGS84 自动纠偏（误差 < 50m / 0.5m）。\n- **天地图底图**：内置 tianditu WMTS 一键接入（需 token）。\n- **离线瓦片**：基于 IndexedDB 的瓦片存储 + `caoguo-offline://` 协议层短路，无需联网即可渲染。\n- **辉光管线**：Custom WebGL Shader，渲染管线/路网/水系辉光效果。\n- **自适应 LOD**：按缩放级别切换数据精度等级，节省渲染开销。\n- **控件**：比例尺 + 实时坐标（`ScaleControl`）、暗/亮主题切换（`ThemeSwitcher`）。\n- **样式**：内置 OSM 矢量底图样式 + 主题切换无闪烁（保留视图 diff）。\n\n## 快速开始\n\n```ts\nimport { Map } from '@caoguo/maplibre';\nimport { darkStyle } from '@caoguo/theme';\n\n// 5 行代码渲染地图\nconst map = new Map({\n  container: 'map',\n  center: [114.3055, 30.5928], // 武汉\n  zoom: 12,\n  style: darkStyle,\n  dataCRS: 'GCJ02',           // 业务数据为高德坐标系\n});\n\n// 叠加 GCJ-02 数据（入图前自动纠偏）\nconst [lng, lat] = map.transformToMap(114.3055, 30.5928);\n```\n\n### 切换为天地图底图\n\n```ts\nmap.useTianditu('vec', {\n  token: 'YOUR_TIANDITU_TOKEN', // 必填，缺失会抛 MissingTokenError\n  subdomains: ['t0', 't1', 't2', 't3', 't4', 't5', 't6', 't7'],\n});\n```\n\n### 离线瓦片（IndexedDB）\n\n```ts\nmap.enableOffline();                  // 注册 caoguo-offline:// 协议\nawait map.packGeoJSON('my-source', {  // 把 GeoJSON 打包到瓦片网格\n  type: 'FeatureCollection',\n  features: [/* ... */],\n}, { maxZoom: 14 });\n\nconst tiles = map.offlineTiles('my-source');\nmap.addSource('my-source', { type: 'geojson', data: 'caoguo-offline://my-source/0/0/0.pbf' });\n```\n\n### 辉光管线\n\n```ts\nmap.addGlowLayer({\n  id: 'pipeline-glow',\n  lines: [{ id: 'l1', coords: [[lng, lat], [lng2, lat2]], type: 'gas' }],\n  colors: { gas: [1, 0.4, 0.2], water: [0.3, 0.6, 1] },\n  baseWidth: 6,\n  passes: 3,\n});\n```\n\n### LOD 控制器\n\n```ts\nmap.addLodController(\n  [\n    { from: 0,  to: 8,  data: () => fetchLowDetail() },\n    { from: 8,  to: 12, data: () => fetchMidDetail() },\n    { from: 12, to: 22, data: () => fetchHighDetail() },\n  ],\n  (e) => map.getSource('layer')?.setData(e.current.data)\n);\n```\n\n## API 概览\n\n| 导出 | 说明 |\n|------|------|\n| `Map` (default + named) | 主类，统一入口 |\n| `maplibregl` | 透传 MapLibre 原生命名空间 |\n| `MapOptions` / `MapInstance` | 类型 |\n| `CRS` / `LngLat` / `createTransformer` / `toWgs84` | 坐标系 |\n| `addTiandituBaseMap` / `tiandituStyle` / `MissingTokenError` / `TiandituOptions` | 天地图 |\n| `createDefaultStore` / `registerOfflineProtocol` / `offlineTileUrl` / `packGeoJSONToStore` / `TileStoreBackend` | 离线 |\n| `ScaleControl` / `ThemeSwitcher` | 控件 |\n| `CustomLineLayer` / `GlowLine` | 辉光 |\n| `LodController` / `LodLevel` / `LodChangeEvent` | LOD |\n\n## 浏览器 / 环境要求\n\n- 现代浏览器（Chrome 90+ / Firefox 88+ / Edge 90+）\n- 引擎内部 `import 'maplibre-gl/dist/maplibre-gl.css'`，需配合 Vite/Webpack 等打包器\n- 纯算法模块（坐标系/图算法）可在 Node 环境测试\n\n## 许可\n\nApache-2.0","readmeFilename":"README.md"}