code: function (marker) {
  			var markerImg;
  
  			// Reset the previously selected marker
  			if ( typeof prevSelectedMarkerAfter !== 'undefined' ) {
  				prevSelectedMarkerAfter.setIcon( prevSelectedMarkerBefore );
  			}
  
  			// Change the selected marker icon
  			if (this.settings.selectedMarkerImgDim === null) {
  				markerImg = this.markerImage(this.settings.selectedMarkerImg);
  			} else {
  				markerImg = this.markerImage(this.settings.selectedMarkerImg, this.settings.selectedMarkerImgDim.width, this.settings.selectedMarkerImgDim.height);
  			}
  
  			// Save the marker before switching it
  			prevSelectedMarkerBefore = marker.icon;
  
  			marker.setIcon( markerImg );
  
  			// Save the marker to a variable so it can be reverted when another marker is clicked
  			prevSelectedMarkerAfter = marker;
  		}
docs: Change the selected marker image
  
  @param marker {Object} Google Maps marker object