PHPackages                             gabrielesbaiz/nova-card-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. gabrielesbaiz/nova-card-map

ActiveLibrary

gabrielesbaiz/nova-card-map
===========================

Custom Laravel Nova 4 map card.

1.0.0(1y ago)02.4k↑850%MITPHPPHP ^8.0CI failing

Since Mar 3Pushed 12mo ago1 watchersCompare

[ Source](https://github.com/gabrielesbaiz/nova-card-map)[ Packagist](https://packagist.org/packages/gabrielesbaiz/nova-card-map)[ Docs](https://github.com/gabrielesbaiz/nova-card-map)[ GitHub Sponsors]()[ RSS](/packages/gabrielesbaiz-nova-card-map/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (9)Versions (3)Used By (0)

NovaCardMap
===========

[](#novacardmap)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1e1050afb35ee0daa22e7c917452d6b7dff096c4315fa08b83486b65338a96a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6761627269656c65736261697a2f6e6f76612d636172642d6d61702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gabrielesbaiz/nova-card-map)[![Total Downloads](https://camo.githubusercontent.com/93e7bcb771763733aa0b88fdf1f7a4cc9ee5e5b11c651ac6577e4085bbf2a586/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6761627269656c65736261697a2f6e6f76612d636172642d6d61702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gabrielesbaiz/nova-card-map)

Custom Laravel Nova 4 map card.

Original code from [iMuMz/NovaCardMap](https://github.com/iMuMz/NovaCardMap)

Features
--------

[](#features)

- ✅ Support [Leaflet](https://leafletjs.com/)
- ✅ Support Google Maps
- ✅ Marker clustering
- ✅ Map height
- ✅ Latitude and longitude coordinates
- ✅ GeoJSON
- ✅ Marker popup
- ✅ Custom marker icons

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

[](#installation)

You can install the package via composer:

```
composer require gabrielesbaiz/nova-card-map
```

Usage
-----

[](#usage)

```
use Gabrielesbaiz\NovaCardMap;

(new NovaCardMap())->width("1/2")
```

### Available Methods

[](#available-methods)

#### Height

[](#height)

```
(new NovaCardMap())
->height('400px') // default is 300px
```

#### Google Maps

[](#google-maps)

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

```
(new NovaCardMap())
->googleApiKey('')
->googleMapType('roadmap'), // roadmap, satellite or hybrid
```

#### Latitude / Longitude (Point)

[](#latitude--longitude-point)

```
(new NovaCardMap())
->type('LatLon')
->point('-6.081689','145.391881')
```

#### GeoJSON

[](#geojson)

```
(new NovaCardMap())
->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)

```
(new NovaCardMap())
->popup('popup')
```

#### Custom Marker Icon

[](#custom-marker-icon)

```
(new NovaCardMap())
->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])

```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Chad Copeland](https://github.com/iMuMz)
- [Gabriele Sbaiz](https://github.com/gabrielesbaiz)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance47

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

442d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/97040fb60637d4b81897347524bc9343ffa6b978d4b19c0c28ea0823e2a1752b?d=identicon)[gabrielesbaiz](/maintainers/gabrielesbaiz)

---

Top Contributors

[![gabrielesbaiz](https://avatars.githubusercontent.com/u/22818698?v=4)](https://github.com/gabrielesbaiz "gabrielesbaiz (2 commits)")

---

Tags

laravel-nova-cardlaravel-packagephplaravelGabriele Sbaiznova-card-map

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/gabrielesbaiz-nova-card-map/health.svg)

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

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[basillangevin/laravel-data-json-schemas

Transforms Spatie Data objects into JSON Schemas with built-in validation

1312.2k1](/packages/basillangevin-laravel-data-json-schemas)

PHPackages © 2026

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