@basementuniverse/world-locations-map
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

World Locations Map

Show a list of locations on a world map.

preview

Installation

npm install @basementuniverse/world-locations-map
yarn add @basementuniverse/world-locations-map

How to use

import { WorldLocationsMap } from '@basementuniverse/world-locations-map';
<WorldLocationsMap
  background="#333"
  foreground="#777"
  locations={[
    {
      lat: 51.4,
      long: -1,
      label: 'UK',
      colour: '#0f0',
      size: 0.05
    },
  ]}
/>

Props

{
  background?: string,
  foreground?: string,
  locations: {
    long: number,
    lat: number,
    label?: string,
    size?: number,
    colour?: string,
  }[],
}

Readme

Keywords

Package Sidebar

Install

npm i @basementuniverse/world-locations-map

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

356 kB

Total Files

15

Last publish

Collaborators

  • basementuniverse