0.0.5 • Published 21 days ago

@hotosm/underpass-ui v0.0.5

Weekly downloads
-
License
LGPL-3.0-only
Repository
-
Last release
21 days ago

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"
};
0.0.5

21 days ago

0.0.4

2 months ago

0.0.3

2 months ago