@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访问图层的方式

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.160latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.160
1.0.151
1.0.140
1.0.130
1.0.120
1.0.110
1.0.100
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

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

Weekly Downloads

0

Version

1.0.16

License

none

Unpacked Size

806 kB

Total Files

32

Last publish

Collaborators

  • supershuu