mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-01-16 12:25:17 +01:00
Implement custom route for data request to prevent partial rendering of the page and it's possible issues (f.e. form captcha changes) (Close #49).
This commit is contained in:
@@ -90,7 +90,7 @@ class EncoderSubscriber implements EventSubscriberInterface
|
||||
$value = $event->getValue();
|
||||
$encoder = $event->getEncoder();
|
||||
$template = 'L.contao.%s(%s, %s, %s, %s, map);';
|
||||
$method = 'loadFile';
|
||||
$method = 'loadUrl';
|
||||
|
||||
if ($value instanceof OmnivoreLayer) {
|
||||
$url = $value->getUrl();
|
||||
|
||||
Reference in New Issue
Block a user