jexme/nova-yandex-map-coordionate-picker

Coordinate picker on Yandex Map for Laravel Nova

v1.0.1 2022-06-10 11:01 UTC

This package is auto-updated.

Last update: 2022-07-10 11:11:29 UTC


README

This field allows you to select coordinates from Yandex.Maps for Laravel Nova

Example map

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require jexme/nova-yandex-map-coordionate-picker

Now publish config and localization files:

php artisan vendor:publish --tag=yandex-map-picker-config
php artisan vendor:publish --tag=yandex-map-picker-lang

Add your api key to .env file

YANDEX_MAP_PICKER_API_KEY=#######################

Usage

Add the use declaration to your resource and use the fields:

use Jexme\YandexMapPicker\YandexMapPicker;
// ....

YandexMapPicker::make('Coordinates'),

// also you can set zoom from 1 to 20 (default: 12)
YandexMapPicker::make('Coordinates')->setZoom(12),