npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dingnl/ltvis-globe

v0.0.2

Published

探测设备三维地球绘图组件:面向气象、电力、应急,把天气雷达、气象卫星和地面分析格点叠到地球上

Readme


调用侧自己建地球。本包创建图层,用 addTo 叠上去。解析走 @dingnl/ltvis-globe/parse。


安装

公开包装在 npm。仓库地址:https://registry.npmjs.org/。包页:https://www.npmjs.com/package/@dingnl/ltvis-globe

pnpm add @dingnl/ltvis-globe

也可用 npm i @dingnl/ltvis-globe 或 yarn add @dingnl/ltvis-globe。本库不创建地球,底图与控件由调用侧自己铺。本机若默认走镜像,在项目 .npmrc 写 @dingnl:registry=https://registry.npmjs.org/。

调用

import { parse } from '@dingnl/ltvis-globe/parse'
import {
    createCloudLayer,
    createDwlLayer,
    createEra5Layer,
    createEra5WindLayer,
    createMosaicLayer,
    createQuantLayer,
    createRadarGridLayer,
    createRadarPolarLayer,
    createStiLayer
} from '@dingnl/ltvis-globe/layer'

const quant = await parse(buffer, { format: 'nc', product: 'olr' })
createQuantLayer({ data: quant.values, product: 'olr' }).addTo(globe)

const mosaic = await parse(buffer, { format: 'diamond', product: 'dcr' })
createMosaicLayer({ data: mosaic.values, product: 'dcr' }).addTo(globe)

const cloud = await parse(buffer, { format: 'awx', product: 'ir' })
createCloudLayer({ data: cloud.values, product: 'ir' }).addTo(globe)

const grid = await parse(buffer, { format: 'rstm', product: 'cr' })
createRadarGridLayer({ data: grid.values, product: 'cr', site: grid.site }).addTo(globe)

const polar = await parse(buffer, { format: 'rstm', product: 'r' })
createRadarPolarLayer({ data: polar.values, product: 'r', site: polar.site }).addTo(globe)

const sti = await parse(buffer, { format: 'rstm', product: 'sti' })
createStiLayer({ data: sti.values, product: 'sti', site: sti.site }).addTo(globe)

const dwl = await parse(buffer, { format: 'dwlp', product: 'radial' })
createDwlLayer({ data: dwl.values, product: 'radial', site: dwl.site }).addTo(globe)

const era5 = await parse(buffer, { format: 'era5', product: 't2m' })
createEra5Layer({ data: era5.values, product: 't2m' }).addTo(globe)

| 方法 | 用途 | | :------------: | ---------------------- | | create*Layer | 用解析结果创建图层 | | addTo | 叠到你自己的地球上 | | setOption | 换记录或显示参数后重绘 | | remove | 从地球卸下图层 |

一条图层一次画一个产品。公开包装有版权水印,浏览器控制台会打印版权声明和联系方式,没有关闭这两项的接口。未实现的工厂不占入口。

版权与授权

npm 上的公开包会在图容器上、下、左、右任意一边放一个正向的 Ltvis / DINGNL 字标并沿该边移动。打开页面时,浏览器控制台会打印版本、编译日期、版权声明、文档地址和联系方式。create*Layer、addTo 以及其它公开 API 不能关闭水印或这条控制台信息,也不存在 setLicense 一类接口。

需要无水印版本时,向 dingnl 申请授权。获准后会另行交付离线安装包,用该目录覆盖 @dingnl/ltvis-globe 即可。调用代码与公开包相同。授权包图上无水印,控制台会打印授权对象、版本、版权声明和联系方式,须保留。授权包不得转借、转售,也不得改写版权信息后对外提供。

申请授权:邮件 [email protected],或 QQ 1981261270,备注 ltvis-globe。


文档与示例

在线文档与示例:https://www.dingnl.com/globe/

产品中心:https://www.dingnl.com


联系作者

接入、定制或使用中遇到问题,欢迎直接联系作者。

示例效果与接入说明见文档站。邮件可附复现数据或截图;即时沟通请加 QQ,备注 ltvis-globe。

| 方式 | 账号 | | :-----: | --------------------------------------------- | | 📧 邮箱 | [email protected] | | 💬 QQ | 1981261270 |