laravel-admin-extensions / latlong

A latitude & longitude selector
MIT License
69 stars 35 forks source link

Map not working #32

Closed sd-evo closed 4 years ago

sd-evo commented 4 years ago

Site on local. PHP: 7.3 Laravel: v7.2.2 Laravel-admin: v1.8.2

Method Encore\Admin\Latlong\Latlong::zoom does not exist.

$form->latlong('content->lat', 'content->lon', 'Position')->zoom(5);

If use:

$form->latlong('content->lat', 'content->lon', 'Местоположение')->default(['zoom' => 5]);

Then:

Снимок экрана от 2020-09-02 21-07-58

In config/admin.php:

'extensions' => [
        'latlong' => [
            'enable' => true,
            'default' => 'yandex',
            'providers' => [
                'google' => [
                    'api_key' => env('GOOGLE_MAP_API_KEY'),
                ],
                'yandex' => [
                    'api_key' => env('YANDEX_MAP_API_KEY'),
                ],
            ]
        ],
    ],
jeff-forest commented 4 years ago

https://github.com/laravel-admin-extensions/latlong/pull/31 <-- zishang520 commented yesterday for fixes

sd-evo commented 4 years ago

@jeff-forest omg, thx :+1: @z-song please, see #31

sd-evo commented 4 years ago

@z-song thx :+1: