<?php
/**
 * @author       Aicha Vack
 * @package      Joomla.Site
 * @subpackage   com_visforms
 * @link         https://www.vi-solutions.de
 * @license      GNU General Public License version 2 or later; see license.txt
 * @copyright    2017 vi-solutions
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

use Joomla\CMS\HTML\HTMLHelper;

if (!empty($displayData)) {
	if (isset($displayData['form']) && (!empty($displayData['form']->mapCounter))) {
		$menu = empty($displayData['mapcontextmenu']) ? false : $displayData['mapcontextmenu'];
		HTMLHelper::_('visformslocation.includeLocationFieldJs', $menu);
	}
}