forked from Snck3rs/contao-leaflet-maps
Add loading indicator.
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
namespace Netzmacht\Contao\Leaflet\Dca;
|
||||
|
||||
|
||||
use Netzmacht\Contao\DevTools\Dca\Options\OptionsBuilder;
|
||||
use Netzmacht\Contao\Leaflet\Model\ControlModel;
|
||||
use Netzmacht\Contao\Leaflet\Model\LayerModel;
|
||||
|
||||
class Control
|
||||
@@ -38,4 +40,11 @@ class Control
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
||||
public function getZoomControls()
|
||||
{
|
||||
$collection = ControlModel::findBy('type', 'zoom', array('order' => 'title'));
|
||||
|
||||
return OptionsBuilder::fromCollection($collection, 'id', 'title')->getOptions();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user