tareq-alqadi/filament-map-picker
Composer 安装命令:
composer require tareq-alqadi/filament-map-picker
包简介
Easily pick and retrieve geo-coordinates using a map-based interface in your Filament applications.
关键字:
README 文档
README
A custom field for Filament that allows you to effortlessly select a location on a map and retrieve geographical coordinates.
Introduction
Map Picker is a Filament custom field designed to simplify the process of choosing a location on a map and obtaining its geo-coordinates.
- Features include:
- A Field for Filament-v3 with OpenStreetMap Integration
- Receive Real-time Coordinates Upon Marker Movement Completion
- Tailor Controls and Marker Appearance to Your Preferences
- Latest versions of PHP and Filament
- Best practices applied:
README.md(badges included)LICENSEcomposer.json.gitignorepint.json
Supported Maps
Map Picker currently supports the following map:
- Open Street Map (OSM)
Additional map options will be added to the package as needed and tested.
Installation
You can easily install the package via Composer:
composer require dotswan/filament-map-picker
Basic Usage
Resource file:
<?php namespace App\Filament\Resources; use Filament\Resources\Resource; use Filament\Resources\Forms\Form; use Dotswan\MapPicker\Fields\Map; ... class FilamentResource extends Resource { ... public static function form(Form $form) { return $form->schema([ Map::make('location') ->label('Location') ->columnSpanFull() ->afterStateUpdated(function (Get $get, Set $set, ?string $old, ?array $state): void { $set('latitude', $state['lat']); $set('longitude', $state['lng']); }) ->afterStateHydrated(function ($state, $record, Set $set): void { $set('location', ['lat' => $record->latitude, 'lng' => $record->longitude]); }) ->liveLocation() ->showMarker() ->markerColor("#22c55eff") ->showFullscreenControl() ->showZoomControl() ->draggable() ->tilesUrl("http://tile.openstreetmap.de/{z}/{x}/{y}.png") ->zoom(15) ->extraTileControl([]) ->extraControl([ 'zoomDelta' => 1, 'zoomSnap' => 2, ]) ]); } ... }
License
MIT License © Dotswan
Security
We take security seriously. If you discover any bugs or security issues, please help us maintain a secure project by reporting them through our GitHub issue tracker. You can also contact us directly at tech@dotswan.com.
Contribution
We welcome contributions! contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
tareq-alqadi/filament-map-picker 适用场景与选型建议
tareq-alqadi/filament-map-picker 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 110 次下载、GitHub Stars 达 2, 最近一次更新时间为 2024 年 06 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「filament」 「filamentphp」 「map-picker」 「filament-v3」 「filament-map-picker」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 tareq-alqadi/filament-map-picker 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tareq-alqadi/filament-map-picker 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 tareq-alqadi/filament-map-picker 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Filament plugin that integrates tabler icons, allowing you to use them seamlessly across Filament forms, tables, actions, and more.
jitone-ai is a powerful FilamentPHP plugin that integrates AI-powered features directly into your Filament forms.
Send Notification to discord channel Webhook using native FilamentPHP Notification Facade class
Alfabank REST API integration
Filament administration, page editing, recovery, settings, and operations for Capell CMS.
Database-driven onboarding for Filament: progress checklists and guided spotlight tours, translatable to any locale.
统计信息
- 总下载量: 110
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-16