Skip to content

local-common-components 0.2.11

Install from the command line:
Learn more about npm packages
$ npm install @generation-one/local-common-components@0.2.11
Install via package.json:
"@generation-one/local-common-components": "0.2.11"

About this version

Local Common Components

Reusable map components built on MapLibre for working with points and polygons.

Components

  • MapSelector – single-point selector with geolocate and draggable marker support.
  • MapGeoJsonEditor – polygon drawing/editor backed by MapLibre Draw.
  • MapBusinessEditor – combined view offering both point and polygon editing in one canvas.

Usage

import { MapSelector } from "local-common-components";

<MapSelector
  value={location}
  onChange={setLocation}
/>

The package also exports lightweight geo helpers from src/geo/coordinates.ts along with the GeoPoint and MultiPolygon types.

Styling

Tailwind-friendly utility classes are applied by default. Override via the exposed className, height, and width props to match your host application.

Development

These sources are colocated with the merchant operator app; copy the local-common-components directory into another project to package as a library.

Details


Assets

  • local-common-components-0.2.11.tgz

Download activity

  • Total downloads 11
  • Last 30 days 11
  • Last week 11
  • Today 0