wbkd / leaflet-swoopy

:arrow_heading_down: Swoopy Arrow Plugin for Leaflet

Home Page:https://wbkd.github.io/leaflet-swoopy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

:arrow_heading_down: Swoopy Arrow Plugin for Leaflet

https://wbkd.github.io/leaflet-swoopy

License:MIT License


Languages

Language:JavaScript 90.6%Language:HTML 9.4%