@front-end-framework/cesium-utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.16 • Public • Published

@front-end-framework/cesium-utils v1.0.7


@front-end-framework/cesium-utils是基于cesiumJs封装的,主要是为了实现快速开发,减少一些重复的配置操作代码。


Installation

npm install --save-dev cesium # 安装cesium
npm install --save-dev @front-end-framework/cesium-utils #安装cesium-utils

Getting Started

初始化cesium-利用自定义图层的方式

const layerUrl1 = "https://xxxx.." // 自定义图层1的服务器地址
const layerUrl2 = "https://xxxx.." // 自定义图层2的服务器地址
const terrain = "https://xxxx..." // 自定义地形的服务器地址
let viewer = await initUrlTemplateImageryProviderViewer('cesiumMap', [
				{
					url: buildModuleUrl(urlGlobal) + '/{z}/{x}/{y}.jpg',
					maximumLevel: 2
				},
				{
					url: buildModuleUrl(urlFDu) + '/{z}/{x}/{y}.jpg',
					maximumLevel: 11
				},
			], terrain, {}, () => {}, () => {})
let rain = setRainEffect(viewer, {
    vrain: () => 30
},"test");
viewer.scene.postProcessStages.add(rain);

初始化cesium-利用在线ion访问图层的方式

Package Sidebar

Install

npm i @front-end-framework/cesium-utils

Weekly Downloads

1

Version

1.0.16

License

none

Unpacked Size

806 kB

Total Files

32

Last publish

Collaborators

  • supershuu