@mapgis/webclient-vue-cesium
mapgis webclient-vue-cesium
4,172
24
| Install | |
|---|---|
npm install @mapgis/webclient-vue-cesium |
|
| Latest Version: | 17.8.19 |
| Vue: | 2 |
| License: | Apache2 |
| Last Updated: | May 8, 2026 |
| Links: | GitHub · npm |
Maintainer: lidafengnpm
Webclient-Vue-Cesium
简介
webclient-vue-cesium 是基于 Cesium 的 vue 组件开发库,提供构建 Web 三维 GIS 应用的常用 vue 组件。
模块说明

特点
- 组件式风格
通过 Vue 的组件方式调用 layers, markers, popups, 并且使用同步 props synchronized props 来控制状态
- Vue 控制
面向对象编程:地图元素拥有 Vue 的生命周期,将原生地图事件封装成 Vue 的事件
安装
npm install --save @mapgis/webclient-vue-cesium
# 或者
yarn add @mapgis/webclient-vue-cesium
在 main.js 中全局引入组件
import "@mapgis/webclient-vue-ui/dist-libs/webclient-vue-ui.css";
import "@mapgis/webclient-vue-cesium/dist-libs/webclient-vue-cesium.css";
import MapgisUi from "@mapgis/webclient-vue-ui";
import Mapgis3d from "@mapgis/webclient-vue-cesium";
Vue.use(MapgisUi);
Vue.use(Mapgis3d);
cesium 库引入
webclient-vue-cesium 依赖
@mapgis/cesium,安装@mapgis/webclient-vue-cesium的时候会自动安装依赖@mapgis/cesium,@mapgis/cesium的包结构展示如下:
请将上述 cesium 目录拷贝到你的 vue 工程的 public 静态资源文件夹中,记录以下两个文件的路径:
# 主Cesium主体路径
public/cesium/dist/Cesium.js
# Cesium拓展插件路径
public/cesium/dist/webclient-cesium-plugin.min.js
通过在浏览器中 访问 http://localhost:xxxx/cesium/dist/Cesium.js 成功即可。
WebClient-Vue-Cesium 组件使用以上两个文件的方式如下所示:
<template>
<mapgis-web-scene
ref="webgloberef"
libPath="cesium/dist/Cesium.js"
pluginPath="cesium/dist/webclient-cesium-plugin.min.js"
>
<mapgis-3d-igs-tile-layer />
</mapgis-web-scene>
</template>
这里在 mapgis-web-scene 组件初始化的时候就需要传入libPath以及pluginPath 如果不传入则从司马云上自动下载对应的网络地址,没有互联网则无法下载。
相关链接
项目依赖
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 17.8.19 | 2.6.14 | Apache2 | |
| 17.8.9 | 2.6.14 | Apache2 | |
| 17.8.0 | 2.6.14 | Apache2 | |
| 17.6.28 | 2.6.14 | Apache2 | |
| 17.6.2 | 2.6.14 | Apache2 | |
| 17.6.0 | 2.6.14 | Apache2 | |
| 17.4.19 | 2.6.14 | Apache2 | |
| 17.4.18 | 2.6.14 | Apache2 | |
| 17.4.17 | 2.6.14 | Apache2 | |
| 17.4.16 | 2.6.14 | Apache2 | |
| 17.4.14 | 2.6.14 | Apache2 | |
| 17.4.13 | 2.6.14 | Apache2 | |
| 17.4.12 | 2.6.14 | Apache2 | |
| 17.4.10 | 2.6.14 | Apache2 | |
| 17.4.4 | 2.6.14 | Apache2 | |
| 17.4.2 | 2.6.14 | Apache2 | |
| 17.4.1 | 2.6.14 | Apache2 | |
| 17.4.0 | 2.6.14 | Apache2 | |
| 17.2.2 | 2.6.14 | Apache2 | |
| 17.2.1 | 2.6.14 | Apache2 | |
| 17.2.0 | 2.6.14 | Apache2 | |
| 17.0.5 | 2.6.14 | Apache2 | |
| 17.0.0 | 2.6.14 | Apache2 | |
| 16.8.7 | 2.6.14 | Apache2 | |
| 16.8.5 | 2.6.14 | Apache2 | |
| 16.8.4 | 2.6.14 | Apache2 | |
| 16.8.3 | 2.6.14 | Apache2 | |
| 16.8.2 | 2.6.14 | Apache2 | |
| 16.8.1 | 2.6.14 | Apache2 | |
| 16.6.1 | 2.6.14 | Apache2 |
Showing the latest 30 of 65. See every release on npm
Pre-releases (7)
| Version | Released | Vue | License |
|---|---|---|---|
| 10.5.5-6 | ^2.6.6 | Apache2 | |
| 10.5.5-5 | ^2.6.6 | Apache2 | |
| 10.5.5-3 | ^2.6.6 | Apache2 | |
| 10.5.5-2 | ^2.6.6 | Apache2 | |
| 10.5.5-1 | ^2.6.6 | Apache2 | |
| 10.5.4-1 | ^2.6.6 | ISC | |
| 1.0.0-beta | ISC |
