2022-11-02 03:39:57 +08:00
# @cesium/widgets
2023-10-25 00:15:59 +08:00
[](https://github.com/CesiumGS/cesium/actions/workflows/dev.yml)
2022-12-10 01:33:34 +08:00
[](https://www.npmjs.com/package/@cesium/widgets)
2022-11-02 03:39:57 +08:00
[](https://cesium.com/learn/)
2022-12-15 23:02:38 +08:00

2022-12-14 22:55:08 +08:00
2022-12-10 01:33:34 +08:00
[CesiumJS ](../../README.md ) is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin. It uses WebGL for hardware-accelerated graphics, and is cross-platform, cross-browser, and tuned for dynamic-data visualization.
2022-11-02 03:39:57 +08:00
2023-01-24 02:46:45 +08:00
`@cesium/widgets` is a widgets library for use with CesiumJS—including the `CesiumViewer` widget plus widgets for common tasks such as animation, base layer selection and geocoding.
2022-11-10 03:01:29 +08:00
2023-01-19 22:30:18 +08:00
---
[**Examples** ](https://sandcastle.cesium.com/ ) :earth_asia: [**Docs** ](https://cesium.com/learn/cesiumjs-learn/ ) :earth_americas: [**Website** ](https://cesium.com/cesiumjs ) :earth_africa: [**Forum** ](https://community.cesium.com/ ) :earth_asia: [**User Stories** ](https://cesium.com/user-stories/ )
---
2022-11-02 03:39:57 +08:00
## Install
`@cesium/widgets` is published as ES modules with full typing support.
Install with npm
```sh
npm install @cesium/widgets --save
```
Or, install with yarn
```sh
yarn add @cesium/widgets
```
## Usage
2023-01-19 22:30:18 +08:00
Import individual modules to benefit from tree shaking optimizations through most build tools:
2022-11-02 03:39:57 +08:00
```js
import { Viewer } from "@cesium/widgets";
import "@cesium/widgets/Source/widgets.css";
const viewer = new Viewer("cesiumContainer");
```
2022-11-10 03:01:29 +08:00
See our [Quickstart Guide ](https://cesium.com/learn/cesiumjs-learn/cesiumjs-quickstart/ ) for more information on getting a CesiumJS app up and running.
2022-11-02 03:39:57 +08:00
## Community
Have questions? Ask them on the [community forum ](https://community.cesium.com/ ).
Interested in contributing? See [CONTRIBUTING.md ](../../CONTRIBUTING.md ). :heart:
2023-01-24 03:06:41 +08:00
## License
2022-11-02 03:39:57 +08:00
[Apache 2.0 ](http://www.apache.org/licenses/LICENSE-2.0.html ). CesiumJS is free for both commercial and non-commercial use.