/**
  * Run controller and parse the template
  */
 public function run()
 {
     $this->Template = new \BackendTemplate('c4g_geopicker');
     $this->Template->theme = $this->getTheme();
     $this->Template->base = $this->Environment->base;
     $this->Template->language = $GLOBALS['TL_LANGUAGE'];
     $this->Template->title = $GLOBALS['TL_CONFIG']['websiteTitle'];
     $this->Template->headline = $GLOBALS['TL_LANG']['c4g_maps']['geopicker'];
     $this->Template->charset = $GLOBALS['TL_CONFIG']['characterSet'];
     $objMapData = MapDataConfigurator::prepareMapData($this, $this->Database, array('backend' => true, 'type' => 'geopicker'));
     $objMapData['geopicker'] = array('type' => 'backend', 'input_geo_x' => '[name="geoX"]', 'input_geo_y' => '[name="geoY"]');
     //ToDo check if this could be useful in backend (show other elements)
     //$objMapData['starboard']['enable'] = false;
     $this->Template->mapData = $objMapData;
     $this->Template->output();
 }
 /**
  * Run controller and parse the template
  */
 public function run()
 {
     $this->Template = new \BackendTemplate('c4g_geoeditor');
     $this->Template->theme = $this->getTheme();
     $this->Template->base = $this->Environment->base;
     $this->Template->language = $GLOBALS['TL_LANGUAGE'];
     $this->Template->title = $GLOBALS['TL_CONFIG']['websiteTitle'];
     $this->Template->headline = $GLOBALS['TL_LANG']['c4g_maps']['geoeditor'];
     $this->Template->charset = $GLOBALS['TL_CONFIG']['characterSet'];
     $this->c4g_map_layer_switcher = true;
     // get base64 encoded geoData
     $geoData = $this->Input->get('geoData');
     // $this->Template->geoData = base64_decode(chunk_split($geoData));
     $this->Template->geoData = $geoData;
     $objMapData = MapDataConfigurator::prepareMapData($this, $this->Database, array('geoeditor' => true));
     $objMapData['editor']['enable'] = true;
     $objMapData['editor']['type'] = 'backend';
     $objMapData['editor']['open'] = true;
     $objMapData['editor']['data_field'] = '[name="geoData"]';
     $this->Template->mapData = $objMapData;
     $this->Template->output();
 }
 /**
  * Generate module
  */
 protected function compile()
 {
     $this->Template->mapData = MapDataConfigurator::prepareMapData($this, $this->Database);
 }