@nsc-earth-2/primitive-geojson
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

@nsc-earth-2/primitive-geojson

@nsc-earth-2/primitive-geojson is a JavaScript library based on Cesium that parses GeoJSON and TopoJSON data into visualizable Cesium entities, including points, lines, polygons, labels, etc. It can be installed as an npm package and used directly in Cesium projects. 中文 Readme

Installation

Install using npm:

npm install @nsc-earth-2/primitive-geojson

Usage

To use @nsc-earth-2/primitive-geojson in your project, simply import it like any other module:

import { GeoJsonPrimitiveLayer } from "@nsc-earth-2/primitive-geojson";

Then create a new instance of the GeoJsonPrimitiveLayer class and load your GeoJSON data:

const layer = new GeoJsonPrimitiveLayer();
layer.load("path/to/data.json").then(() => {
  // Do something when the data is loaded
});

See the API documentation for more details on usage and available options.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.7
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.7
    3
  • 1.0.6
    1
  • 1.0.5
    0
  • 1.0.4
    1
  • 1.0.3
    0

Package Sidebar

Install

npm i @nsc-earth-2/primitive-geojson

Weekly Downloads

5

Version

1.0.7

License

MIT

Unpacked Size

54.8 kB

Total Files

4

Last publish

Collaborators

  • zy_ajiu
  • wodehaochide
  • michelle1009