vue-cesium

repository·dev·Indexed 23 days ago

https://github.com/zouyaoji/vue-cesium

A Vue 3.x component library designed to simplify the development of 3D geospatial applications using CesiumJS. Built with the Vue 3 Composition API and TypeScript, it supports official CesiumJS as well as third-party platforms like SuperMap iClient3D for WebGL, Earth SDK, Mars3D, and DC-SDK. The library includes specialized components for viewers, measurements, drawings, and imagery/terrain providers, along with a default theme package called vue-cesium-theme-default.

Tokens
185.8K
Snippets
120
Records
922
Agent score
83%

What's inside vue-cesium

  1. Overview of Vue for Cesium

    dev

    Vue for Cesium is a component library for CesiumJS built specifically for Vue 3.x developers. It leverages the Vue 3 Composition API and is written in TypeScript to provide a reactive, component-based way to build 3D geospatial applications.

    Key features:

    • Built with Vue 3.0 Composition API.
    • Fully typed with TypeScript.
    • Supports the official CesiumJS as well as several third-party Cesium-based platforms.
  2. Use VcCollectionPoint to render a collection of points

    dev

    VcCollectionPoint is used to load a renderable collection of points, equivalent to a Cesium.PointPrimitiveCollection.

    For high-performance rendering of massive amounts of points, it is recommended to use the points prop instead of nesting multiple vc-point components. The points prop accepts an array of objects where each object follows the same attribute structure as the vc-point component.

  3. Use VcCollectionPolyline to render multiple polylines

    dev

    The vc-collection-polyline component loads a renderable collection of polylines, equivalent to a Cesium.PolylineCollection.

    For performance when rendering massive amounts of polylines, it is recommended to use the polylines prop to pass an array of polyline data objects rather than using child components. The structure of the objects in the polylines array should match the attributes used in the vc-point component.