diff --git a/module/dca/tl_leaflet_marker.php b/module/dca/tl_leaflet_marker.php
index 1597576..0b406df 100644
--- a/module/dca/tl_leaflet_marker.php
+++ b/module/dca/tl_leaflet_marker.php
@@ -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"
+ ),
),
);
diff --git a/module/dca/tl_leaflet_vector.php b/module/dca/tl_leaflet_vector.php
index 0087082..479d5fd 100644
--- a/module/dca/tl_leaflet_vector.php
+++ b/module/dca/tl_leaflet_vector.php
@@ -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"
+ ),
),
);
diff --git a/module/languages/en/tl_leaflet_marker.php b/module/languages/en/tl_leaflet_marker.php
index 92dbb8c..7303aec 100644
--- a/module/languages/en/tl_leaflet_marker.php
+++ b/module/languages/en/tl_leaflet_marker.php
@@ -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 feature.properties.data.';
diff --git a/module/languages/en/tl_leaflet_vector.php b/module/languages/en/tl_leaflet_vector.php
index 7108a9e..b311aaa 100644
--- a/module/languages/en/tl_leaflet_vector.php
+++ b/module/languages/en/tl_leaflet_vector.php
@@ -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 feature.properties.data.';