vendor/con4gis/maps/Resources/contao/config/config.php line 24

Open in your IDE?
  1. <?php
  2. /**
  3.  * con4gis - the gis-kit
  4.  *
  5.  * @version   php 7
  6.  * @package   con4gis
  7.  * @author    con4gis contributors (see "authors.txt")
  8.  * @license   GNU/LGPL http://opensource.org/licenses/lgpl-3.0.html
  9.  * @copyright Küstenschmiede GmbH Software & Design 2011 - 2018
  10.  * @link      https://www.kuestenschmiede.de
  11.  */
  12. $GLOBALS['con4gis']['maps']['installed'] = true;
  13. $GLOBALS['con4gis']['maps']['debug'] = false;
  14. $GLOBALS['con4gis']['maps']['ol-version'] = '4.6.5';
  15. $GLOBALS['con4gis']['maps']['ol-cesium-version'] = 'v1.36';
  16. $GLOBALS['con4gis']['maps']['olms-version'] = '2.10.4';
  17. /**
  18.  * Sourcetable definition
  19.  */
  20. if (!$GLOBALS['con4gis']['maps']['sourcetable'])
  21. {
  22.     $GLOBALS['con4gis']['maps']['sourcetable'] = array();
  23. }
  24. $GLOBALS['con4gis']['maps']['sourcetable']['tl_calendar_events'] = array
  25. (
  26.     'ptable'        => 'tl_calendar',
  27.     'ptable_option' => 'title',
  28.     'geox'          => 'c4g_loc_geox',
  29.     'geoy'          => 'c4g_loc_geoy',
  30.     'label'         => 'c4g_loc_label',
  31.     'locstyle'      => 'c4g_locstyle',
  32.     'tooltip'       => 'title',
  33.     'popup'         => '{{event::[id]}},[startDate:date]',
  34.     /** other example with start- and endDate ->
  35.      * 'popup'         => '{{event::[id]}},(,[startDate:date],-,[endDate:date],)',
  36.      */
  37.     'linkurl'       => '{{event_url::[id]}}',
  38.     'sqlwhere'      => 'published = 1',
  39.     'alias_getparam'=> 'events',
  40.     'title'         => 'title'
  41. );
  42. $GLOBALS['con4gis']['maps']['sourcetable']['tl_calendar_events_with_tags'] = array
  43. (
  44.     'ptable'        => 'tl_calendar',
  45.     'ctable'        => 'tl_tag',
  46.     'ptable_option' => 'title',
  47.     'ctable_option' => 'tag',
  48.     'ptype'         => 'tag',
  49.     'geox'          => 'c4g_loc_geox',
  50.     'geoy'          => 'c4g_loc_geoy',
  51.     'label'         => 'c4g_loc_label',
  52.     'locstyle'      => 'c4g_locstyle',
  53.     'tooltip'       => 'title',
  54.     'popup'         => '{{event::[id]}},[startDate:date]',
  55.     /** other example with start- and endDate ->
  56.      * 'popup'         => '{{event::[id]}},(,[startDate:date],-,[endDate:date],)',
  57.      */
  58.     'linkurl'       => '{{event_url::[id]}}',
  59.     'sqlwhere'      => 'published = 1',
  60.     'ctable_where'      => 'from_table ="tl_calendar_events"',
  61.     'alias_getparam'=> 'events',
  62.     'title'         => 'title',
  63.     'tags'          => 'tags'
  64. );
  65. $GLOBALS['con4gis']['maps']['sourcetable']['tl_content'] = array
  66. (
  67.     'geox'          => 'c4g_loc_geox',
  68.     'geoy'          => 'c4g_loc_geoy',
  69.     'label'         => 'c4g_loc_label',
  70.     'locstyle'      => 'c4g_locstyle',
  71.     'tooltip'       => 'c4g_loc_tooltip',
  72.     'title'         => 'title'
  73. );
  74. /*
  75. $GLOBALS['con4gis']['maps']['sourcetable']['tl_content_with_tags'] = array
  76. (
  77.     'ctable'        => 'tl_tag',
  78.     'ctable_option' => 'tag',
  79.     'geox'          => 'c4g_loc_geox',
  80.     'geoy'          => 'c4g_loc_geoy',
  81.     'label'         => 'c4g_loc_label',
  82.     'locstyle'      => 'c4g_locstyle',
  83.     'tooltip'       => 'headline',
  84.     'popup'         => '{{event::[id]}},[startDate:date]',
  85.     'title'         => 'title'
  86. );*/
  87. $GLOBALS['con4gis']['maps']['sourcetable']['tl_member'] = array
  88. (
  89.     'geox'          => 'c4g_loc_geox',
  90.     'geoy'          => 'c4g_loc_geoy',
  91.     'label'         => 'c4g_loc_label',
  92.     'locstyle'      => 'c4g_locstyle',
  93.     'popup'         => '[firstname:string],[lastname:string]',
  94.     'tooltip'       => 'firstname'
  95. );
  96. /**
  97.  * Backend Modules
  98.  */
  99. array_insert($GLOBALS['BE_MOD']['con4gis'], 2, array
  100.     (
  101.         'c4g_map_baselayers' => array
  102.         (
  103.             'tables' => array('tl_c4g_map_baselayers''tl_c4g_map_overlays'),
  104.             'icon' => 'bundles/con4gismaps/images/be-icons/baselayers.png',
  105.             'javascript'     => 'bundles/con4gismaps/js/c4g-maps-backend.js'
  106.         ),
  107.         'c4g_map_locstyles' => array
  108.         (
  109.             'tables' => array('tl_c4g_map_locstyles'),
  110.             'icon' => 'bundles/con4gismaps/images/be-icons/locstyles.png',
  111.         ),
  112.         'c4g_map_themes'    => array
  113.         (
  114.             'tables' => array('tl_c4g_map_themes'),
  115.             'icon'  => 'bundles/con4gismaps/images/be-icons/themes.png',
  116.         ),
  117.         'c4g_map_profiles' => array
  118.         (
  119.             'tables' => array('tl_c4g_map_profiles'),
  120.             'icon' => 'bundles/con4gismaps/images/be-icons/profiles.png',
  121.         ),
  122.         'c4g_maps' => array
  123.         (
  124.             'tables' => array('tl_c4g_maps'),
  125.             'icon' => 'bundles/con4gismaps/images/be-icons/mapstructure.png',
  126.             'javascript'     => 'bundles/con4gismaps/js/c4g-maps-backend.js'
  127.         ),
  128.     ));
  129. /**
  130.  * Frontend modules
  131.  */
  132. array_insert($GLOBALS['FE_MOD']['con4gis'], 1, array
  133.     (
  134.         'c4g_maps' => 'con4gis\MapsBundle\Resources\contao\modules\ModuleC4gMaps',
  135.     ));
  136. /**
  137.  * Content elements
  138.  */
  139. array_insert($GLOBALS['TL_CTE']['con4gis'], 1, array
  140.     (
  141.         'c4g_maps' => 'con4gis\MapsBundle\Resources\contao\modules\ContentC4gMaps',
  142.     ));
  143. $apiBaseUrl 'con4gis';
  144. $GLOBALS['con4gis']['maps']['api']['baselayer'] = $apiBaseUrl '/baseLayerService';
  145. $GLOBALS['con4gis']['maps']['api']['layer'] = $apiBaseUrl '/layerService';
  146. $GLOBALS['con4gis']['maps']['api']['layercontent'] = $apiBaseUrl '/layerContentService';
  147. $GLOBALS['con4gis']['maps']['api']['editor'] = $apiBaseUrl '/editorService';
  148. $GLOBALS['con4gis']['maps']['api']['locstyle'] = $apiBaseUrl '/locationStyleService';
  149. $GLOBALS['con4gis']['maps']['api']['infowindow'] = $apiBaseUrl '/infoWindowService';
  150. $GLOBALS['con4gis']['maps']['api']['geosearch'] = $apiBaseUrl '/nominatimService';
  151. $GLOBALS['con4gis']['maps']['api']['geosearch_reverse'] = $apiBaseUrl '/reverseNominatimService';
  152. $GLOBALS['con4gis']['maps']['api']['routing'] = $apiBaseUrl '/routingService';
  153. $GLOBALS['con4gis']['maps']['api']['geopicker'] = $apiBaseUrl '/geopickerService';
  154. /**
  155.  * Specialized Widgets for Text Input and Image Sizes
  156.  */
  157. // @TODO maybe move to core
  158. $GLOBALS['BE_FFL']['c4g_text'] = '\TextField';
  159. $GLOBALS['BE_FFL']['c4g_imageSize'] = 'con4gis\MapsBundle\Resources\contao\classes\ImageSize';
  160. $GLOBALS['TL_MODELS']['tl_c4g_maps'] = 'con4gis\MapsBundle\Resources\contao\models\C4gMapsModel';
  161. $GLOBALS['TL_MODELS']['tl_c4g_map_profiles'] = 'con4gis\MapsBundle\Resources\contao\models\C4gMapProfilesModel';
  162. $GLOBALS['TL_MODELS']['tl_c4g_map_baselayers'] = 'con4gis\MapsBundle\Resources\contao\models\C4gMapBaselayersModel';
  163. $GLOBALS['TL_MODELS']['tl_c4g_map_themes'] = 'con4gis\MapsBundle\Resources\contao\models\C4gMapThemesModel';
  164. $GLOBALS['TL_MODELS']['tl_c4g_map_locstyles'] = 'con4gis\MapsBundle\Resources\contao\models\C4gMapLocstylesModel';
  165. $GLOBALS['TL_MODELS']['tl_c4g_map_overlays'] = 'con4gis\MapsBundle\Resources\contao\models\C4gMapOverlaysModel';