3.1.0 • Published 4 years ago

leaflet-truesize v3.1.0

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

Leaflet Truesize

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

npm.io

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 ..."

3.1.0

4 years ago

3.0.0

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.2.0

5 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.0.1

6 years ago