binbin8730/amap-latlong
Composer 安装命令:
composer require binbin8730/amap-latlong
包简介
laravel-admin 高德经纬度选择器/Latitude and longitude selector
关键字:
README 文档
README
这个扩展是通过 laravel-admin-ext/latlong:1.x 进行二次开发!
只针对高德地图使用,只针对高德地图使用,只针对高德地图使用 修复了一些BUG
1、增加admin.php api_secret 参数 2、修改加载地图逻辑,升级到最新版本 1.4.15 3、修复默认没有添加坐标值,显示地图空白问题
Install
composer require binbin8730/amap-latlong:*
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
字段 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
binbin8730/amap-latlong 适用场景与选型建议
binbin8730/amap-latlong 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 09 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「extension」 「laravel-admin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 binbin8730/amap-latlong 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 binbin8730/amap-latlong 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 binbin8730/amap-latlong 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Api tester for laravel
Distpicker extension for laravel-admin
Simditor for Laravel-admin
A custom URL rule class for Yii 2 which allows to create translated URL rules
The Yii2 extension uses jQuery jquery.carousel-1.1.min.js and makes image carousel from php array of structure defined.
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-01