public function addInfoWindow(array $options = []) {
		$defaults = $this->_runtimeConfig['infoWindow'];
		$options += $defaults;

		if (!empty($options['lat']) && !empty($options['lng'])) {
			$position = 'new google.maps.LatLng(' . $options['lat'] . ', ' . $options['lng'] . ')';
		} else {
			$position = ' ' . $this->name() . ' .getCenter()';
		}

		$windows = "
			gInfoWindows" . static::$mapCount . ".push(new google.maps.InfoWindow({
					position: {$position},
					content: " . $this->escapeString($options['content']) . ",
					maxWidth: {$options['maxWidth']},
					pixelOffset: {$options['pixelOffset']}
					/*zIndex: {$options['zIndex']},*/
			}));
			";
		$this->map .= $windows;
		return static::$infoWindowCount++;
	}
public function addInfoWindow(array $options = []) {
		$defaults = $this->_runtimeConfig['infoWindow'];
		$options += $defaults;

		if (!empty($options['lat']) && !empty($options['lng'])) {
			$position = 'new google.maps.LatLng(' . $options['lat'] . ', ' . $options['lng'] . ')';
		} else {
			$position = ' ' . $this->name() . ' .getCenter()';
		}

		$windows = "
			gInfoWindows" . static::$mapCount . ".push(new google.maps.InfoWindow({
					position: {$position},
					content: " . $this->escapeString($options['content']) . ",
					maxWidth: {$options['maxWidth']},
					pixelOffset: {$options['pixelOffset']}
					/*zIndex: {$options['zIndex']},*/
			}));
			";
		$this->map .= $windows;
		return static::$infoWindowCount++;
	}
public function addInfoWindow ( array $ options = [ ] ) { $ defaults = $ this -> _runtimeConfig [ 'infoWindow' ] ; $ options += $ defaults ; if ( ! empty ( $ options [ 'lat' ] ) && ! empty ( $ options [ 'lng' ] ) ) { $ position = 'new google.maps.LatLng(' . $ options [ 'lat' ] . ', ' . $ options [ 'lng' ] . ')' ; } else { $ position = ' ' . $ this -> name ( ) . ' .getCenter()' ; } $ windows = "
			gInfoWindows" . static :: $ mapCount . ".push(new google.maps.InfoWindow({
					position: {$position},
					content: " . $ this -> escapeString ( $ options [ 'content' ] ) . ",
					maxWidth: {$options['maxWidth']},
					pixelOffset: {$options['pixelOffset']}
					/*zIndex: {$options['zIndex']},*/
			}));
			" ; $ this -> map .= $ windows ; return static :: $ infoWindowCount ++ ; }
Creates a new InfoWindow.

@param array $options
- lat, lng, content, maxWidth, pixelOffset, zIndex
@return int windowCount
Creates a new InfoWindow .