/** * Returns an array containing the parameter info. * * @since 1.0 * * @return array */ protected function getParameterInfo() { global $smgQPShowTitle, $smgQPTemplate, $smgQPHideNamespace; $params = ParamDefinition::getCleanDefinitions(MapsMapper::getCommonParameters()); $this->service->addParameterInfo($params); $params['staticlocations'] = array('type' => 'mapslocation', 'aliases' => array('locations', 'points'), 'default' => array(), 'islist' => true, 'delimiter' => ';', 'message' => 'semanticmaps-par-staticlocations'); $params['showtitle'] = array('type' => 'boolean', 'aliases' => 'show title', 'default' => $smgQPShowTitle); $params['hidenamespace'] = array('type' => 'boolean', 'aliases' => 'hide namespace', 'default' => $smgQPHideNamespace); $params['template'] = array('default' => $smgQPTemplate); $params['activeicon'] = array('type' => 'string', 'default' => ''); $params['pagelabel'] = array('type' => 'boolean', 'default' => false); // Messages: // semanticmaps-par-staticlocations, semanticmaps-par-forceshow, semanticmaps-par-showtitle, // semanticmaps-par-hidenamespace, semanticmaps-par-centre, semanticmaps-par-template, // semanticmaps-par-geocodecontrol, semanticmaps-par-activeicon semanticmaps-par-markerlabel foreach ($params as $name => &$data) { if (is_array($data) && !array_key_exists('message', $data)) { $data['message'] = 'semanticmaps-par-' . $name; } } $params = array_merge($params, MapsDisplayMap::getCommonMapParams()); return $params; }