Implement zoomSnap and zoomDelta.

This commit is contained in:
David Molineus
2016-10-11 10:25:28 +02:00
parent 1eba70b5b4
commit f22906b8b6
3 changed files with 36 additions and 2 deletions

View File

@@ -128,7 +128,9 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array
),
'adjustZoomExtra' => array(
'minZoom',
'maxZoom'
'maxZoom',
'zoomSnap',
'zoomDelta',
),
'locate' => array(
':hide',
@@ -289,6 +291,34 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array
),
'sql' => "int(4) NULL"
),
'zoomSnap' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomSnap'],
'exclude' => true,
'inputType' => 'text',
'eval' => array(
'maxlength' => 4,
'rgxp' => 'digit',
'tl_class' => 'w50',
'includeBlankOption' => true,
'nullIfEmpty' => true
),
'sql' => "varchar(4) NULL"
),
'zoomDelta' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomDelta'],
'exclude' => true,
'inputType' => 'text',
'eval' => array(
'maxlength' => 4,
'rgxp' => 'digit',
'tl_class' => 'w50',
'includeBlankOption' => true,
'nullIfEmpty' => true
),
'sql' => "varchar(4) NULL"
),
'dragging' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['dragging'],