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

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

imumz/nova-4-map-coordinates
============================

A Laravel Nova field.

v1.3(1y ago)01761MITVuePHP ^7.3|^8.0

Since Sep 10Pushed 1y ago1 watchersCompare

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

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

[![](https://camo.githubusercontent.com/d4baf01d49de5442b2027b9b14b8edf319358c4069a850df11ec67eda3768070/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f694d754d7a2f4e6f7661344d6170436f6f7264696e617465733f267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/d4baf01d49de5442b2027b9b14b8edf319358c4069a850df11ec67eda3768070/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f694d754d7a2f4e6f7661344d6170436f6f7264696e617465733f267374796c653d666c61742d737175617265)[![GitHub release (latest by date)](https://camo.githubusercontent.com/aaa28163187c6b19905b7805e1729e230fb820796222dfca9d61f2a60f8971a2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f696d756d7a2f4e6f7661344d6170436f6f7264696e617465733f636f6c6f723d726564267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/aaa28163187c6b19905b7805e1729e230fb820796222dfca9d61f2a60f8971a2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f696d756d7a2f4e6f7661344d6170436f6f7264696e617465733f636f6c6f723d726564267374796c653d666c61742d737175617265)[![Packagist](https://camo.githubusercontent.com/e2f29851372ed5f447e1fa99a17a386669d1c175ddf40625ff63193b30548d1d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696d756d7a2f6e6f76612d342d6d61702d636f6f7264696e617465733f636f6c6f723d677265656e266c6f676f3d74657374696e67267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/e2f29851372ed5f447e1fa99a17a386669d1c175ddf40625ff63193b30548d1d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696d756d7a2f6e6f76612d342d6d61702d636f6f7264696e617465733f636f6c6f723d677265656e266c6f676f3d74657374696e67267374796c653d666c61742d737175617265)

Nova4MapCoordinates
===================

[](#nova4mapcoordinates)

Custom [Laravel Nova 4](https://nova.laravel.com/) form field for create and update using [Leaflet](https://leafletjs.com/) to retrieve coordinates from a clickable map marker. Supports Search, Google Maps, map height, marker popup and custom marker icons.

[![image](images/marker-update-example.png)](images/marker-update-example.png)

### Installation

[](#installation)

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

```

### Usage

[](#usage)

```
use Imumz\Nova4MapCoordinates\Nova4MapCoordinates
...
Nova4MapCoordinates::make('Coordinates')

```

### Available Methods

[](#available-methods)

#### Height

[](#height)

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

```

#### Google Maps

[](#google-maps)

[![image](images/google-maps-example.png)](images/google-maps-example.png)

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

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

```

#### Default Tile Provider

[](#default-tile-provider)

```
Nova4MapCoordinates::make('Coordinates')
->defaultTileProvider('google') // google, openstreetmap

```

#### Default Latitude and Longitude

[](#default-latitude-and-longitude)

```
Nova4MapCoordinates::make('Coordinates')
->defaultLatitude()
->defaultLongitude()

```

#### Zoom

[](#zoom)

Set the zoom level. Default is 8.

```
Nova4MapCoordinates::make('Coordinates')
->zoom(12)

```

#### Search

[](#search)

The search provider is a work in progress. Default is ESRI.

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

### Search Provider Options

[](#search-provider-options)

You can pass additional parameters to the `searchProviderOptions` method

```
Nova4MapCoordinates::make('Coordinates')
->searchProviderOptions([
  'sourceCountry' => 'ZA',
])

```

### Show / Hide Coordinates Field

[](#show--hide-coordinates-field)

The coordinates input field can be hidden

```
Nova4MapCoordinates::make('Coordinates')
->showMapCoordinates(false)

```

#### Custom Marker Icon

[](#custom-marker-icon)

```
Nova4MapCoordinates::make('Coordinates')
->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-map-marker.png)](images/custom-map-marker.png)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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

Total

4

Last Release

536d 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 (27 commits)")

---

Tags

laravelnova

### Embed Badge

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

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

###  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)[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)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

14720.0k](/packages/markwalet-nova-modal-response)

PHPackages © 2026

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