New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.1.6
latest
npm
Version published
Weekly downloads
13
-72.92%
Maintainers
4
Weekly downloads
 
Created
Source

Underpass UI

A set of UI components for Underpass.

Install

yarn add @hotosm/underpass-ui

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 05 Jun 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