Skip to content

diegomigliavacca/uploadBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

INFOS

The UploadBundle contains a template (named "sidebarright") and two elements (named "UploaderForm" and "UploaderButton"). These elements permit to upload, view and zoom:

  • GPX tracks;

  • KML files (ExtendedData parsing is not supported yet);

  • GeoJSON files.

The element UploaderForm is strictly bound at the bundle, so it's just usable with the templates made available with this bundle, or with similar templates you will build.

The element UploaderButton is usable with every template, it's just a button.


**DOCUMENTATION**

If you didn't find this bundle with your Mapbender3 installation, you need:

  1. Put everything inside the folder SpookyIsland/UploadBundle. Put the SpookyIsland folder inside the application->src folder.

  2. Follow the instructions on the Mapbender3 Docs to enable the bundle, templates and elements. Basically, you need to edit the application->app->AppKernel.php file adding the bundle:

    new SpookyIsland\UploadBundle\SpookyIslandUploadBundle(),

and the MapbenderCoreBundle.php file inside the CoreBundle folder adding:

inside the getTemplates function:

'SpookyIsland\UploadBundle\Template\SidebarRight'

inside the getElements function:

'SpookyIsland\UploadBundle\Element\UploaderButton',
'SpookyIsland\UploadBundle\Element\UploaderForm'
  1. Add the following lines to the application->app->config->routing.yml file:

    spookyisland_uploadbundle: resource: "@SpookyIslandUploadBundle/Resources/config/routing.yml"

  2. Copy the assets to the Web folder using the command:

app/console assets:install web

  1. Upgrade the database using the following command:

app/console doctrine:schema:update --force

The table UpFile will be created.

  1. If you are using PostgreSQL as database, you will need to install the postgresql-contrib package. You need it to use the citext file type. You will have to set the field Name inside the table UpFile at the citext file type if you want to use this feature.

  2. Create a folder named "uploads" inside the application->web folder and give permissions to create and delete files inside the folder.


**UPLOADERBUTTON ELEMENT**

It's better you put the button inside a toolbar. If you want to put it in a different place (e.g. inside the content part of a template), you need to style the button (file mapbender.element.uploaderbutton.css), basically color and position.

About

Mapbender3 upload bundle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published