Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hotosm/underpass-ui

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hotosm/underpass-ui

Underpass UI

  • 0.0.4
  • npm
  • Socket score

Version published
Weekly downloads
29
increased by45%
Maintainers
4
Weekly downloads
 
Created
Source

Underpass UI

A set of UI components for Underpass.

Install

yarn add https://github.com/hotosm/underpass-ui.git

Usage

Include the styles file on your CSS:

@import "@hotosm/underpass-ui/dist/index.css";

You can also add this if you want a full view height map:

.maplibregl-map {
  height: 100vh;
}

And then use the components:

<UnderpassMap
  center={[-79.64696, 0.95953]}
  tags="building=yes"
  highlightDataQualityIssues
/>

See the playground folder for more examples.

Configure

The default URL for the Underpass REST API is https://underpass.hotosm.org:8000 (an Underpass development server), but you can change it passing a config property:

const config = {
    API_URL: "http://localhost:8000",
    MAPBOX_TOKEN: "YOUR_TOKEN"
};

FAQs

Package last updated on 25 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc