@galaxyproject/openlayers

中文文档
0.0.9发布于 2026/04/16MITES Module零依赖近 30 天下载 1.2万

Galaxy OpenLayers is a visualization that implements features of OL10 within Galaxy Charts JavaScript-based library for the [Galaxy Project](https://github.com/galaxyprojec

原始使用文档

Galaxy OpenLayers

Galaxy OpenLayers is a visualization that implements features of OL10 within Galaxy Charts JavaScript-based library for the Galaxy Project platform.

Make Targets

Run all commands from packages/openlayers.

  • make deps installs package dependencies with npm.
  • make deps-update bumps dependencies to the latest releases tracked in package.json and package-lock.json.
  • make test runs the Vitest unit tests followed by the Playwright e2e tests.
  • make test-unit runs only the Vitest unit tests.
  • make test-e2e runs only the Playwright e2e tests (requires make dev running in another terminal).
  • make test-e2e-update regenerates the Playwright snapshot baselines under test-data/.
  • make build builds the production bundle into static/.
  • make check runs tests and then builds.
  • make dev starts the Vite dev server.

Local Dev

make dev runs the Vite dev server. With no arguments it serves the visualization with a __test__ dataset id, which Plugin.vue resolves to a sample GeoJSON file (http://cdn.jsdelivr.net/gh/galaxyproject/galaxy-test-data/1.geojson) so you can iterate without a running Galaxy.

cd packages/openlayers
make dev

To test against a real Galaxy dataset, pass GALAXY_DATASET_ID (and optionally GALAXY_ROOT / GALAXY_KEY):

make dev GALAXY_DATASET_ID=<dataset-id>
make dev GALAXY_DATASET_ID=<dataset-id> GALAXY_ROOT=http://127.0.0.1:8080
make dev GALAXY_DATASET_ID=<dataset-id> GALAXY_ROOT=https://usegalaxy.org GALAXY_KEY=<api-key>

版本与发布记录

@galaxyproject/openlayers 共发布 10 个版本,首次发布于 2024/11/27;过去 12 个月发布了 3 个版本。

版本发布日期距今
0.0.9latest2026/04/166 个月前
0.0.82026/04/097 个月前
0.0.72026/04/097 个月前
0.0.62025/05/291.5 年前
0.0.52025/05/011.5 年前
0.0.42025/03/171.7 年前

关于 @galaxyproject/openlayers 的常见问题

@galaxyproject/openlayers 是什么?

Galaxy OpenLayers is a visualization that implements features of OL10 within Galaxy Charts JavaScript-based library for the [Galaxy Project](https://github.com/galaxyprojec

如何安装 @galaxyproject/openlayers?

在项目目录运行 npm install @galaxyproject/openlayers,或使用 pnpm add / yarn add / bun add。

@galaxyproject/openlayers 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/galaxyproject__openlayers 是否存在。

@galaxyproject/openlayers 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@galaxyproject/openlayers 可以商用吗?

@galaxyproject/openlayers 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@galaxyproject/openlayers 的下载量有多少?

根据 npm 官方下载统计,@galaxyproject/openlayers 在 2026/10/16 – 2026/11/14 这 30 天内被下载 11,833 次,日均约 394 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@galaxyproject/openlayers 还在维护吗?

最新版本 0.0.9 发布于 2026/04/16(6 个月前);至今共发布 10 个版本,其中过去 12 个月发布了 3 个;首次发布于 2024/11/27。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。