A really smart TYPO3 CMS Map Extension for pretty interaction.
- Use of CSS-Loader by http://codepen.io/martinvd/ from http://cssload.net
- JavaScript-libraries for interactive maps out of the box:
- Install via composer:
composer require typo3-ter/smartmap
- Activate via Extension Manager
- Include static templates
- Include assets (found at EXT:smartmap/Resources/Public/Css and EXT:smartmap/Resources/Public/Js)
- Include assets of map library (which are not included in this extension!)
To provide your data simple follow these steps:
- Implement the Interface
FireLizard\Smartmap\Provider\DataProviderInterface
, e.g. asMy\ExtensionName\Provider\MyDataProvider
. - Register a slot for the signal inside your ext_localconf.php:
// signal-slot to connect with EXT:smartmap
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher')->connect(
\FireLizard\Smartmap\Service\ProviderService::class,
\FireLizard\Smartmap\Service\ProviderService::$getDataProvider_SIGNAL,
function(&$data, $signal) {
$data[] = array('MyDataProvider', 'My\\ExtensionName\\Provider\\MyDataProvider');
},
NULL
);
To use a filterform follow these steps:
- Implement the Interface
FireLizard\Smartmap\Provider\FilterProviderInterface
, e.g. asMy\ExtensionName\Provider\MyFilterProvider
. - Register a slot for the signal inside your ext_localconf.php:
// signal-slot to connect with EXT:smartmap
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher')->connect(
\FireLizard\Smartmap\Service\ProviderService::class,
\FireLizard\Smartmap\Service\ProviderService::$getFilterProvider_SIGNAL,
function(&$data, $signal) {
$data[] = array('MyFilterProvider', 'My\\ExtensionName\\Provider\\MyFilterProvider');
},
NULL
);