David Molineus e505651cd9 Allow Contao 4.5.
2018-02-06 13:12:35 +01:00
2017-11-14 09:54:33 +01:00
2017-10-04 11:13:42 +02:00
2018-02-06 13:12:35 +01:00
2017-10-04 11:15:37 +02:00
2017-10-04 11:10:03 +02:00

Leaflet geocode widget

Build Status Version License Downloads Contao Community Alliance coding standard

This extension provides an widget to pick coordinates from a map. It uses the leaflet framework.

Changlog

See CHANGELOG.

Requirements

  • Contao ~4.4

Install

1. Install using composer

php composer.phar require netzmacht/contao-leaflet-geocode-widget

2. Update your AppKernel.php

git If you use the managed edition of Contao you can skip this step.


  // Dependency is automatically installed and has to be registered
  new Contao\CoreBundle\HttpKernel\Bundle\ContaoModuleBundle('leaflet-libs', $this->getRootDir()),
  
  // Register the bundle
  new Netzmacht\Contao\Leaflet\GeocodeWidget\LeafletGeocodeWidgetBundle(),

3. Update the assets

bin/console assets:install --symlink

4. Use the widget

$GLOBALS['TL_DCA']['tl_example']['fields']['coordinates'] = [
    'label'     => ['Koordinaten', 'Geben Sie die Koordinaten ein'],
    'inputType' => 'leaflet_geocode',
    'eval'      => [
        'tl_class' => 'w50',
    ],
    'sql' => 'varchar(255) NOT NULL default \'\''
];
Description
No description provided
Readme 132 KiB
Languages
PHP 55.8%
JavaScript 42%
CSS 2.2%