defined('_JEXEC') or die('Restricted access'); global $mainframe; // count instances if (!isset($GLOBALS['yoo_maps'])) { $GLOBALS['yoo_maps'] = 1; } else { $GLOBALS['yoo_maps']++; } // include helper require_once dirname(__FILE__) . DS . 'helper.php'; // disable edit ability icon $access = new stdClass(); $access->canEdit = 0; $access->canEditOwn = 0; $access->canPublish = 0; $list = modYOOmapsHelper::getList($params, $access); $items = count($list); // init vars $google_api_key = $params->get('google_api_key', 'abcdefg'); $location = $params->get('location', 'Hamburg, Germany'); $marker_popup = $params->get('marker_popup', 0); $marker_text = $params->get('marker_text', ''); $main_icon = $params->get('main_icon', 'red-dot'); $other_icon = $params->get('other_icon', 'blue-dot'); $zoom_level = $params->get('zoom_level', 13); $map_controls = $params->get('map_controls', 2); $scroll_wheel_zoom = $params->get('scroll_wheel_zoom', 1); $map_type = $params->get('map_type', 0); $type_controls = $params->get('type_controls', 1); $overview_controls = $params->get('overview_controls', 1); $geocode_cache = $params->get('geocode_cache', 1);