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
React nautical mile scale component for React-Leaflet
Install
npm install @marfle/react-leaflet-nmscaleUsage
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