Download the PHP package chuchu-z/laravel-admin-ext-latlong without Composer
On this page you can find all versions of the php package chuchu-z/laravel-admin-ext-latlong. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download chuchu-z/laravel-admin-ext-latlong
More information about chuchu-z/laravel-admin-ext-latlong
Files in chuchu-z/laravel-admin-ext-latlong
Package laravel-admin-ext-latlong
Short Description Latitude & Longitude selector
License MIT
Homepage https://github.com/chuchu-z/laravel-admin-ext-latlong
Informations about the package laravel-admin-ext-latlong
原经纬度选择器作者很久没更新了, 我使用腾讯地图选点的时候觉得很难用, 因为搜索结果的点总是遮挡住我要选的点, 只能自己稍微做修改自用
安装
配置腾讯地图服务
修改后的版本使用到了腾讯地图的 WebService API, 所以需要去注册腾讯位置服务注册账户创建一个 Key 和 Secret key
选择签名校验, 获取到Secret key
然后需要在配额管理 - 账户额度 里, 修改 关键词输入提示 这项, 点击配额分配, 填写到最大值, 提交即可, 一天10000次调用, 正常情况都是够用的, 如果额度不够用就只能去升级企业开发者了
最后把生成的 Key 和签名校验的 Secret key 加到.env配置文件即可正常使用
以下是原作者的介绍中关于使用说明部分
经纬度选择器/Latitude and longitude selector
这个扩展用来帮助你在form表单中选择经纬度,用来替代Laravel-admin
中内置的Form\Field\Map
组件, 组件支持的地图包括Google map
、百度地图
、高德地图
、腾讯地图
、Yandex 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
, Yandex map
.
Installation
Configuration
Open config/admin.php
and add the following configuration to the extensions section:
Usage
Suppose you have two fields latitude
and longitude
in your table that represent latitude and longitude, then use the following in the form:
Use in show page