PHPackages                             otrsw/leaflet-map - 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. otrsw/leaflet-map

Abandoned → [imumz/leaflet-map](/?search=imumz%2Fleaflet-map)Library

otrsw/leaflet-map
=================

A Laravel Nova field.

1.1(5y ago)72.1k2MITVuePHP &gt;=7.1.0

Since Aug 1Pushed 3y ago2 watchersCompare

[ Source](https://github.com/iMuMz/NovaLeafletMap)[ Packagist](https://packagist.org/packages/otrsw/leaflet-map)[ RSS](/packages/otrsw-leaflet-map/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)DependenciesVersions (12)Used By (0)

[![](https://camo.githubusercontent.com/72c294ec80d487f617985acced1d7ea766d32d4ed3927708c2e12350825c5e77/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f694d754d7a2f4e6f76614c6561666c65744d61703f267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/72c294ec80d487f617985acced1d7ea766d32d4ed3927708c2e12350825c5e77/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f694d754d7a2f4e6f76614c6561666c65744d61703f267374796c653d666c61742d737175617265)[![GitHub release (latest by date)](https://camo.githubusercontent.com/c8be973c4d4a32fb6f660f57508b286f119add82b08a9fac1e1af0ff3f6faefe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f694d754d7a2f4e6f76614c6561666c65744d61703f636f6c6f723d79656c6c6f77267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/c8be973c4d4a32fb6f660f57508b286f119add82b08a9fac1e1af0ff3f6faefe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f694d754d7a2f4e6f76614c6561666c65744d61703f636f6c6f723d79656c6c6f77267374796c653d666c61742d737175617265)[![Packagist](https://camo.githubusercontent.com/d6087bb33e0b008020a7ac6890b955d368389766ed34b70244e06c2cbe57c982/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696d756d7a2f6c6561666c65742d6d61703f636f6c6f723d677265656e266c6f676f3d74657374696e67267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/d6087bb33e0b008020a7ac6890b955d368389766ed34b70244e06c2cbe57c982/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696d756d7a2f6c6561666c65742d6d61703f636f6c6f723d677265656e266c6f676f3d74657374696e67267374796c653d666c61742d737175617265)

NovaLeafletMap
==============

[](#novaleafletmap)

Custom [Laravel Nova](https://nova.laravel.com/) map field using [Vue2Leaflet](https://vue2-leaflet.netlify.app/). Supports Google Maps, marker clustering, height, zoom, latitude and longitude coordinates, GeoJSON, marker popup and custom marker icon.

Looking for a Laravel Nova map card? ()

[![image](https://user-images.githubusercontent.com/22936672/83330778-dd997200-a291-11ea-997d-39f10e520b91.png)](https://user-images.githubusercontent.com/22936672/83330778-dd997200-a291-11ea-997d-39f10e520b91.png)

### Installation

[](#installation)

```
composer require imumz/leaflet-map

```

### Usage

[](#usage)

```
use Imumz\LeafletMap\LeafletMap
...
LeafletMap::make('Map View')

```

### Available Methods

[](#available-methods)

#### Zoom

[](#zoom)

```
LeafletMap::make('Map View')
->zoom(8)

```

#### Height

[](#height)

```
LeafletMap::make('Map View')
->height('400px') // default is 300px

```

#### Google Maps

[](#google-maps)

By default the provider is OpenStreetMaps.
You must set your Google Maps API key ().

```
LeafletMap::make('Map View')
->googleApiKey('')
->googleMapType('roadmap'), // roadmap, satellite or hybrid

```

#### Latitude / Longitude (Point)

[](#latitude--longitude-point)

The map will automatically center to the coordinates provided.

```
LeafletMap::make('Map View')
->type('LatLon')
->point($this->my_latitude,$this->my_longitude)

```

#### GeoJSON

[](#geojson)

You have to manually set the GeoJson center.

```
LeafletMap::make('Map View')
->type('GeoJson')
->geoJson('')
->center('-6.081689','145.391881')

```

#### GeoJson Example

[](#geojson-example)

```
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "popup": "I am a Popup"
      },
      "geometry": {
        "type": "Point",
        "coordinates": [
          23.8623046875,
          -30.221101852485987
        ]
      }
    }
  ]
}

```

#### Popup

[](#popup)

```
LeafletMap::make('Map View')
->popupName('popup')

```

#### Custom Marker Icon

[](#custom-marker-icon)

```
LeafletMap::make('Map View')
->mapIconUrl('/images/marker-icon.png')

```

You can now pass additional parameters to set the icon size and anchor

```
->mapIconUrl('/images/marker-icon.png',[100,100],[50,50])

```

[![Screenshot 2020-10-06 at 10 09 14](https://user-images.githubusercontent.com/22936672/95176131-b6612d00-07bc-11eb-8b1e-3489bb242a37.png)](https://user-images.githubusercontent.com/22936672/95176131-b6612d00-07bc-11eb-8b1e-3489bb242a37.png)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~53 days

Recently: every ~76 days

Total

11

Last Release

1939d ago

### Community

Maintainers

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

---

Top Contributors

[![iMuMz](https://avatars.githubusercontent.com/u/22936672?v=4)](https://github.com/iMuMz "iMuMz (40 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/otrsw-leaflet-map/health.svg)

```
[![Health](https://phpackages.com/badges/otrsw-leaflet-map/health.svg)](https://phpackages.com/packages/otrsw-leaflet-map)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[coreproc/nova-notification-feed

A Laravel Nova package that adds a notification feed in your Nova app.

10149.1k](/packages/coreproc-nova-notification-feed)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

51174.8k1](/packages/inspheric-nova-defaultable)[cybercog/laravel-nova-ban

A Laravel Nova banning functionality for your application.

40199.8k](/packages/cybercog-laravel-nova-ban)[insenseanalytics/nova-server-monitor

A Laravel Nova tool for Spatie's Server Monitor library.

6546.9k](/packages/insenseanalytics-nova-server-monitor)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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