jexme/nova-yandex-map-coordionate-picker

Coordinate picker on Yandex Map for Laravel Nova

v1.0.2 2023-03-03 12:50 UTC

This package is auto-updated.

Last update: 2024-10-28 09:31:42 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),