PHPackages                             vardump/geojsonmap - 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. vardump/geojsonmap

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

vardump/geojsonmap
==================

A craft cms 3 field plugin to draw Leaflet Maps.

1.0.1(6y ago)11.2k2[1 issues](https://github.com/vardump-de/geojsonmap/issues)[1 PRs](https://github.com/vardump-de/geojsonmap/pulls)MITPHP

Since Mar 7Pushed 2y ago2 watchersCompare

[ Source](https://github.com/vardump-de/geojsonmap)[ Packagist](https://packagist.org/packages/vardump/geojsonmap)[ RSS](/packages/vardump-geojsonmap/feed)WikiDiscussions master Synced 2mo ago

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

geojsonmap plugin for Craft CMS 3.x
===================================

[](#geojsonmap-plugin-for-craft-cms-3x)

A craft cms 3 field plugin to draw Leaflet Maps.

[![Screenshot](resources/img/screenshot.png)](resources/img/screenshot.png)

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 3.0.0-beta.23 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require vardump/geojsonmap

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for geojsonmap.

Display in frontend
-------------------

[](#display-in-frontend)

```

{{ entry.geojsonField }}

// Create the map
var map = L.map(document.getElementById('map')).setView([47.9034, 8.10577], 10);

// Set up the OSM layer
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
    attribution: 'Data ©OpenStreetMap',
    maxZoom: 18
}).addTo(map);

// Create featureGroup
var layer = L.featureGroup().addTo(map);

// Draw Geojson
var geojson = document.getElementById('geojson');
if (geojson.innerHTML) {
    var geojsonLayer = L.geoJson(JSON.parse(geojson.innerHTML))
    geojsonLayer.eachLayer(function (l) {
      layer.addLayer(l)
    })
    map.fitBounds(layer.getBounds())
}

```

[![Screenshot](resources/img/plugin-logo.png)](resources/img/plugin-logo.png)

Brought to you by [vardump.de](https://vardump.de)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 55.6% 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 ~112 days

Total

2

Last Release

2513d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0df55cdb6b67d2bd8ebf614c42c7b0d93b70ebe02bc8bd8c512838200928a190?d=identicon)[handplant](/maintainers/handplant)

---

Top Contributors

[![handplant](https://avatars.githubusercontent.com/u/2598962?v=4)](https://github.com/handplant "handplant (5 commits)")[![bighoho123](https://avatars.githubusercontent.com/u/7004799?v=4)](https://github.com/bighoho123 "bighoho123 (4 commits)")

---

Tags

craft3craftcmscraftcms-pluginleafletleaflet-drawcmsfieldCraftcraftcmscraft-pluginleafletgeojsonmap

### Embed Badge

![Health badge](/badges/vardump-geojsonmap/health.svg)

```
[![Health](https://phpackages.com/badges/vardump-geojsonmap/health.svg)](https://phpackages.com/packages/vardump-geojsonmap)
```

###  Alternatives

[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.1k](/packages/verbb-comments)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[supercool/tablemaker

Create customizable and user-defined table fields.

40141.7k](/packages/supercool-tablemaker)[verbb/vizy

A flexible visual editor field for Craft.

4348.6k](/packages/verbb-vizy)

PHPackages © 2026

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