forked from Snck3rs/contao-leaflet-maps
Add feature data as additional feature property.
This commit is contained in:
@@ -116,6 +116,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array
|
||||
'riseOffset',
|
||||
'customIcon',
|
||||
),
|
||||
'expert' => array(':hide', 'featureData'),
|
||||
'active' => array('active', 'ignoreForBounds')
|
||||
),
|
||||
),
|
||||
@@ -295,5 +296,17 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array
|
||||
'eval' => array('tl_class' => 'w50'),
|
||||
'sql' => "char(1) NOT NULL default ''"
|
||||
),
|
||||
'featureData' => array
|
||||
(
|
||||
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['featureData'],
|
||||
'exclude' => true,
|
||||
'inputType' => 'textarea',
|
||||
'eval' => array('tl_class' => 'clr lng',
|
||||
'allowHtml' => true,
|
||||
'style' => 'min-height: 40px;',
|
||||
'rte' => 'ace|json'
|
||||
),
|
||||
'sql' => "text NULL"
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -119,6 +119,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array
|
||||
'data' => array(),
|
||||
'popup' => array(':hide','addPopup'),
|
||||
'config' => array(':hide', 'style', 'className', 'clickable'),
|
||||
'expert' => array(':hide', 'featureData'),
|
||||
'active' => array('active', 'ignoreForBounds')
|
||||
),
|
||||
|
||||
@@ -357,5 +358,17 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array
|
||||
'eval' => array('tl_class' => 'w50'),
|
||||
'sql' => "char(1) NOT NULL default ''"
|
||||
),
|
||||
'featureData' => array
|
||||
(
|
||||
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['featureData'],
|
||||
'exclude' => true,
|
||||
'inputType' => 'textarea',
|
||||
'eval' => array('tl_class' => 'clr lng',
|
||||
'allowHtml' => true,
|
||||
'style' => 'min-height: 40px;',
|
||||
'rte' => 'ace|json'
|
||||
),
|
||||
'sql' => "text NULL"
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -4,6 +4,8 @@ $GLOBALS['TL_LANG']['tl_leaflet_marker']['title_legend'] = 'Title and type';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_marker']['content_legend'] = 'Content';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_marker']['config_legend'] = 'Configuration';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_marker']['active_legend'] = 'Activation';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_marker']['expert_legend'] = 'Expert settings';
|
||||
|
||||
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_marker']['new'][0] = 'Create marker';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_marker']['new'][1] = 'Create new marker';
|
||||
@@ -50,3 +52,5 @@ $GLOBALS['TL_LANG']['tl_leaflet_marker']['active'][0] = 'Activate marke
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_marker']['active'][1] = 'Only activated markers are rendered on the map.';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_marker']['ignoreForBounds'][0] = 'Exclude from bounds';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_marker']['ignoreForBounds'][1] = 'Do not include this item in the bounds calculation.';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_marker']['featureData'][0] = 'Feature data';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_marker']['featureData'][1] = 'The marker is transferred as GeoJSON feature. These data is passed as <em>feature.properties.data</em>.';
|
||||
|
||||
@@ -5,6 +5,8 @@ $GLOBALS['TL_LANG']['tl_leaflet_vector']['active_legend'] = 'Activation';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_vector']['config_legend'] = 'Configuration';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_vector']['data_legend'] = 'Vector data';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_vector']['popup_legend'] = 'Popup';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_vector']['expert_legend'] = 'Expert settings';
|
||||
|
||||
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_vector']['new'][0] = 'Create vector';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_vector']['new'][1] = 'Create new vector';
|
||||
@@ -55,3 +57,5 @@ $GLOBALS['TL_LANG']['tl_leaflet_vector']['style'][0] = 'Style';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_vector']['style'][1] = 'Choose a style. If none defined, the default style of leaflet is used.';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_vector']['ignoreForBounds'][0] = 'Exclude from bounds';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_vector']['ignoreForBounds'][1] = 'Do not include this item in the bounds calculation.';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_vector']['featureData'][0] = 'Feature data';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_vector']['featureData'][1] = 'The marker is transferred as GeoJSON feature. These data is passed as <em>feature.properties.data</em>.';
|
||||
|
||||
Reference in New Issue
Block a user