JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 497
  • Score
    100M100P100Q110265F
  • License MIT

Nautical mile scale for react-leaflet

Package Exports

  • @marfle/react-leaflet-nmscale
  • @marfle/react-leaflet-nmscale/dist/esm/nmscale.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@marfle/react-leaflet-nmscale) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React-Leaflet-NmScale

npm (scoped)

React nautical mile scale component for React-Leaflet

screenshot_nmscale

Install

npm install @marfle/react-leaflet-nmscale

Usage

Import:

import { MapContainer, TileLayer } from 'react-leaflet';
import { NmScale } from '@marfle/react-leaflet-nmscale';

Use:

<MapContainer center={[0, 0]} zoom={10}>
  <TileLayer url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" />
  <TileLayer url="https://tiles.openseamap.org/seamark/{z}/{x}/{y}.png" />
  <NmScale />
</MapContainer>

License

MIT See LICENSE file.

About us

Marfle makes software for workboat fleets