Download the PHP package imokhles/map-drawing-field-for-backpack without Composer
On this page you can find all versions of the php package imokhles/map-drawing-field-for-backpack. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download imokhles/map-drawing-field-for-backpack
More information about imokhles/map-drawing-field-for-backpack
Files in imokhles/map-drawing-field-for-backpack
Package map-drawing-field-for-backpack
Short Description Draw coordinates and save the values easily to your database using Google Map API v3 for Backpack for Laravel
License MIT
Homepage https://github.com/imokhles/map-drawing-field-for-backpack
Informations about the package map-drawing-field-for-backpack
Map Drawing Field for Backpack 4
This package provides a field type for the Backpack for Laravel administration panel. The field allows admins to draw coordinates for specific areas on the map directly. It uses Google Map (Drawing) API V3.
Video
https://user-images.githubusercontent.com/1247248/136907629-c975068a-5bd8-4d97-b278-a77a48914b78.mov
Requirements
How to use ( Polygon Example )
- Edit your Model after installing Laravel MySQL Spatial extension
- Use
SpatialTrait
within your model -
Add your area column name inside
$spatialFields
- Edit your xxxCrudController
-
Import
LineString
,Point
,Polygon
- Overwrite
CreateOperation's
andUpdateOperation's
store
andupdate
functions to reformat the data before saving it
Installation
Via Composer
Usage
Inside your custom CrudController:
Notice the attribute - make sure that is exactly as above, to tell Backpack to load the field from this addon package, instead of assuming it's inside the Backpack\CRUD package.
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email the author instead of using the issue tracker.
Credits
- iMokhles - created the map-drawing field;
- Cristian Tabacitu - Backpack for Laravel;
- Google - Google Map API;
- All Contributors
License
MIT. Please see the license file for more information.