PHPackages                             binbin8730/amap-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. binbin8730/amap-latlong

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

binbin8730/amap-latlong
=======================

laravel-admin 高德经纬度选择器/Latitude and longitude selector

0.0.1(3y ago)09MITPHPPHP &gt;=7.0.0

Since Sep 1Pushed 3y ago1 watchersCompare

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

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

高德经纬度选择器/Latitude and longitude selector
========================================

[](#高德经纬度选择器latitude-and-longitude-selector)

这个扩展是通过 laravel-admin-ext/latlong:1.x 进行二次开发！

只针对高德地图使用，只针对高德地图使用，只针对高德地图使用 修复了一些BUG

1、增加admin.php api\_secret 参数 2、修改加载地图逻辑，升级到最新版本 1.4.15 3、修复默认没有添加坐标值，显示地图空白问题

Install
-------

[](#install)

```
composer require binbin8730/amap-latlong:*
```

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

[](#configuration)

打开 `config/admin.php` 增加 extensions 配置 :

```
    'extensions' => [

        'amap-latlong' => [

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

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

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

Usage
-----

[](#usage)

字段 `latitude` and `longitude` 分别表示纬度和经度，然后使用以下格式:

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

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

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

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

Use in show page

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

Donate
------

[](#donate)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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

1346d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

extensionlaravel-admin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/binbin8730-amap-latlong/health.svg)

```
[![Health](https://phpackages.com/badges/binbin8730-amap-latlong/health.svg)](https://phpackages.com/packages/binbin8730-amap-latlong)
```

###  Alternatives

[laravel-admin-ext/chartjs

Use Chartjs in laravel-admin

102180.6k1](/packages/laravel-admin-ext-chartjs)[laravel-admin-ext/china-distpicker

Distpicker extension for laravel-admin

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

Sort the grid data by drag and drop rows

42119.3k](/packages/laravel-admin-ext-grid-sortable)[jxlwqq/json-editor

JSON Editor for Laravel-admin

32101.8k](/packages/jxlwqq-json-editor)[jxlwqq/env-manager

Env Manager for Laravel-admin

3719.9k](/packages/jxlwqq-env-manager)[jxlwqq/quill

quill editor for laravel-admin

2427.1k](/packages/jxlwqq-quill)

PHPackages © 2026

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