react-leaflet-nauticsale
v1.1.0
Published
React-leaflet-nauticsale is a plugin for react-leaflet. A wrapper component of leaflet.nauticscale.
Downloads
38
Maintainers
Readme
react-leaflet-nauticsale
- 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