. **/ namespace Zabbix\Widgets\Fields; use Zabbix\Widgets\CWidgetField; class CWidgetFieldLatLng extends CWidgetField { public const DEFAULT_VIEW = \CWidgetFieldLatLngView::class; public const DEFAULT_VALUE = ''; /** * Latitude, longitude and zoom level input text box widget field. */ public function __construct(string $name, string $label = null) { parent::__construct($name, $label); $this ->setDefault(self::DEFAULT_VALUE) ->setValidationRules(['type' => API_LAT_LNG_ZOOM]) ->setMaxLength(255); } }