PHPackages                             yankovskiy/yii2-leaflet-polyline-measure-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. yankovskiy/yii2-leaflet-polyline-measure-plugin

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

yankovskiy/yii2-leaflet-polyline-measure-plugin
===============================================

Plugin to measure distances of simple lines as well as of complex polylines

0.1.1(7y ago)024GPL-3.0+JavaScript

Since Jun 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/yankovskiy/yii2-leaflet-polyline-measure-plugin)[ Packagist](https://packagist.org/packages/yankovskiy/yii2-leaflet-polyline-measure-plugin)[ RSS](/packages/yankovskiy-yii2-leaflet-polyline-measure-plugin/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (3)Used By (0)

Plugin for leaflet extension
============================

[](#plugin-for-leaflet-extension)

Plugin for yii2 based on the [Leaflet.PolylineMeasure](https://github.com/ppete2/Leaflet.PolylineMeasure) to measure distances of simple lines as well as of complex polylines

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist yankovskiy/yii2-leaflet-polyline-measure-plugin "0.1.1"

```

or add

```
"yankovskiy/yii2-leaflet-polyline-measure-plugin": "0.1.1"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
$center = new dosamigos\leaflet\types\LatLng(['lat' => 43.105620, 'lng' => 131.873530]);

$osmLayer = new \dosamigos\leaflet\layers\TileLayer([
    'urlTemplate' => 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
    'clientOptions' => [
        'attribution' => '&copy; OpenStreetMap',
    ],
]);

$polylineMeasure = new \neverdark\leaflet\PolylineMeasure();

$leaflet = new \dosamigos\leaflet\LeafLet([
    'center' => $center, // set the center
]);

$leaflet->addLayer($osmLayer);
$leaflet->installPlugin($polylineMeasure);

echo \dosamigos\leaflet\widgets\Map::widget(['height' => '700px', 'leafLet' => $leaflet]);
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2887d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/538f31f3372d04d000d7b64927ad2ca814cee530ae01c657a9812a0ef99ddd68?d=identicon)[yankovskiy](/maintainers/yankovskiy)

---

Top Contributors

[![yankovskiy](https://avatars.githubusercontent.com/u/4610331?v=4)](https://github.com/yankovskiy "yankovskiy (8 commits)")

---

Tags

yii2extensionleaflet

### Embed Badge

![Health badge](/badges/yankovskiy-yii2-leaflet-polyline-measure-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/yankovskiy-yii2-leaflet-polyline-measure-plugin/health.svg)](https://phpackages.com/packages/yankovskiy-yii2-leaflet-polyline-measure-plugin)
```

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
