public static function getBoundsOfMarkers($markers, $margin = 0.0)
    {
        $coords = [];
        foreach ($markers as $marker) {
            if (!($marker instanceof Marker)) {
                throw new InvalidParamException('"$markers" must be an array of "' . Marker::className() . '" objects');
            }
            $coords[] = $marker->position;
        }

        return LatLngBounds::getBoundsOfCoordinates($coords, $margin);
    }