承接 gabrielesbaiz/nova-field-map 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

gabrielesbaiz/nova-field-map

最新稳定版本:1.0.0

Composer 安装命令:

composer require gabrielesbaiz/nova-field-map

包简介

Custom Laravel Nova 4 map detail field

README 文档

README

Latest Version on Packagist Total Downloads

Custom Laravel Nova 4 map detail field.

Original code from iMuMz/NovaFieldMap

Features

  • ✅ Support Leaflet
  • ✅ Support Google Maps
  • ✅ Marker clustering
  • ✅ Map height
  • ✅ Latitude and longitude coordinates
  • ✅ GeoJSON
  • ✅ Marker popup
  • ✅ Custom marker icons

Installation

You can install the package via composer:

composer require gabrielesbaiz/nova-field-map

Usage

use Gabrielesbaiz\NovaFieldMap; NovaFieldMap::make()

Available Methods

Height

NovaFieldMap::make() ->height('400px') // default is 300px 

Google Maps

By default the provider is OpenStreetMaps.
You must set your Google Maps API key (https://developers.google.com/maps/documentation/javascript/get-api-key).

NovaFieldMap::make() ->googleApiKey('') ->googleMapType('roadmap'), // roadmap, satellite or hybrid 

Latitude / Longitude (Point)

NovaFieldMap::make('') ->type('LatLon') ->point($this->my_latitude,$this->my_longitude) 

GeoJSON

NovaFieldMap::make() ->type('GeoJson') ->geoJson('') 

GeoJson Example

{ "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "popup": "I am a Popup" }, "geometry": { "type": "Point", "coordinates": [ 23.8623046875, -30.221101852485987 ] } } ] } 

Popup

NovaFieldMap::make() ->popup('popup') 

Custom Marker Icon

NovaFieldMap::make() ->markerIcon('/images/marker-icon.png') 

You can pass additional parameters to set the icon size and anchor

->markerIcon('/images/marker-icon.png',[100,100],[50,50]) 

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 946
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固