{"id":13532532,"url":"https://github.com/bavix/laravel-admin-leaflet","last_synced_at":"2025-04-01T20:32:10.412Z","repository":{"id":43583713,"uuid":"154324728","full_name":"bavix/laravel-admin-leaflet","owner":"bavix","description":"OpenStreetMap for laravel-admin","archived":true,"fork":false,"pushed_at":"2021-09-29T06:15:44.000Z","size":21,"stargazers_count":29,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-29T10:08:02.046Z","etag":null,"topics":["extension","laravel","laravel-admin","leaflet","leafletjs","map","open-street-map"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bavix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-23T12:32:01.000Z","updated_at":"2024-05-03T10:27:01.000Z","dependencies_parsed_at":"2022-07-12T18:19:11.324Z","dependency_job_id":null,"html_url":"https://github.com/bavix/laravel-admin-leaflet","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bavix%2Flaravel-admin-leaflet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bavix%2Flaravel-admin-leaflet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bavix%2Flaravel-admin-leaflet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bavix%2Flaravel-admin-leaflet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bavix","download_url":"https://codeload.github.com/bavix/laravel-admin-leaflet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245709053,"owners_count":20659642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["extension","laravel","laravel-admin","leaflet","leafletjs","map","open-street-map"],"created_at":"2024-08-01T07:01:11.668Z","updated_at":"2025-04-01T20:32:10.384Z","avatar_url":"https://github.com/bavix.png","language":"PHP","funding_links":[],"categories":["扩展包"],"sub_categories":["字段类扩展包"],"readme":"laravel-admin-leaflet\n======\n\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/bavix/laravel-admin-leaflet/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/bavix/laravel-admin-leaflet/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/bavix/laravel-admin-leaflet/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/bavix/laravel-admin-leaflet/?branch=master)\n[![Build Status](https://scrutinizer-ci.com/g/bavix/laravel-admin-leaflet/badges/build.png?b=master)](https://scrutinizer-ci.com/g/bavix/laravel-admin-leaflet/build-status/master)\n[![Code Intelligence Status](https://scrutinizer-ci.com/g/bavix/laravel-admin-leaflet/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence)\n\n[![Package Rank](https://phppackages.org/p/bavix/laravel-admin-leaflet/badge/rank.svg)](https://packagist.org/packages/bavix/laravel-admin-leaflet)\n[![Latest Stable Version](https://poser.pugx.org/bavix/laravel-admin-leaflet/v/stable)](https://packagist.org/packages/bavix/laravel-admin-leaflet)\n[![Latest Unstable Version](https://poser.pugx.org/bavix/laravel-admin-leaflet/v/unstable)](https://packagist.org/packages/bavix/laravel-admin-leaflet)\n[![License](https://poser.pugx.org/bavix/ip/license)](https://packagist.org/packages/bavix/laravel-admin-leaflet)\n[![composer.lock](https://poser.pugx.org/bavix/laravel-admin-leaflet/composerlock)](https://packagist.org/packages/bavix/laravel-admin-leaflet)\n\n![_2018-10-23_16-33-59](https://user-images.githubusercontent.com/5111255/47364262-8ad4fd00-d6e1-11e8-846f-8a44b59993ea.png)\n\n* **Vendor**: bavix\n* **Package**: laravel-admin-leaflet\n* **Version**: [![Latest Stable Version](https://poser.pugx.org/bavix/laravel-admin-leaflet/v/stable)](https://packagist.org/packages/bavix/laravel-admin-leaflet)\n* **PHP Version**: 7.1+ \n* **Laravel Version**: 5.7+ \n* **[Composer](https://getcomposer.org/):** `composer require bavix/laravel-admin-leaflet`\n\nGet Started\n---\n```\ncomposer require bavix/laravel-admin-leaflet\n```\n\nHow to use?\n---\n\nEnable `leaflet` in config. config/admin.php\n```\n    'extensions' =\u003e [\n        'leaflet' =\u003e [\n            'enable' =\u003e true,\n        ],\n    ],\n```\n\nWrite in the YourController.php\n```\n$form-\u003eleaflet('latitude', 'longitude');\n```\n\nConfiguration\n----\n\n```\n    /*\n    |--------------------------------------------------------------------------\n    | Settings for extensions.\n    |--------------------------------------------------------------------------\n    |\n    | You can find all available extensions here\n    | https://github.com/laravel-admin-extensions.\n    |\n    */\n    'extensions' =\u003e [\n        'leaflet' =\u003e [\n            'enable' =\u003e true,\n            'config' =\u003e [\n                // tileLayer\n                'tile' =\u003e \\Bavix\\Leaflet\\Tiles\\OpenStreetMapDE::class, // default \\Bavix\\Leaflet\\Tiles\\Sputnik::class\n\n                // marker zoom\n                'zoom' =\u003e 13, // default maxZoom - 1\n\n                // style GeoSearchControl\n                'style' =\u003e 'button', // default 'bar'\n\n                // 'bing' or 'google' or 'locationIQ' or 'esri'\n                'geoProvider' =\u003e 'bing', // default 'OpenStreetMap'\n            ],\n            'keys' =\u003e [\n                'bing' =\u003e '__YOUR_BING_KEY__',\n                'google' =\u003e '__YOUR_GOOGLE_KEY__',\n                'locationIQ' =\u003e '__YOUR_LOCATIONIQ_KEY__',\n            ],\n        ],\n    ],\n```\n\n---\nSupported by\n\n[![Supported by JetBrains](https://cdn.rawgit.com/bavix/development-through/46475b4b/jetbrains.svg)](https://www.jetbrains.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbavix%2Flaravel-admin-leaflet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbavix%2Flaravel-admin-leaflet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbavix%2Flaravel-admin-leaflet/lists"}