public function deleteMarker($index = null)
	{
		$markers = $this->listMarkers();

		if ($index === null)
		{
			$index = count($markers) - 1;
		}

		if ($index >= count($markers) || $index < 0)
		{
			throw new OutOfBoundsException('Marker index out of bounds.');
		}

		$marker = $markers[$index];
		unset($markers[$index]);
		$markers = array_values($markers);
		$this->setOption('markers', $markers);

		return $marker;
	}
public function deleteMarker($index = null)
	{
		$markers = $this->listMarkers();

		if ($index === null)
		{
			$index = count($markers) - 1;
		}

		if ($index >= count($markers) || $index < 0)
		{
			throw new OutOfBoundsException('Marker index out of bounds.');
		}

		$marker = $markers[$index];
		unset($markers[$index]);
		$markers = array_values($markers);
		$this->setOption('markers', $markers);

		return $marker;
	}
public function deleteMarker ( $ index = null ) { $ markers = $ this -> listMarkers ( ) ; if ( $ index === null ) { $ index = count ( $ markers ) - 1 ; } if ( $ index >= count ( $ markers ) || $ index < 0 ) { throw new OutOfBoundsException ( 'Marker index out of bounds.' ) ; } $ marker = $ markers [ $ index ] ; unset ( $ markers [ $ index ] ) ; $ markers = array_values ( $ markers ) ; $ this -> setOption ( 'markers' , $ markers ) ; return $ marker ; }
Delete a marker from the map

@param   integer  $index  Index of marker to delete (defaults to last added marker)

@return  array The latitude/longitude of the deleted marker

@since   1.0
@throws  OutOfBoundsException
Delete a marker from the map