Skip to content

sumrakx/leaflet-swoopy

This branch is 14 commits behind wbkd/leaflet-swoopy:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5459169 · Jan 19, 2018

History

94 Commits
Jan 18, 2018
Jan 19, 2018
Jan 18, 2018
Aug 30, 2017
Oct 9, 2017
Oct 13, 2017
Jan 17, 2018
Jan 18, 2018
Jan 18, 2018
Oct 4, 2017
Sep 7, 2017

Repository files navigation

⤵️ Leaflet Swoopy Arrow Plugin

You can find the docs on the plugin website.

swoopy screenshot

Installation

You need Leaflet in order to run this plugin.

Install with npm/yarn:

$ npm install leaflet-swoopy

Or download the minified library from unpkg or jsDelivr.

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

Usage

import L from 'leaflet';
import 'leaflet-swoopy';

// create leaflet map ...

const swoopy = L.swoopyArrow([53.52, 13.4], [53.525, 14.41], {
  label: 'Hi!',
  labelFontSize: 12,
  iconAnchor: [20, 10],
  iconSize: [20, 16]
}).addTo(map);

About

⤵️ Swoopy Arrow Plugin for Leaflet

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%