2017 © Pedro Peláez
 

symfony-bundle sonata-spatial

Spatial support for Smyonfy2 forms with Google Maps

image

looptribe/sonata-spatial

Spatial support for Smyonfy2 forms with Google Maps

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Form Spatial Bundle

Spatial support for Symfony2 forms with Google Maps., (*1)

Package version, (*2)

This package is a Symfony2 forms integration of creof/doctrine2-spatial. It adds a new form type point to edit spatial Point types with Google Maps., (*3)

Installation

``` bash $ php composer.phar require looptribe/form-spatial dev-master, (*4)


``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Looptribe\FormSpatialBundle\LooptribeFormSpatialBundle(), // ... ); }

``` yml, (*5)

app/config/parameters.yml

parameters: looptribe.formspatial.google_maps_api_key: YOUR_API_KEY, (*6)


## Usage When you create a form set your Point field type as `Looptribe\FormSpatialBundle\Form\Type\PointType`: ``` php <?php public function buildForm(FormBuilderInterface $builder, array $options) { $builder // ... ->add('location', Looptribe\FormSpatialBundle\Form\Type\PointType::class) // ... ; }

Development

At the moment only the geography Point type is supported., (*7)

The Versions

21/09 2015

dev-master

9999999-dev http://github.com/looptribe/form-spatial

Spatial support for Smyonfy2 forms with Google Maps

  Sources   Download

MIT

The Requires

 

form admin spatial gmaps