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

@gisatcz/ptr-maps

v2.0.2

Published

Panther FE maps

Readme

Release .github/workflows/test.yml

ptr-maps

A React-based mapping library for the Panther frontend framework. It provides WebGL-accelerated map rendering via deck.gl, along with a set of map controls, layout components, and projection utilities.

Installation

npm install @gisatcz/ptr-maps

Peer dependencies

The following packages must be installed in your project:

npm install react react-dom

Supported versions: React ^16.13.1 || ^17.0.2 || ^18.3.1

Usage

import {PresentationMap, DeckGlMap, MapControls} from '@gisatcz/ptr-maps';

<PresentationMap
	mapComponent={DeckGlMap}
	view={{center: {lat: 50, lon: 15}, boxRange: 100000}}
	backgroundLayer={{type: 'wmts', options: {url: '...'}}}
/>;

Exported API

Map components

| Export | Description | | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | | PresentationMap | Core map component. Accepts any compatible mapComponent (e.g. DeckGlMap). Handles view state, resizing, and layer rendering. | | DeckGlMap | WebGL-accelerated map built on deck.gl v9. Supports raster tiles, WMS, vector, MVT, COG bitmap, and terrain layers. | | MapSet | Synchronises the view across multiple maps. Use MapSetMap / MapSetPresentationMap as child descriptors. | | MapSetMap | Child descriptor for a connected (state-driven) map inside MapSet. | | MapSetPresentationMap | Child descriptor for a presentation-only map inside MapSet. | | MapGrid | Automatically arranges multiple maps in a responsive grid. | | MapWrapper | Container that adds an optional title bar and a close button to a map. |

Controls

| Export | Description | | --------------------- | ------------------------------------------------------------------- | | MapControls | Zoom, tilt, and heading control buttons for the map view. | | MapScale | Visual map scale bar calculated from the current view. | | MapTools | Generic container for placing tool components over the map. | | GoToPlace | Search input that triggers a navigation callback (goToPlace). | | SimpleLayersControl | Layer switcher drop-down for selecting a background layer template. |

Loadable (code-split) variants

| Export | Description | | --------------------- | -------------------------------- | | LoadableMap | Lazily loaded PresentationMap. | | LoadableMapSet | Lazily loaded MapSet. | | LoadableMapControls | Lazily loaded MapControls. |

DeckGlMap layers

Layers are passed as objects in the layers / backgroundLayer props of DeckGlMap / PresentationMap.

| Layer type | Description | | ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- | | TiledLayer | XYZ raster tile layer. Supports subdomain templates ({s}) and native zoom clamp. Optional terrain draping via clampToTerrain. | | WmsLayer | OGC WMS layer rendered tile-by-tile. Supports pickable/hoverable tooltips, custom texture parameters, and transparent colour replacement. | | VectorLayer | GeoJSON / binary vector features layer. Supports selections, styling, and terrain draping. | | MVTLayer | Mapbox Vector Tiles (MVT) layer with hover/selection highlight support. | | TiledVectorLayer | Tiled vector data layer (non-MVT). | | CogBitmapLayer | Cloud-Optimised GeoTIFF (COG) raster layer (via @gisatcz/deckgl-geolib). | | CogTerrainLayer | COG-based terrain / elevation layer (via @gisatcz/deckgl-geolib). |

Utilities

| Export | Description | | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | view | Helper functions for working with the Panther view model (boxRange, heading, tilt, etc.). | | proj | Projection utilities built on proj4. Includes predefined UTM and Křovák definitions, and an addProjections function to register custom EPSG codes. | | constants | Shared map constants. |

Re-exports from deck.gl / luma.gl

For convenience the following deck.gl / luma.gl namespaces are re-exported:

| Export | Source | | ------------------ | --------------------- | | GL | @luma.gl/constants | | deckgl_core | @deck.gl/core | | deckgl_layers | @deck.gl/layers | | deckgl_geolayers | @deck.gl/geo-layers |

Key dependencies

| Package | Version | | ------------------------ | ------- | | @deck.gl/* | ^9.0 | | @luma.gl/* | ^9.0 | | @loaders.gl/core | ^4.1 | | @gisatcz/deckgl-geolib | 2.1.5 | | @gisatcz/ptr-core | ^1.8 | | @gisatcz/ptr-utils | ^1.6 | | @gisatcz/ptr-atoms | ^1.16 | | proj4 | ^2.15 |

Development

# Build (ES module + CJS)
npm run build

# Watch mode
npm run start

# Run tests
npm test

# Run tests with coverage
npm run coverage

# Lint
npm run lint

License

Apache-2.0