Skip to content

React-leaflet-nauticsale is a plugin for react-leaflet. A wrapper component of leaflet.nauticscale.

License

Notifications You must be signed in to change notification settings

LockBlock-dev/react-leaflet-nauticsale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-leaflet-nauticsale npm version

  • React-leaflet v4 support
  • Typescript support

React-leaflet-nauticsale is a plugin for react-leaflet. A wrapper component of leaflet.nauticscale.

Installation

  • Install NodeJS
  • Run react-leaflet-nauticsale

Prerequisites

Make sure that you haveve installed react, react-leaflet and leaflet.

Example usage

import { MapContainer } from "react-leaflet"; import ScaleNautic from "react-leaflet-nauticsale"; import "leaflet/dist/leaflet.css"; const Demo = () => { return ( <MapContainer center={[51.505, -0.09]} zoom={13}> <ScaleNautic nautic={true} /> </MapContainer> ); };

Reference

See: https://github.com/wattnpapa/leaflet.nauticscale

Copyright

See the license

About

React-leaflet-nauticsale is a plugin for react-leaflet. A wrapper component of leaflet.nauticscale.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project