public function apiUrl(array $query = []) {
		$url = $this->_protocol() . static::API;

		if ($this->_runtimeConfig['map']['api']) {
			 $query['v'] = $this->_runtimeConfig['map']['api'];
		}
		if ($this->_runtimeConfig['key']) {
			$query['key'] = $this->_runtimeConfig['key'];
		}

		if ($this->_runtimeConfig['language']) {
			$query['language'] = $this->_runtimeConfig['language'];
		}

		if ($query) {
			$query = http_build_query($query);

			$url .= '?' . $query;
		}

		return $url;
	}
public function apiUrl(array $query = []) {
		$url = $this->_protocol() . static::API;

		if ($this->_runtimeConfig['map']['api']) {
			 $query['v'] = $this->_runtimeConfig['map']['api'];
		}
		if ($this->_runtimeConfig['key']) {
			$query['key'] = $this->_runtimeConfig['key'];
		}

		if ($this->_runtimeConfig['language']) {
			$query['language'] = $this->_runtimeConfig['language'];
		}

		if ($query) {
			$query = http_build_query($query);

			$url .= '?' . $query;
		}

		return $url;
	}
public function apiUrl ( array $ query = [ ] ) { $ url = $ this -> _protocol ( ) . static :: API ; if ( $ this -> _runtimeConfig [ 'map' ] [ 'api' ] ) { $ query [ 'v' ] = $ this -> _runtimeConfig [ 'map' ] [ 'api' ] ; } if ( $ this -> _runtimeConfig [ 'key' ] ) { $ query [ 'key' ] = $ this -> _runtimeConfig [ 'key' ] ; } if ( $ this -> _runtimeConfig [ 'language' ] ) { $ query [ 'language' ] = $ this -> _runtimeConfig [ 'language' ] ; } if ( $ query ) { $ query = http_build_query ( $ query ) ; $ url .= '?' . $ query ; } return $ url ; }
JS maps.google API url.

Options read via configs
- key
- api
- language (iso2: en, de, ja, ...)

You can adds more after the URL like "&key=value&..." via
- query string array: additional query strings (e.g. callback for deferred execution - not supported yet by this helper)

@param array $query
@return string Full URL
JS maps . google API url .