You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

leaflet-truesize

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaflet-truesize

Leaflet plugin for easily comparing sizes of geographical shapes.

3.1.0
latest
Source
npmnpm
Version published
Weekly downloads
4
-55.56%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 13 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts