Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Latest commit

 

History

History
88 lines (73 loc) · 3.47 KB

README.md

File metadata and controls

88 lines (73 loc) · 3.47 KB

laravel-admin-leaflet

Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status

Package Rank Latest Stable Version Latest Unstable Version License composer.lock

_2018-10-23_16-33-59

  • Vendor: bavix
  • Package: laravel-admin-leaflet
  • Version: Latest Stable Version
  • PHP Version: 7.1+
  • Laravel Version: 5.7+
  • Composer: composer require bavix/laravel-admin-leaflet

Get Started

composer require bavix/laravel-admin-leaflet

How to use?

Enable leaflet in config. config/admin.php

    'extensions' => [
        'leaflet' => [
            'enable' => true,
        ],
    ],

Write in the YourController.php

$form->leaflet('latitude', 'longitude');

Configuration

    /*
    |--------------------------------------------------------------------------
    | Settings for extensions.
    |--------------------------------------------------------------------------
    |
    | You can find all available extensions here
    | https://github.com/laravel-admin-extensions.
    |
    */
    'extensions' => [
        'leaflet' => [
            'enable' => true,
            'config' => [
                // tileLayer
                'tile' => \Bavix\Leaflet\Tiles\OpenStreetMapDE::class, // default \Bavix\Leaflet\Tiles\Sputnik::class

                // marker zoom
                'zoom' => 13, // default maxZoom - 1

                // style GeoSearchControl
                'style' => 'button', // default 'bar'

                // 'bing' or 'google' or 'locationIQ' or 'esri'
                'geoProvider' => 'bing', // default 'OpenStreetMap'
            ],
            'keys' => [
                'bing' => '__YOUR_BING_KEY__',
                'google' => '__YOUR_GOOGLE_KEY__',
                'locationIQ' => '__YOUR_LOCATIONIQ_KEY__',
            ],
        ],
    ],

Supported by

Supported by JetBrains