|
@@ -39,15 +39,16 @@ imports:
|
|
|
- { resource: "@MapBundle/Resources/config/services.yml" }
|
|
|
```
|
|
|
|
|
|
-Requiere además tener instalado los bundles:
|
|
|
+Instalar y habilitar en app/AppKernel.php los bundles:
|
|
|
|
|
|
- http://infra.flowdat.com:10080/VendorSoftwareFlowdat3/LeafletBundle
|
|
|
- http://infra.flowdat.com:10080/VendorSoftwareFlowdat3/ExtraDataBundle
|
|
|
+- http://infra.flowdat.com:10080/VendorSoftwareFlowdat3/Webservice
|
|
|
|
|
|
## 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:
|
|
|
+El bundle agrega un tab en la vista create/edit y show de la entidad con un mapa para seleccionar coordenadas.
|
|
|
+Por ej para la entidad ONU:
|
|
|
|
|
|
```php
|
|
|
use MapBundle\Entity\Interfaces\LocationInterface;
|
|
@@ -58,3 +59,9 @@ class ONU implements LocationInterface
|
|
|
|
|
|
use LocationTrait;
|
|
|
```
|
|
|
+
|
|
|
+Luego correr el comando:
|
|
|
+
|
|
|
+```php
|
|
|
+php bin/console doctrine:schema:update --force
|
|
|
+```
|