You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@marfle/react-leaflet-nmscale

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marfle/react-leaflet-nmscale

Nautical mile scale for react-leaflet

3.0.1
latest
Source
npmnpm
Version published
Weekly downloads
288
-26.15%
Maintainers
0
Weekly downloads
 
Created
Source

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

Keywords

react-leaflet

FAQs

Package last updated on 15 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts