1: <?php
2:
3: namespace Mapbender\CoreBundle\Element;
4:
5: use Mapbender\CoreBundle\Component\Element;
6:
7: 8: 9: 10: 11:
12: class Overview extends Element
13: {
14:
15: 16: 17:
18: static public function getClassTitle()
19: {
20: return "Overview";
21: }
22:
23: 24: 25:
26: static public function getClassDescription()
27: {
28: return "Renders a small overview map";
29: }
30:
31: 32: 33:
34: static public function getClassTags()
35: {
36: return array('Overview', "Map's overview");
37: }
38:
39: 40: 41:
42: public static function getDefaultConfiguration()
43: {
44: return array(
45: 'title' => 'Overview',
46: 'tooltip' => "Overview",
47: 'layerset' => null,
48: 'target' => null,
49: 'width' => 200,
50: 'height' => 100,
51: 'anchor' => 'right-top',
52: 'position' => array('0px', '0px'),
53: 'maximized' => true,
54: 'fixed' => true);
55: }
56:
57: 58: 59:
60: public function getWidgetName()
61: {
62: return 'mapbender.mbOverview';
63: }
64:
65: 66: 67:
68: public static function getType()
69: {
70: return 'Mapbender\CoreBundle\Element\Type\OverviewAdminType';
71: }
72:
73: 74: 75:
76: public function getAssets()
77: {
78: return array(
79: 'js' => array('mapbender.element.overview.js'),
80:
81: 'css' => array('mapbender.element.overview.css'));
82: }
83:
84: 85: 86:
87: public function render()
88: {
89: return $this->container->get('templating')
90: ->render('MapbenderCoreBundle:Element:overview.html.twig',
91: array(
92: 'id' => $this->getId(),
93: "title" => $this->getTitle(),
94: 'configuration' => $this->getConfiguration()));
95: }
96:
97: 98: 99:
100: public static function getFormTemplate()
101: {
102: return 'MapbenderManagerBundle:Element:overview.html.twig';
103: }
104: }
105:
106: