npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ol-cs-libs

v1.0.0

Published

Enterprise WebGIS Core Library integrating OpenLayers and Cesium

Readme

ol-cs-libs

简体中文

Enterprise WebGIS Core Library integrating OpenLayers and Cesium.

Features

  • Integrated Support: Seamlessly manage OpenLayers Maps and Cesium Viewers.
  • Framework Agnostic: Core library is pure TypeScript/JavaScript, usable with any framework (Vue, React, Angular, Vanilla JS).
  • TypeScript Ready: Full type definitions included.
  • Build Formats: Supports ESM, UMD, and IIFE formats for maximum compatibility (Bundlers, CDN).
  • Minified Output: Production-ready minified builds.

Installation

Using Package Manager

pnpm add ol-cs-libs
# or
npm install ol-cs-libs
# or
yarn add ol-cs-libs

Peer Dependencies

Ensure you have the required peer dependencies installed:

pnpm add ol@^10.4.0 cesium@^1.138.0 ol-ext@^4.0.24 proj4@^2.10.0 lodash@^4.17.21 @turf/turf@^6.5.0

CDN

You can use the library directly via CDN (e.g., unpkg or jsdelivr):

<script src="https://unpkg.com/ol-cs-libs/dist/ol-cs-libs.umd.min.js"></script>
<!-- Or for IIFE -->
<script src="https://unpkg.com/ol-cs-libs/dist/ol-cs-libs.iife.min.js"></script>

Usage

ESM (Bundlers)

import { WebGISManager } from 'ol-cs-libs';
import Map from 'ol/Map';
import View from 'ol/View';

// Initialize Manager
const manager = new WebGISManager();

// Create OpenLayers Map
const map = new Map({
  target: 'map',
  view: new View({ center: [0, 0], zoom: 2 })
});

// Register Map with Manager
manager.setOlMap(map);

console.log(manager.getOlMap());

CDN (Browser)

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/ol.css">
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ol.js"></script>
    <script src="path/to/ol-cs-libs.iife.min.js"></script>
</head>
<body>
    <div id="map" style="width: 100%; height: 400px;"></div>
    <script>
        // Global variable 'OlCsLibs' is available
        const manager = new OlCsLibs.WebGISManager();
        
        const map = new ol.Map({
            target: 'map',
            view: new ol.View({ center: [0, 0], zoom: 2 })
        });
        
        manager.setOlMap(map);
    </script>
</body>
</html>

Development

Setup

pnpm install

Build

pnpm build

Run Examples

pnpm dev
访问地址:http://localhost:5173/examples/cdn/index.html
访问地址:http://localhost:5173/examples/vue3/index.html

This will start a dev server for the examples located in examples/ directory.

Run Tests

pnpm test

Generate Documentation

pnpm docs
访问地址:http://localhost:5173/apidoc/index.html

License

ISC