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

wxs3map

v0.0.3

Published

Wxs3Map =======

Readme

Wxs3Map

NOTE: This is a fork of wxs.threejs, for the original version please refer to the original reposityory.

Wxs3Map is a lightweight JavaScript library build on top of the great three.js library.

The main purpose is to facilitate showing small 3d-blocks of the world, using the OGC services WCS for elevation data and WMS/WMTS for textures (maps or sattelite/aerial photos).

Usage

The recommended way to use wxs.threejs2 is by some tool like Webpack or browserify:

npm install wxs3map --save

And then

import Wxs3Map from 'wxs3map';

If you want to include this as a "traditional" js package, add the build/Wxs3Map.min.js to your project, as well as build/trackball.js.

and the libraries:

  • three.js
  • underscore
  • proj4js

Configuration

A new 3d-scene is created using the following syntax

var threeDMap = window.Wxs3Map.default(options);

Here options is an object of the following structure:

| Option | Type | Default | Description | | ------------- | ---------------- | ---------- | ----------- | | div | String | null | Id of div to place scene in | | bbox | String | null | Bounding box of area to show | | bboxCrs | String | EPSG:4326 | Crs of bbox | | wireframe | Boolean | false | Show wireframe (for debugging) | | zMult | Number | 1 | Factor to adjust z-values (height) by | | crs | String | EPSG:32633 | Internal coordinate system of scene | | texture | TextureOptions | | Configure texture, see below | | terrain | TerrainOptions | | Configure terrain, see below | | profiles | ProfileOptions[] | | Configure texture, see below |

TextureOptions

| Option | Type | Default | Description | | ------------- | ---------------- | ---------- | ----------- | | type | String | wms | Type of texture (wms or image) | | wmsUrl | String | http://openwms.statkart.no/skwms1/wms.topo2 | Url to wms server | | wmsLayers | String | topo2_WMS | Wms layers to use | | wmsFormat | String | image/png | Wms format | | imgUrl | String | null | Path to image used for texture if type = image|

TerrainOptions

| Option | Type | Default | Description | | --------------- | ---------------- | -------------- | ----------- | | pixelsPerVertex | Integer | 8 | Resolution of the height model in the image | | wcsResolution | Integer | 10 | Resolution of grid cell in meters | | coverage | String | land_utm33_10m | Wcs coverage to use | | format | String | geotiff | WCS format (geotiff or xyz) | | showBox | Boolean | true | Show a box around the terrain slice | | boxColor | Hex color | 0xdddddd | Color of the box around the terrain slice |

ProfileOptions

Development

  1. npm install
  2. npm run dev-server
  3. Navigate the browser to http://localhost:8080/demos/