PHPackages                             libaocai/laravel-admin-map-selector - 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. [Admin Panels](/categories/admin)
4. /
5. libaocai/laravel-admin-map-selector

ActiveLibrary[Admin Panels](/categories/admin)

libaocai/laravel-admin-map-selector
===================================

laravel admin map selector extension

v1.0.2(5y ago)062MITPHPPHP &gt;=7.0.0

Since Oct 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/libaocai90/laravel-admin-map-selector)[ Packagist](https://packagist.org/packages/libaocai/laravel-admin-map-selector)[ Docs](https://github.com/libaocai90/laravel-admin-maps)[ RSS](/packages/libaocai-laravel-admin-map-selector/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)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 libaocai/laravel-admin-map-selector
```

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(['latitude' => 90, 'longitude' => 90]);

```

Use in show page

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

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

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

Total

3

Last Release

1899d ago

### Community

Maintainers

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

---

Top Contributors

[![libaocai90](https://avatars.githubusercontent.com/u/393101?v=4)](https://github.com/libaocai90 "libaocai90 (7 commits)")

---

Tags

extensionmapslaravel-admin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/libaocai-laravel-admin-map-selector/health.svg)

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

###  Alternatives

[laravel-admin-ext/wang-editor

wangEditor extension for laravel-admin

6283.4k](/packages/laravel-admin-ext-wang-editor)[jadekun/sku

382.2k](/packages/jadekun-sku)[jonexyz/wang-editor-v4

laravel admin editor

161.4k](/packages/jonexyz-wang-editor-v4)[namet/laravel-admin-tagsinput

tagsinput for laravel-admin Form

102.7k](/packages/namet-laravel-admin-tagsinput)

PHPackages © 2026

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