dev-master
9999999-dev http://github.com/looptribe/form-spatialSpatial support for Smyonfy2 forms with Google Maps
MIT
The Requires
by looptribe
form admin spatial gmaps
Spatial support for Smyonfy2 forms with Google Maps
Spatial support for Symfony2 forms with Google Maps., (*1)
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)
``` 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)
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) // ... ; }
At the moment only the geography Point
type is supported., (*7)
Spatial support for Smyonfy2 forms with Google Maps
MIT
form admin spatial gmaps