forked from Snck3rs/contao-leaflet-maps
Ongoing development.
This commit is contained in:
@@ -47,8 +47,9 @@ class EncoderSubscriber implements EventSubscriberInterface
|
||||
|
||||
if ($object instanceof Map) {
|
||||
$attribution = <<<HTML
|
||||
map.map.attributionControl.addAttribution(
|
||||
'<a href="http://www.netzmacht.de/contao-leaflet">netzmacht <em>creative</em></a>'
|
||||
map.map.attributionControl.setPrefix(
|
||||
'<a href="http://www.leafletjs.com" title="A JS library for interactive maps">Leaflet</a> | ' +
|
||||
'<a href="http://www.netzmacht.de/contao-leaflet" title="Leaflet extension for Contao CMS">netzmacht <em>creative</em></a>'
|
||||
);
|
||||
HTML;
|
||||
$event->getOutput()->addLine($attribution);
|
||||
|
||||
Reference in New Issue
Block a user