PHPackages                             adamcmoore/nova-gmap - 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. adamcmoore/nova-gmap

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

adamcmoore/nova-gmap
====================

A Laravel Nova field using Google Maps to provide latitude/longitude data.

v3.0(1y ago)6170.4k↓23.3%8MITVuePHP &gt;=7.1.0

Since Nov 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/adamcmoore/nova-gmap)[ Packagist](https://packagist.org/packages/adamcmoore/nova-gmap)[ RSS](/packages/adamcmoore-nova-gmap/feed)WikiDiscussions master Synced 1mo ago

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

Nova Gmap Field
---------------

[](#nova-gmap-field)

A Nova field control for using Google Maps to update a latitude/longitude positon.

### Installation

[](#installation)

Install the package via composer with:

```
composer require adamcmoore/nova-gmap

```

Next publish the config file with:

```
php artisan vendor:publish --provider="Acm\NovaGmap\FieldServiceProvider.php" --tag="config"

```

This will create a config file at `config/nova-gmaps.php` where you will need to enter your Google Maps API key, default position and zoom level.

### Versions

[](#versions)

- **v1.0** Laravel 6 &amp; 7
- **v2.0** Laravel 8

### Usage

[](#usage)

To add this field to a Nova resource:

```
NovaGmap::make('Location')
```

The field expects data to be provided as an object with keys for `latitude` and `longitude`, and will return data from the request in the same format. Use Accessors and Mutators to handle this.

An example model:

```
class Shop extends Model
{

	$fillable = [
		'title',
		'description',
		'address',
		'location_lat',
		'location_lng',
	];

	/*
	Provide the Location value to the Nova field
	*/
	public function getLocationAttribute()
	{
		return (object) [
			'latitude' => $this->location_lat,
			'longitude' => $this->location_lng,
		];
	}

	/*
	Transform the returned value from the Nova field
	*/
	public function setLocationAttribute($value)
	{
		$location_lat = round(object_get($value, 'latitude'), 7);
		$location_lng = round(object_get($value, 'longitude'), 7);
		$this->attributes['location_lat'] = $location_lat;
		$this->attributes['location_lng'] = $location_lng;
	}
}
```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance46

Moderate activity, may be stable

Popularity38

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~583 days

Total

5

Last Release

411d ago

Major Versions

0.0.1 → v1.02018-12-03

v1.0 → v2.02021-09-07

v2.0.1 → v3.02025-04-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/fbab38a8b9f83883889deadfa1c407c2282a9f6d80175f1c5633abca9d2bf402?d=identicon)[adamcmoore](/maintainers/adamcmoore)

---

Top Contributors

[![adamcmoore](https://avatars.githubusercontent.com/u/5844678?v=4)](https://github.com/adamcmoore "adamcmoore (12 commits)")[![aramirez92](https://avatars.githubusercontent.com/u/2057867?v=4)](https://github.com/aramirez92 "aramirez92 (1 commits)")[![Ashraam](https://avatars.githubusercontent.com/u/4686383?v=4)](https://github.com/Ashraam "Ashraam (1 commits)")[![atagadtad](https://avatars.githubusercontent.com/u/37455874?v=4)](https://github.com/atagadtad "atagadtad (1 commits)")[![fruitl00p](https://avatars.githubusercontent.com/u/1492861?v=4)](https://github.com/fruitl00p "fruitl00p (1 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/adamcmoore-nova-gmap/health.svg)

```
[![Health](https://phpackages.com/badges/adamcmoore-nova-gmap/health.svg)](https://phpackages.com/packages/adamcmoore-nova-gmap)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[digital-creative/conditional-container

Provides an easy way to conditionally show and hide fields in your Nova resources.

116593.8k4](/packages/digital-creative-conditional-container)[genealabs/laravel-overridable-model

Provide a uniform method of allowing models to be overridden in Laravel.

92398.0k2](/packages/genealabs-laravel-overridable-model)[inspheric/nova-defaultable

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

51174.8k1](/packages/inspheric-nova-defaultable)[murdercode/nova4-tinymce-editor

Boost your Laravel Nova with the TinyMCE editor.

17165.2k](/packages/murdercode-nova4-tinymce-editor)[yieldstudio/nova-google-autocomplete

A Laravel Nova Google autocomplete field.

12218.4k](/packages/yieldstudio-nova-google-autocomplete)

PHPackages © 2026

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