⤵️ Swoopy Arrow Plugin for Leaflet
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build fix(plugin): pass thru keyboard option Jan 30, 2019
docs
playground feat(arrow head): add hideArrowHead option, resolves #7 Jan 29, 2018
src
.eslintrc
.gitignore
LICENSE
README.md
package-lock.json 3.4.1 Feb 15, 2018
package.json
rollup.config.js
rollup.config.prod.js

README.md

⤵️ 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);