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

@geoimpact/sep-map-sdk

v1.0.25

Published

Geoimpact SEP Map SDK

Downloads

807

Readme

@geoimpact/sep-map-sdk

The official React-based map SDK for Swiss Energy Planning (SEP) applications by geoimpact.

Features

  • 🗺️ Interactive Map: Built on Leaflet with high-performance vector tiles.
  • 🔍 Address Search: Integrated Swiss address search with autocomplete.
  • 📐 Perimeter Selection: Select and interact with building/land perimeters.
  • 🎨 Customizable: extensive styling options and layer management.
  • 🌐 Web Component: Works in React, Vue, Angular, or Vanilla JS.

Installation

npm install @geoimpact/sep-map-sdk

Usage

React

import { SEPMapSDK } from '@geoimpact/sep-map-sdk';
import { useEffect, useRef } from 'react';
// Import CSS (required)
import '@geoimpact/sep-map-sdk/dist/sep-map-sdk.css';

function MapComponent() {
  const containerRef = useRef(null);

  useEffect(() => {
    if (!containerRef.current) return;

    const map = new SEPMapSDK({
      container: containerRef.current,
      token: 'YOUR_JWT_TOKEN', // Optional: if using authenticated layers
      features: {
        addressSearch: true,
        perimeterSelection: true
      }
    });

    return () => map.destroy();
  }, []);

  return <div ref={containerRef} style={{ height: '600px' }} />;
}

Vanilla JS / Web Component

You can also use the SDK via a script tag or as a web component.

<link rel="stylesheet"
      href="https://sos-ch-gva-2.exo.io/geoimpact-cdn/sep-map-sdk/1.x/sep-map-sdk.css">
<script src="https://sos-ch-gva-2.exo.io/geoimpact-cdn/sep-map-sdk/1.x/sep-map.js"></script>

<div id="map" style="height: 600px;"></div>

<script>
  const map = new SEPMapSDK({
    container: '#map',
    token: 'YOUR_JWT_TOKEN'
  });
</script>

CDN Versioning

The SDK is available via CDN with semantic versioning aliases:

| URL Pattern | Example | Description | |------------------------|------------|----------------------------------------------------------------------| | /{version}/ | /1.2.3/ | Exact version - never changes (recommended for production) | | /{major}.{minor}.x/ | /1.2.x/ | Auto-updates with patch releases (bug fixes) | | /{major}.x/ | /1.x/ | Auto-updates with minor releases (new features, no breaking changes) | | /latest/ | /latest/ | Always the newest version (for development only) |

Recommended for production:

<!-- Option 1: Pinned version (maximum stability) -->
<script src="https://sos-ch-gva-2.exo.io/geoimpact-cdn/sep-map-sdk/1.0.1/sep-map.js"></script>

<!-- Option 2: Auto-patch updates (recommended) -->
<script src="https://sos-ch-gva-2.exo.io/geoimpact-cdn/sep-map-sdk/1.0.x/sep-map.js"></script>

For development/testing:

<script src="https://sos-ch-gva-2.exo.io/geoimpact-cdn/sep-map-sdk/latest/sep-map.js"></script>

Configuration

| Option | Type | Required | Description | | ----------- | ------------------------------ | -------- | ----------------------------------------- | | container | HTMLElement \| string | Yes | DOM element or selector to mount the map. | | token | string | Yes | JWT token for authenticated services. | | language | 'de' \| 'fr' \| 'it' \| 'en' | No | Initial language (default: 'de'). | | features | FeatureConfig | No | Enable/disable specific features. |

License

Proprietary - geoimpact AG