GithubHelp home page GithubHelp logo

yieldstudio / nova-google-polygon Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 6.0 2.41 MB

A Laravel Nova Google polygon field.

License: MIT License

PHP 59.28% JavaScript 5.73% Vue 35.00%
laravel nova google map polygon area

nova-google-polygon's Introduction

Nova Google Polygon Field

Latest Version Total Downloads

This package allows you to add a Google Map polygon editor on your Laravel Nova resources.

screenshot

Requirements

  • PHP 8.1+
  • Laravel Nova 4.0+
  • Laravel Framework 8.0+

Installation

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

composer require yieldstudio/nova-google-polygon

Publish config file (optional):

php artisan vendor:publish --provider="YieldStudio\NovaGooglePolygon\FieldServiceProvider"

Create an app and enable Places API and create credentials to get your API key https://console.developers.google.com

Add the below to your .env file

NOVA_GOOGLE_POLYGON_API_KEY=############################
NOVA_GOOGLE_POLYGON_CENTER_LAT=48.858361
NOVA_GOOGLE_POLYGON_CENTER_LNG=2.336164

Usage

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

use YieldStudio\NovaGooglePolygon\GooglePolygon;
// ....

GooglePolygon::make('Delivery area'),

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security

If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.