original_string: public function addIcon($image, $shadow = null, array $imageOptions = [], array $shadowOptions = []) {
  		$res = ['url' => $image];
  		$res['icon'] = $this->icon($image, $imageOptions);
  		if ($shadow) {
  			$last = $this->_iconRemember[$res['icon']];
  			if (!isset($shadowOptions['anchor'])) {
  				$shadowOptions['anchor'] = [];
  			}
  			$shadowOptions['anchor'] = $last['options']['anchor'] + $shadowOptions['anchor'];
  
  			$res['shadow'] = $this->icon($shadow, $shadowOptions);
  		}
  		return $res;
  	}
code: public function addIcon($image, $shadow = null, array $imageOptions = [], array $shadowOptions = []) {
  		$res = ['url' => $image];
  		$res['icon'] = $this->icon($image, $imageOptions);
  		if ($shadow) {
  			$last = $this->_iconRemember[$res['icon']];
  			if (!isset($shadowOptions['anchor'])) {
  				$shadowOptions['anchor'] = [];
  			}
  			$shadowOptions['anchor'] = $last['options']['anchor'] + $shadowOptions['anchor'];
  
  			$res['shadow'] = $this->icon($shadow, $shadowOptions);
  		}
  		return $res;
  	}
code_tokens: public function addIcon ( $ image , $ shadow = null , array $ imageOptions = [ ] , array $ shadowOptions = [ ] ) { $ res = [ 'url' => $ image ] ; $ res [ 'icon' ] = $ this -> icon ( $ image , $ imageOptions ) ; if ( $ shadow ) { $ last = $ this -> _iconRemember [ $ res [ 'icon' ] ] ; if ( ! isset ( $ shadowOptions [ 'anchor' ] ) ) { $ shadowOptions [ 'anchor' ] = [ ] ; } $ shadowOptions [ 'anchor' ] = $ last [ 'options' ] [ 'anchor' ] + $ shadowOptions [ 'anchor' ] ; $ res [ 'shadow' ] = $ this -> icon ( $ shadow , $ shadowOptions ) ; } return $ res ; }
docstring: Generate icon array.
  
  custom icon: http://thydzik.com/thydzikGoogleMap/markerlink.php?text=?&color=FFFFFF
  custom icons: http://code.google.com/p/google-maps-icons/wiki/NumericIcons#Lettered_Balloons_from_A_to_Z,_in_10_Colors
  custom shadows: http://www.cycloloco.com/shadowmaker/shadowmaker.htm
  
  @param string $image Image Url (http://...)
  @param string|null $shadow ShadowImage Url (http://...)
  @param array $imageOptions Image options
  @param array $shadowOptions Shadow image options
  @return array Resulting array
docstring_tokens: Generate icon array .