leaflet-truesize

    3.1.0 • Public • Published

    Leaflet Truesize

    A plugin for easily comparing sizes of geographical shapes. You can find the docs on the plugin website.

    Installation

    You need Leaflet in order to run this plugin.

    Install with npm/yarn:

    $ npm install leaflet-truesize

    Or download the minified library from unpkg or jsDelivr.

    <script src="https://unpkg.com/leaflet-truesize"></script>

    Usage

    import L from 'leaflet';
    import 'leaflet-truesize';
     
    // create leaflet map ...
     
    const trueSizeLayer = new L.trueSize(geojsonFeature, {
      color: '#FF0000',
      weight: 1,
      opacity: 1,
      dashArray: '7, 10',
    }).addTo(map);

    Inspiration: "The True Size Of ..."

    Keywords

    none

    Install

    npm i leaflet-truesize

    DownloadsWeekly Downloads

    1

    Version

    3.1.0

    License

    MIT

    Unpacked Size

    366 kB

    Total Files

    8

    Last publish

    Collaborators

    • webk1d