🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

gd-cesium-analysis-tools

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gd-cesium-analysis-tools

国地地图基础分析工具

latest
npmnpm
Version
0.0.4
Version published
Weekly downloads
8
-11.11%
Maintainers
1
Weekly downloads
 
Created
Source

gd-cesium-maplib 使用说明

version

1.组件安装

# 安装组件
npm install gd-cesium-analysis-tools -S

# 安装所需依赖 
npm install vue axios element-ui js-base64 -S

2.Cesium态资源包处理

把态资源包Cesium包拷贝到项目工程的静态目录public下。

3.引入Cesium包及CESIUM_BASE_URL

修改项目工程的index.html文件,加入以下代码:

<script src="./Cesium/Cesium.js"></script>
<script>window.CESIUM_BASE_URL = './Cesium'</script>

4.注册组件

import GdCesiumAnalysisTools from 'gd-cesium-analysis-tools'
import 'gd-cesium-analysis-tools/index.css'
// 注册element-ui组件库
import ElementUI from 'element-ui'
import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(GdCesiumAnalysisTools)
Vue.use(ElementUI, { zhLocale })

5.使用组件

在需要使用组件的vue文件里直接使用analysisTools组件

<template>
  <div>
    <analysisTools />
  </div>
</template>


### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

Keywords

cesium

FAQs

Package last updated on 15 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts