npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@maxel01/vue-leaflet-plugins

v0.0.4

Published

[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![License][license-src]][license-href] \ [![Vue][vue-src]][vue-href] [![Leaflet][leaflet-src]][leaflet-href]

Downloads

117

Readme

🔌 Vue-Leaflet Plugins Wrapper

npm version npm downloads License
Vue Leaflet

A modern Vue 3 wrapper for Leaflet v2-alpha plugins, extending vue-leaflet. Built with the Composition API, SSR-compatible, and designed to integrate seamlessly with the Vue-Leaflet ecosystem.

⚠️ This is an early-stage project. Only a few plugins are supported yet — contributions and requests are welcome via issues or discussions.


🚀 What's New

  • ✅ Unified plugin wrapper system for Leaflet v2
  • ✅ Works out-of-the-box with @maxel01/vue-leaflet
  • ✅ SSR support tested with Nuxt
  • ✅ Consistent Vue 3 Composition API interface
  • ✅ Plugin test helpers for easy development

✅ Available Plugins

The following plugins are currently wrapped and ready for use:

☑️ Leaflet.Donut (draw donuts)
☑️ Leaflet.heat (heatmap layer)
☑️ Leaflet.hotline (heatmap-style polylines)
☑️ Leaflet.MarkerCluster (animated marker clustering)
☑️ Leaflet.RotatedMarker (rotate markers)

More plugins will be added over time. If you need a specific plugin, open a request in the repo.

⚠️ Note: Leaflet v1 plugins are not directly compatible with Leaflet v2.
However, there is a possibility to use the Leaflet-V1-polyfill. Check out the Leaflet.MarkerCluster implementation for more.


📦 Installation

pnpm add @maxel01/vue-leaflet-plugins @maxel01/vue-leaflet [email protected]
# or
yarn add @maxel01/vue-leaflet-plugins @maxel01/vue-leaflet [email protected]
# or
npm i @maxel01/vue-leaflet-plugins @maxel01/vue-leaflet [email protected]

🧑‍💻 Usage

See the vue-leaflet-plugins-docs for detailed examples. Here’s a quick start using the Hotline plugin:

<script setup lang="ts">
import { LMap, LTileLayer } from '@maxel01/vue-leaflet'
import { LHotline } from '@maxel01/vue-leaflet-plugins'
</script>

<template>
  <LMap :zoom="9" :center="[47.41322, -1.219482]">
    <LTileLayer
        url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
        layer-type="base"
        name="OpenStreetMap"
    />
    <LHotline
        :lat-lngs="[
                [47.334852, -1.509485, 150],
                [47.342596, -1.328731, 250],
                [47.241487, -1.190568, 350],
                [47.234787, -1.358337, 250]
            ]"
        :min="150"
        :max="350"
    />
  </LMap>
</template>

🧪 Interactive Playground

Unlock the full potential of vue-leaflet-plugins with interactive demo components built right into the official documentation. The playground lets you explore real-world plugin usage, experiment with features live, and see how everything fits together.

Want to test Server-Side Rendering (SSR)? Dive into the Nuxt playground for a hands-on SSR experience.

To run the Nuxt Playground locally:

git clone https://github.com/maxel01/vue-leaflet-plugins.git
cd vue-leaflet
pnpm install
pnpm dev

Visit: http://127.0.0.1:3000

Or use the Vue-specific playground:

pnpm dev:vue

Visit: http://127.0.0.1:5173


🛠 Contribution

This repo uses pnpm for building and development.

📘 How to install PNPM

See the contribution guide for more details.


🙌 Credits