public function api($config = array())
    {
        $config = array_merge_recursive($config, array(
            'key' => get_config_value('locations.api_key'),
            'service' => $this->_service,
            'libraries' => array()
        ));

        return $this->_render('api_'.$config['service'], $config);
    }
public function api($config = array())
    {
        $config = array_merge_recursive($config, array(
            'key' => get_config_value('locations.api_key'),
            'service' => $this->_service,
            'libraries' => array()
        ));

        return $this->_render('api_'.$config['service'], $config);
    }
public function api ( $ config = array ( ) ) { $ config = array_merge_recursive ( $ config , array ( 'key' => get_config_value ( 'locations.api_key' ) , 'service' => $ this -> _service , 'libraries' => array ( ) ) ) ; return $ this -> _render ( 'api_' . $ config [ 'service' ] , $ config ) ; }
includes location api javascript

@param array of configuration params

@return string html
includes location api javascript