Nav apraksta

Guillermo Espinoza a585b4384e Location form type 7 gadi atpakaļ
Controller a585b4384e Location form type 7 gadi atpakaļ
Entity a585b4384e Location form type 7 gadi atpakaļ
EventListener a585b4384e Location form type 7 gadi atpakaļ
Form a585b4384e Location form type 7 gadi atpakaļ
Resources a585b4384e Location form type 7 gadi atpakaļ
MapBundle.php c3ee23aa84 Commit inicial 7 gadi atpakaļ
README.md 24973d05c0 [WIP] Campo location en form y show action 7 gadi atpakaļ
composer.json 00c5c9827c Update 'composer.json' 7 gadi atpakaļ

README.md

MapBundle

Instalación

composer.json:

"repositories": [
    {
        "type": "vcs",
        "url":  "ssh://git@gogs.infra.flowdat.com:222/VendorSoftwareFlowdat3/MapBundle.git"
    }
],
"require": {
    "ik/map-bundle": "dev-master"
},

app/AppKernel.php:

public function registerBundles()
{
    $bundles = [
        new MapBundle\MapBundle(),
    ];
    .
    .
}

app/config/config.yml:

imports:
    - { resource: "@MapBundle/Resources/config/services.yml" }

Requiere además tener instalado los bundles:

Mapa

Para agregar un campo de tipo Location, el cual agrega un tab en el formulario para agregar coordenadas en el mapa, agregar por ej para la entidad ONU:

use MapBundle\Entity\Interfaces\LocationInterface;
use MapBundle\Entity\Traits\LocationTrait;

class ONU implements LocationInterface
{

    use LocationTrait;