src/GoogleMapAPI.php
function setMarkerIconKey($iconImage,$iconShadow='',$iconAnchorX = 'x',$iconAnchorY = 'x',$infoWindowAnchorX = 'x',$infoWindowAnchorY = 'x'){
    	$_iconKey = $this->getIconKey($iconImage,$iconShadow);
    	if(isset($this->_marker_icons[$_iconKey])){
    		return $_iconKey;
    	}else{
    		return $this->addIcon($iconImage,$iconShadow,$iconAnchorX,$iconAnchorY,$infoWindowAnchorX,$infoWindowAnchorY);
    	}
    }
function setMarkerIconKey($iconImage,$iconShadow='',$iconAnchorX = 'x',$iconAnchorY = 'x',$infoWindowAnchorX = 'x',$infoWindowAnchorY = 'x'){
    	$_iconKey = $this->getIconKey($iconImage,$iconShadow);
    	if(isset($this->_marker_icons[$_iconKey])){
    		return $_iconKey;
    	}else{
    		return $this->addIcon($iconImage,$iconShadow,$iconAnchorX,$iconAnchorY,$infoWindowAnchorX,$infoWindowAnchorY);
    	}
    }
function setMarkerIconKey ( $ iconImage , $ iconShadow = '' , $ iconAnchorX = 'x' , $ iconAnchorY = 'x' , $ infoWindowAnchorX = 'x' , $ infoWindowAnchorY = 'x' ) { $ _iconKey = $ this -> getIconKey ( $ iconImage , $ iconShadow ) ; if ( isset ( $ this -> _marker_icons [ $ _iconKey ] ) ) { return $ _iconKey ; } else { return $ this -> addIcon ( $ iconImage , $ iconShadow , $ iconAnchorX , $ iconAnchorY , $ infoWindowAnchorX , $ infoWindowAnchorY ) ; } }
function to check if icon is in  class "marker_iconset", if it is,
returns the key, if not, creates a new array indice and returns the key
@param string $iconImage URL to icon image
@param string $iconShadowImage URL to shadow image
@param string $iconAnchorX X coordinate for icon anchor point
@param string $iconAnchorY Y coordinate for icon anchor point
@param string $infoWindowAnchorX X coordinate for info window anchor point
@param string $infoWindowAnchorY Y coordinate for info window anchor point
@return string A marker icon key.
function to check if icon is in class marker_iconset if it is returns the key if not creates a new array indice and returns the key