Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 946 Bytes

File metadata and controls

39 lines (26 loc) · 946 Bytes

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