PHPackages                             laravel-admin-maps/maps-latlong - 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. laravel-admin-maps/maps-latlong

ActiveLibrary

laravel-admin-maps/maps-latlong
===============================

Latitude &amp; Longitude selector maps

1.0.1(6y ago)169MITPHPPHP &gt;=7.0.0CI failing

Since Apr 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/zhuaiwhh/laravel-admin-maps)[ Packagist](https://packagist.org/packages/laravel-admin-maps/maps-latlong)[ Docs](https://github.com/zhuaiwhh/laravel-admin-maps)[ RSS](/packages/laravel-admin-maps-maps-latlong/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (3)Used By (0)

Latitude and longitude selector
===============================

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

这个扩展用来帮助你在form表单中选择经纬度，用来替代`Laravel-admin`中内置的`Form\Field\Map`组件, 组件支持的地图包括`Google map`、`百度地图`、`高德地图`、`腾讯地图`、`Yadex map`.

This extension is used to help you select the latitude and longitude in the form, which is used to replace the `Laravel-admin` built in `Form\Field\Map` component. The supported maps include `Google map`, `Baidu map`, `AMap`, `Tencent Map`, `Yadex map`.

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

[](#installation)

```
composer require laravel-admin-maps/maps-latlong
```

Configuration
-------------

[](#configuration)

Open `config/admin.php` and add the following configuration to the extensions section:

```
    'extensions' => [

        'latlong' => [

            // Whether to enable this extension, defaults to true
            'enable' => true,

            // Specify the default provider
            'default' => 'google',

            // According to the selected provider above, fill in the corresponding api_key
            'providers' => [

                'google' => [
                    'api_key' => '',
                ],

                'yadex' => [
                    'api_key' => '',
                ],

                'baidu' => [
                    'api_key' => 'xck5u2lga9n1bZkiaXIHtMufWXQnVhdx',
                ],

                'tencent' => [
                    'api_key' => 'VVYBZ-HRJCX-NOJ4Z-ZO3PU-ZZA2J-QPBBT',
                ],

                'amap' => [
                    'api_key' => '3693fe745aea0df8852739dac08a22fb',
                ],
            ]
        ]
    ]
```

Usage
-----

[](#usage)

Suppose you have two fields `latitude` and `longitude` in your table that represent latitude and longitude, then use the following in the form:

```
$form->latlong('latitude', 'longitude', 'Position');

// Set the map height
$form->latlong('latitude', 'longitude', 'Position')->height(500);

// Set the map zoom
$form->latlong('latitude', 'longitude', 'Position')->zoom(16);

// Set default position
$form->latlong('latitude', 'longitude', 'Position')->default(['lat' => 90, 'lng' => 90]);
```

Use in show page

```
$show->field('Position')->latlong('lat_column', 'long_column', $height = 400, $zoom = 16);
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

2

Last Release

2205d ago

### Community

Maintainers

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

---

Top Contributors

[![zhuaiwhh](https://avatars.githubusercontent.com/u/36222175?v=4)](https://github.com/zhuaiwhh "zhuaiwhh (1 commits)")

---

Tags

extensionmapslaravel-admin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laravel-admin-maps-maps-latlong/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-admin-maps-maps-latlong/health.svg)](https://phpackages.com/packages/laravel-admin-maps-maps-latlong)
```

###  Alternatives

[laravel-admin-ext/china-distpicker

Distpicker extension for laravel-admin

13443.9k](/packages/laravel-admin-ext-china-distpicker)[laravel-admin-ext/grid-lightbox

Turn your grid into a lightbox &amp; gallery

58180.9k2](/packages/laravel-admin-ext-grid-lightbox)[james.xue/login-captcha

laravel-admin 登录验证码

3725.4k](/packages/jamesxue-login-captcha)[jxlwqq/quill

quill editor for laravel-admin

2427.1k](/packages/jxlwqq-quill)[laravel-admin-ext/sparkline

Integrates jQuery sparkline into laravel-admin

161.1k](/packages/laravel-admin-ext-sparkline)

PHPackages © 2026

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