forked from Snck3rs/contao-leaflet-maps
Run composer require checker and solve issues.
This commit is contained in:
@@ -18,6 +18,7 @@ use Contao\Database\Result;
|
||||
use Contao\Input;
|
||||
use Contao\Model;
|
||||
use Contao\Model\Collection;
|
||||
use Contao\StringUtil;
|
||||
use Netzmacht\Contao\Leaflet\MapProvider;
|
||||
use Netzmacht\Contao\Leaflet\Model\MapModel;
|
||||
use Netzmacht\Contao\Toolkit\Component\Hybrid\AbstractHybrid;
|
||||
@@ -127,8 +128,8 @@ abstract class AbstractMapHybrid extends AbstractHybrid
|
||||
$data['mapId'] = $mapId;
|
||||
|
||||
$style = '';
|
||||
$height = deserialize($this->get('leaflet_height'), true);
|
||||
$width = deserialize($this->get('leaflet_width'), true);
|
||||
$height = StringUtil::deserialize($this->get('leaflet_height'), true);
|
||||
$width = StringUtil::deserialize($this->get('leaflet_width'), true);
|
||||
|
||||
if (!empty($width['value'])) {
|
||||
$style .= 'width:' . $width['value'] . $width['unit'] . ';';
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
|
||||
namespace Netzmacht\Contao\Leaflet\Frontend;
|
||||
|
||||
use Contao\Config;
|
||||
use Contao\Frontend;
|
||||
use Netzmacht\Contao\Leaflet\Filter\Filter;
|
||||
use Netzmacht\Contao\Leaflet\Mapper\Request;
|
||||
|
||||
@@ -72,7 +74,7 @@ class RequestUrl implements \JsonSerializable
|
||||
$query .= '&f=' . $filter->getName() . '&v=' . $filter->toRequest();
|
||||
}
|
||||
|
||||
$url = \Config::get('websitePath') . '/' . \Frontend::addToUrl($query, false);
|
||||
$url = Config::get('websitePath') . '/' . Frontend::addToUrl($query, false);
|
||||
|
||||
return new static($url, $hash, $request);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user