diff --git a/composer.json b/composer.json index eca1e0f..b0f7315 100755 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/composer.lock b/composer.lock index dc7fff9..e2cfe6f 100755 --- a/composer.lock +++ b/composer.lock @@ -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": { diff --git a/config/vendor/maps.php b/config/vendor/maps.php new file mode 100644 index 0000000..ac64857 --- /dev/null +++ b/config/vendor/maps.php @@ -0,0 +1,93 @@ + 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), + +]; diff --git a/public/vendor/maps/js/index.js.LICENSE.txt b/public/vendor/maps/js/index.js.LICENSE.txt new file mode 100644 index 0000000..e25f9c4 --- /dev/null +++ b/public/vendor/maps/js/index.js.LICENSE.txt @@ -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 + */