mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-30 12:03:44 +01:00
Move javascript wrapping into an template.
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
TemplateLoader::addFiles(
|
||||
array(
|
||||
'ce_leaflet_map' => 'system/modules/leaflet/templates',
|
||||
'leaflet_map_js' => 'system/modules/leaflet/templates',
|
||||
'mod_leaflet_map' => 'system/modules/leaflet/templates',
|
||||
'be_leaflet_geocode' => 'system/modules/leaflet/templates',
|
||||
'be_leaflet_credits' => 'system/modules/leaflet/templates',
|
||||
|
||||
@@ -74,9 +74,7 @@ $container['leaflet.definition.builder'] = $container->share(function($container
|
||||
$boot = $container['leaflet.boot'];
|
||||
$dispatcher = $container['leaflet.definition.builder.event-dispatcher'];
|
||||
|
||||
$encoder = new Encoder($dispatcher, new Output(), JSON_UNESCAPED_SLASHES);
|
||||
$builder = new Builder($encoder, $dispatcher);
|
||||
$leaflet = new Leaflet($builder);
|
||||
$leaflet = new Leaflet($dispatcher, array(), JSON_UNESCAPED_SLASHES);
|
||||
|
||||
return $boot->initializeLeafletBuilder($leaflet);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user