Ongoing development.
This commit is contained in:
1 parent
e5d11e8ed6
commit
ee9d293d2e
8 files changed
+60
-20
No files matched your search
@@ -47,14 +47,11 @@ class EncoderSubscriber implements EventSubscriberInterface
|
||||
|
||||
if ($object instanceof Map) {
|
||||
$attribution = <<<HTML
|
||||
map.attributionControl.addAttribution(
|
||||
map.map.attributionControl.addAttribution(
|
||||
'<a href="http://www.netzmacht.de/contao-leaflet">netzmacht <em>creative</em></a>'
|
||||
);
|
||||
HTML;
|
||||
$event->getOutput()->addLine($attribution);
|
||||
|
||||
$event->getOutput()->addLine("var tileLayer = new L.TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: \"test\"});
|
||||
tileLayer.addTo(map);");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user