Add gonoware/laravel-maps package with Laravel 11 support

- Configure Gitea repository for forked package
- Install gonoware/laravel-maps from consultoria-as fork
- Publish maps configuration to config/vendor/maps.php
- Publish public assets to public/vendor/maps

The fork adds Laravel 10/11 compatibility to the original package.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-19 02:25:10 +00:00
parent b1d32c54c1
commit f37cb0b20b
4 changed files with 195 additions and 2 deletions

View File

@@ -7,10 +7,17 @@
"laravel"
],
"license": "MIT",
"repositories": [
{
"type": "vcs",
"url": "https://git.consultoria-as.com/consultoria-as/gonoware-laravel-maps"
}
],
"require": {
"php": "^8.2",
"berkayk/onesignal-laravel": "^2.0",
"coderello/laravel-passport-social-grant": "^4.0",
"gonoware/laravel-maps": "dev-master",
"google/cloud-storage": "*",
"guzzlehttp/guzzle": "^7.8",
"illuminate/database": "^11.0",

93
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "1e55f6d3c3882945b5721d998898b770",
"content-hash": "9a09c8281e9d31911b3f99b9832db951",
"packages": [
{
"name": "berkayk/onesignal-laravel",
@@ -888,6 +888,93 @@
},
"time": "2014-10-08T10:03:04+00:00"
},
{
"name": "gonoware/laravel-maps",
"version": "dev-master",
"source": {
"type": "git",
"url": "https://git.consultoria-as.com/consultoria-as/gonoware-laravel-maps",
"reference": "c5be6dacb4c7a3eb7b034f88865bf5334139c780"
},
"require": {
"illuminate/support": "^9.0|^10.0|^11.0",
"php": "^8.1"
},
"require-dev": {
"mockery/mockery": "^1.4.4",
"phpunit/phpunit": "^9.5.10|^10.0|^11.0"
},
"default-branch": true,
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.0.x-dev"
},
"laravel": {
"providers": [
"GoNoWare\\Maps\\MapsServiceProvider"
]
}
},
"autoload": {
"psr-4": {
"GoNoWare\\Maps\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"build-script": [
"yarn install",
"yarn run prod"
],
"post-install-cmd": [
"@build-script"
],
"post-update-cmd": [
"@build-script"
]
},
"license": [
"MIT"
],
"authors": [
{
"name": "Emanuel Mutschlechner",
"email": "em@gonoware.com"
},
{
"name": "Benedikt Tuschter",
"email": "bt@gonoware.com"
}
],
"description": "Maps for your Laravel application",
"homepage": "https://gitlab.com/gonoware/laravel-maps",
"keywords": [
"bing",
"bingmaps",
"gonoware",
"google",
"googlemaps",
"laravel",
"mapkit",
"mapkitjs",
"mapquest",
"maps",
"openstreetmap",
"osm",
"yandex",
"yandexmaps"
],
"support": {
"issues": "https://gitlab.com/gonoware/laravel-maps/issues",
"source": "https://gitlab.com/gonoware/laravel-maps"
},
"time": "2026-01-19T02:20:59+00:00"
},
{
"name": "google/auth",
"version": "v1.50.0",
@@ -10887,7 +10974,9 @@
],
"aliases": [],
"minimum-stability": "dev",
"stability-flags": {},
"stability-flags": {
"gonoware/laravel-maps": 20
},
"prefer-stable": true,
"prefer-lowest": false,
"platform": {

93
config/vendor/maps.php vendored Normal file
View File

@@ -0,0 +1,93 @@
<?php
return [
/*
|----------------------------------------------------------------------
| Default Map Service Name
|----------------------------------------------------------------------
|
| Here you may specify which of the map services below you wish to use
| as your default service for all displayed maps. Of course you may use many services at once using the Maps library.
| Available maps: 'google', 'osm', 'bing', 'mapquest', 'yandex', 'mapkit'
|
*/
'default' => env('MAPS_SERVICE', 'osm'),
/*
|--------------------------------------------------------------------------
| Map Services
|--------------------------------------------------------------------------
|
| Here are each of the map services setup for your application.
| Of course, examples of configuring each map api that is supported by
| Maps is shown below to make development simple.
|
|
| All proprietary map services require an API Key, so make sure you have
| the key for your particular service of choice defined in your .env
| before you begin development.
|
*/
'services' => [
'google' => [
// https://developers.google.com/maps/documentation/javascript/get-api-key
// https://developers.google.com/maps/documentation/embed/get-api-key
'key' => env('MAPS_GOOGLE_KEY', ''),
// https://developers.google.com/maps/documentation/javascript/maptypes
'type' => 'roadmap', // 'roadmap', 'satellite', 'hybrid', 'terrain',
],
'bing' => [
// https://msdn.microsoft.com/en-us/library/ff428642.aspx
// https://www.bingmapsportal.com
'key' => env('MAPS_BING_KEY', ''),
],
'osm' => [
'type' => 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
],
'yandex' => [
// https://developer.tech.yandex.com/keys
// limited free quota
'key' => env('MAPS_YANDEX_KEY', ''),
],
'mapquest' => [
// https://developer.mapquest.com/plan_purchase/steps/business_edition/business_edition_free/register
// https://developer.mapquest.com/user/me/apps
'key' => env('MAPS_MAPQUEST_KEY', ''),
// https://developer.mapquest.com/documentation/mapquest-js/v1.3/l-mapquest-tile-layer/
'type' => 'map', // 'map', 'hybrid', 'satellite', 'light', 'dark'
],
'mapkit' => [
// https://developer.apple.com/videos/play/wwdc2018/508
// https://developer.apple.com/documentation/mapkitjs/setting_up_mapkit_js?changes=latest_minor
'key' => env('MAPS_MAPKIT_KEY', ''),
// https://developer.apple.com/documentation/mapkitjs/mapkit/map/maptypes
'type' => 'standard', // 'standard', 'hybrid', 'satellite'
],
],
/*
|--------------------------------------------------------------------------
| Maps Enabled
|--------------------------------------------------------------------------
|
| By default, Maps is enabled. You can set the value to false to disable
| rendering of all maps.
|
*/
'enabled' => env('MAPS_ENABLED', true),
];

View File

@@ -0,0 +1,4 @@
/* @preserve
* Leaflet 1.9.2, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/