1.1.0 • Published 12 months ago

react-leaflet-nauticsale v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

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

1.1.0

12 months ago

1.0.0

12 months ago