PHPackages                             imumz/nova-4-field-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. imumz/nova-4-field-map

ActiveLibrary

imumz/nova-4-field-map
======================

A Laravel Nova field.

v1.0.4(2y ago)310.2k↓25%1[2 issues](https://github.com/iMuMz/Nova4FieldMap/issues)MITVuePHP ^7.3|^8.0

Since Mar 24Pushed 2y ago2 watchersCompare

[ Source](https://github.com/iMuMz/Nova4FieldMap)[ Packagist](https://packagist.org/packages/imumz/nova-4-field-map)[ RSS](/packages/imumz-nova-4-field-map/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

[![](https://camo.githubusercontent.com/e10808e2abd25344a96f64228a9f40ea8bfc784b7578ff64ab08440952bfd6db/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f694d754d7a2f4e6f7661344669656c644d61703f267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/e10808e2abd25344a96f64228a9f40ea8bfc784b7578ff64ab08440952bfd6db/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f694d754d7a2f4e6f7661344669656c644d61703f267374796c653d666c61742d737175617265)[![GitHub release (latest by date)](https://camo.githubusercontent.com/b0b83b9b4de7aec03aa2d16d4517493ed51e9690e05bcc21c558b453b07aa6d0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f694d754d7a2f4e6f7661344669656c644d61703f636f6c6f723d79656c6c6f77267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/b0b83b9b4de7aec03aa2d16d4517493ed51e9690e05bcc21c558b453b07aa6d0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f694d754d7a2f4e6f7661344669656c644d61703f636f6c6f723d79656c6c6f77267374796c653d666c61742d737175617265)[![Packagist](https://camo.githubusercontent.com/059de3a8c3b0ca6b4345869d7ddab6aa8d47d73d6dd67d500593c5bfd591154a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696d756d7a2f6e6f76612d342d6669656c642d6d61703f636f6c6f723d677265656e266c6f676f3d74657374696e67267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/059de3a8c3b0ca6b4345869d7ddab6aa8d47d73d6dd67d500593c5bfd591154a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696d756d7a2f6e6f76612d342d6669656c642d6d61703f636f6c6f723d677265656e266c6f676f3d74657374696e67267374796c653d666c61742d737175617265)

Nova4FieldMap
=============

[](#nova4fieldmap)

Custom [Laravel Nova 4](https://nova.laravel.com/) map detail field using [Leaflet](https://leafletjs.com/). Supports Google Maps, marker clustering, map height, latitude and longitude coordinates, GeoJSON, marker popup and custom marker icons.

[![image](images/detail-view-example.png)](images/detail-view-example.png)

### Installation

[](#installation)

```
composer require imumz/nova-4-field-map

```

### Usage

[](#usage)

```
use Imumz\Nova4FieldMap\Nova4FieldMap
...
Nova4FieldMap::make()

```

### Available Methods

[](#available-methods)

#### Height

[](#height)

```
Nova4FieldMap::make()
->height('400px') // default is 300px

```

#### Google Maps

[](#google-maps)

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

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

```

#### Latitude / Longitude (Point)

[](#latitude--longitude-point)

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

```

#### GeoJSON

[](#geojson)

```
Nova4FieldMap::make()
->type('GeoJson')
->geoJson('')

```

#### 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)

```
Nova4FieldMap::make()
->popup('popup')

```

#### Custom Marker Icon

[](#custom-marker-icon)

```
Nova4FieldMap::make()
->markerIcon('/images/marker-icon.png')

```

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

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

```

[![image](images/custom-markers-example.png)](images/custom-markers-example.png)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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

5

Last Release

784d 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 (17 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/imumz-nova-4-field-map/health.svg)

```
[![Health](https://phpackages.com/badges/imumz-nova-4-field-map/health.svg)](https://phpackages.com/packages/imumz-nova-4-field-map)
```

###  Alternatives

[optimistdigital/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2872.1M6](/packages/optimistdigital-nova-sortable)[outl1ne/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2861.8M9](/packages/outl1ne-nova-sortable)[laravel/nova-log-viewer

A Laravel Nova tool for viewing your application logs.

136301.3k1](/packages/laravel-nova-log-viewer)[stepanenko3/nova-command-runner

Laravel Nova tool for running Artisan and bash(shell) commands.

36983.0k](/packages/stepanenko3-nova-command-runner)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[dniccum/nova-documentation

A Laravel Nova tool that allows you to add markdown-based documentation to your administrator's dashboard.

37116.4k](/packages/dniccum-nova-documentation)

PHPackages © 2026

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